
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Crimson+Text:wght@400;600;700&display=swap');

:root {
    --background: #0b0909;
    --surface: #151010;
    --surface-light: #201616;
    --red: #8f2028;
    --red-bright: #c43a42;
    --gold: #c8a45d;
    --gold-light: #e4c987;
    --text: #e8dfd1;
    --muted: #a49a8e;
    --border: rgba(200, 164, 93, 0.22);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.site-header {
    height: 82px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: rgba(11, 9, 9, 0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 2px;
    white-space: nowrap;
}

.logo span {
    color: var(--gold);
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-header nav a {
    color: #c9beb0;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    transition: color 0.2s;
}

.site-header nav a:hover {
    color: var(--gold-light);
}

.header-button {
    border: 1px solid var(--gold);
    padding: 10px 16px;
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.header-button:hover {
    background: var(--gold);
    color: #100c08;
}

.hero {
    min-height: 690px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 75% 40%, rgba(120, 20, 27, 0.28), transparent 48%),
        linear-gradient(110deg, #0b0909 10%, #1a0d0e 60%, #0b0909 100%);
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: "B&C";
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Cinzel', serif;
    font-size: clamp(250px, 35vw, 520px);
    font-weight: 800;
    line-height: 1;
    color: rgba(200, 164, 93, 0.035);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 850px;
    padding: 100px 10%;
}

.eyebrow {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(42px, 6.5vw, 82px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: 1px;
}

.hero h1 span {
    color: var(--red-bright);
    text-shadow: 0 0 35px rgba(196, 58, 66, 0.2);
}

.hero-description {
    max-width: 520px;
    margin-top: 26px;
    color: #c2b7aa;
    font-size: 21px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.button-primary {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

.button-primary:hover {
    background: var(--red-bright);
    border-color: var(--red-bright);
    transform: translateY(-2px);
}

.button-secondary {
    border-color: var(--border);
    color: var(--gold-light);
    background: rgba(0, 0, 0, 0.15);
}

.button-secondary:hover {
    border-color: var(--gold);
    background: rgba(200, 164, 93, 0.08);
}

.hero-note {
    margin-top: 55px;
    color: #84796d;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 3px;
}

.section {
    padding: 100px 8%;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.section h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(25px, 3.5vw, 39px);
    line-height: 1.35;
    letter-spacing: 1px;
}

.section-description {
    max-width: 650px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 20px;
}

.house-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 55px auto 0;
    text-align: left;
}

.house-card {
    min-height: 340px;
    padding: 35px 28px;
    background: linear-gradient(150deg, var(--surface-light), var(--surface));
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s;
}

.house-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.house-card:hover {
    transform: translateY(-6px);
    border-color: rgba(200, 164, 93, 0.6);
}

.house-card:hover::after {
    transform: scaleX(1);
}

.house-symbol {
    color: var(--gold);
    font-size: 42px;
    margin-bottom: 16px;
}

.house-region {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 2px;
}

.house-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 19px;
    margin: 8px 0 14px;
}

.house-card p:not(.house-region) {
    color: var(--muted);
    font-size: 17px;
}

.house-card a {
    display: inline-block;
    margin-top: 25px;
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 1px;
}

.house-targaryen {
    background: linear-gradient(145deg, #321114, #151010 70%);
}

.house-blackfyre {
    background: linear-gradient(145deg, #242020, #151010 70%);
}

.house-great {
    background: linear-gradient(145deg, #282116, #151010 70%);
}

.lore-section {
    background:
        radial-gradient(ellipse at center, rgba(117, 25, 31, 0.15), transparent 70%),
        var(--background);
    padding-top: 120px;
    padding-bottom: 120px;
}

.lore-section .button {
    margin-top: 35px;
}

.coming-soon {
    max-width: 700px;
    margin: 45px auto 0;
    padding: 45px 25px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.coming-soon > span {
    color: var(--gold);
    font-size: 30px;
}

.coming-soon h3 {
    margin-top: 12px;
    font-family: 'Cinzel', serif;
    font-size: 16px;
}

.coming-soon p {
    margin-top: 8px;
    color: var(--muted);
}

.server-section {
    background: linear-gradient(180deg, #110c0c, #0b0909);
}

.server-panel {
    max-width: 550px;
    margin: 40px auto 0;
    padding: 35px 25px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 50%;
    background: #b38b3c;
    box-shadow: 0 0 10px rgba(179, 139, 60, 0.35);
}

#server-status {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 1px;
}

.server-panel > p {
    color: var(--muted);
    font-size: 14px;
    margin: 15px 0 22px;
}

#copy-message {
    color: var(--gold-light);
    margin-bottom: 0;
}

footer {
    padding: 45px 20px;
    text-align: center;
    background: #080707;
}

footer .logo {
    display: inline-block;
}

footer > p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 1px;
}

footer .footer-small {
    font-size: 12px;
    color: #756b61;
}

@media (max-width: 950px) {
    .site-header {
        padding: 0 4%;
        gap: 15px;
    }

    .site-header nav {
        gap: 14px;
    }

    .site-header nav a {
        font-size: 9px;
    }

    .logo {
        font-size: 17px;
    }

    .header-button {
        font-size: 9px;
        padding: 8px 10px;
    }

    .house-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .house-card {
        min-height: auto;
    }
}

@media (max-width: 650px) {
    .site-header {
        height: auto;
        min-height: 75px;
        padding: 18px 5%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-header nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .site-header nav a {
        font-size: 10px;
    }

    .header-button {
        margin-left: auto;
    }

    .hero {
        min-height: 600px;
    }

    .hero-content {
        padding: 80px 7%;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-note {
        margin-top: 35px;
        font-size: 9px;
    }

    .section {
        padding: 75px 6%;
    }

    .section-description {
        font-size: 18px;
    }

    .house-card {
        padding: 28px 22px;
    }
}

/* BLOOD & CROWNS — HOUSE DIRECTORY */

.house-directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1250px;
    margin: 55px auto 0;
    text-align: left;
}

.house-directory .house-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 365px;
}

.house-directory .house-card .house-details-button {
    margin-top: auto;
    padding: 10px 16px;
    cursor: pointer;
}

.house-directory .house-card .house-details-button:hover {
    background: var(--gold);
    color: var(--background);
    border-color: var(--gold);
}

.house-detail-panel {
    position: relative;
    max-width: 850px;
    margin: 55px auto 0;
    padding: 45px;
    text-align: left;
    background:
        linear-gradient(135deg, rgba(143, 32, 40, 0.14), transparent 65%),
        var(--surface);
    border: 1px solid var(--gold);
    scroll-margin-top: 110px;
}

.house-detail-panel[hidden] {
    display: none;
}

.house-detail-panel h3 {
    font-family: 'Cinzel', serif;
    font-size: clamp(25px, 4vw, 38px);
    margin-bottom: 8px;
}

#detail-house-region {
    color: var(--gold);
}

.detail-divider {
    height: 1px;
    background: var(--border);
    margin: 25px 0;
}

.detail-label {
    margin-top: 20px;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 2px;
}

.close-house-details {
    position: absolute;
    top: 15px;
    right: 18px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 12px;
    cursor: pointer;
}

.close-house-details:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

@media (max-width: 950px) {
    .house-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .house-directory {
        grid-template-columns: 1fr;
    }

    .house-detail-panel {
        padding: 35px 22px;
    }
}

/* House sigils in the house directory */
.house-sigil {
    display: block;
    width: 100%;
    max-width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 0 auto 18px;
    filter: drop-shadow(0 0 8px rgba(190, 150, 65, 0.2));
    transition: transform 0.25s ease;
}

.house-card:hover .house-sigil {
    transform: scale(1.06);
}

.house-card {
    text-align: center;
}

/* BLOOD & CROWNS - HOUSE DIRECTORY FILTERS */

.house-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.house-filters input,
.house-filters select {
    background-color: #171717;
    color: #f0e2c0;
    border: 1px solid #8b1e1e;
    border-radius: 5px;
    padding: 12px 15px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    min-height: 44px;
}

.house-filters input {
    flex: 1;
    min-width: 220px;
}

.house-filters select {
    min-width: 190px;
    cursor: pointer;
}

.house-filters input:focus,
.house-filters select:focus {
    border-color: #d4af37;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.3);
}

.house-filters input::placeholder {
    color: #aaa;
}

@media (max-width: 600px) {
    .house-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .house-filters input,
    .house-filters select {
        width: 100%;
        box-sizing: border-box;
    }
}

/* BLOOD & CROWNS - INTERACTIVE WESTEROS MAP */

.westeros-map-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    box-sizing: border-box;
}

.westeros-map-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: auto;
    background: #120f0e;
    border: 2px solid #8b6b35;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}




.westeros-map-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    margin: 0 auto;
}

/* FORCE WESTEROS MAP SIZE */
body .westeros-map-container img.westeros-map-image {
    width: auto !important;
    height: 650px !important;
    max-width: calc(100vw - 100px) !important;
    max-height: 75vh !important;
    object-fit: contain !important;
}

/* WESTEROS MAP - PREVENT IMAGE SELECTION */
.westeros-map-container {
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.westeros-map-image {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.westeros-map-container:active {
    cursor: grabbing;
}

/* BLOOD & CROWNS - SHARED NAVIGATION */

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 20px;
    margin: 0 auto;
}

nav a {
    display: inline-block;
    padding: 10px 18px;
    color: #d4af67;
    background: #171311;
    border: 1px solid #8b6b35;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s ease, color 0.2s ease;
}

nav a:hover {
    background: #8b2025;
    color: #ffffff;
}



