/* ===== Guild Wars 3 Wiki Theme ===== */
:root {
    --primary-color: #f0b75a;
    --primary-light: #ffd88a;
    --primary-dark: #ad7631;
    --primary-bg: rgba(240, 183, 90, 0.12);
    --primary-border: rgba(240, 183, 90, 0.32);
    --secondary-color: #79d6c8;
    --accent-color: #a07cff;
    --bg-color: #070b13;
    --bg-secondary: #0f1725;
    --bg-card: #131c2b;
    --text-color: #f4f0e6;
    --text-secondary: #c7d0dc;
    --text-light: #8795a8;
    --border-color: rgba(240, 183, 90, 0.22);
    --radius-sm: 8px;
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
    padding: 0;
}

section[id] { scroll-margin-top: 80px; }

.container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

header.topbar-gradient {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar.custom-nav {
    background: transparent;
    padding: 14px 0;
}

.navbar.custom-nav .navbar-brand img { border-radius: var(--radius-sm); }

.navbar.custom-nav .brand-gradient {
    color: var(--primary-light);
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar.custom-nav .nav-link {
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 4px;
    padding: 0.5rem 0.875rem;
    transition: all 0.2s ease;
}

.navbar.custom-nav .nav-link:hover {
    background: var(--primary-bg);
    color: var(--primary-light);
}

.navbar.custom-nav .nav-link .small-icon {
    color: var(--text-light);
    font-size: 0.8125rem;
    margin-right: 0.25rem;
    transition: color 0.2s ease;
}

.navbar.custom-nav .nav-link:hover .small-icon { color: var(--primary-light); }

.navbar-toggler {
    border-color: var(--border-color);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(240, 183, 90, 0.16); }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f0b75a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.language-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4375rem 0.875rem;
    transition: all 0.2s ease;
}

.language-btn:hover {
    background: var(--primary-bg);
    border-color: var(--primary-color);
    color: var(--primary-light);
}

.dropdown-menu {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0.5rem !important;
}

.dropdown-item {
    border-radius: 8px;
    color: var(--text-color) !important;
    padding: 0.625rem 1rem !important;
}

.dropdown-item:hover {
    background: var(--primary-bg) !important;
    color: var(--primary-light) !important;
}

footer {
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
}

footer .text-muted {
    color: var(--text-secondary) !important;
    font-size: 0.875rem;
}

footer .text-muted:hover { color: var(--primary-light) !important; }
footer h4 { color: var(--text-color); font-size: 1.125rem; }
footer h6 { color: var(--text-color); font-size: 0.9375rem; font-weight: 600; }
footer .footer-divider { border-color: var(--border-color); }
footer p.max-w-520 { font-size: 0.8125rem; line-height: 1.6; }

body.gw3-page { background: #070b13; }
body.gw3-page main { background: #070b13; }

.gw3-home {
    background:
        radial-gradient(circle at 18% 8%, rgba(121, 214, 200, 0.18), transparent 32%),
        radial-gradient(circle at 82% 18%, rgba(240, 183, 90, 0.16), transparent 30%),
        linear-gradient(180deg, #08101c 0%, #070b13 40%, #10131f 100%);
    color: var(--text-color);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
    overflow-wrap: anywhere;
}

.gw3-home h1,
.gw3-home h2,
.gw3-home h3 {
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    letter-spacing: 0;
}

.gw3-hero {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(8, 16, 28, 0.7), rgba(8, 16, 28, 0.82) 54%, rgba(7, 11, 19, 0.96)),
        radial-gradient(circle at 50% 34%, rgba(240, 183, 90, 0.14), transparent 36%),
        url('/static/images/guild-wars-3/gw3-official-farm.webp') center 38% / cover no-repeat;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    min-height: calc(100vh - 74px);
    padding: 58px 0 56px;
    position: relative;
}

.gw3-hero-copy {
    margin: 0 auto;
    max-width: 980px;
    text-align: center;
    width: 100%;
}

.gw3-kicker,
.section-heading p {
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.gw3-hero h1 {
    color: #fff7e7;
    font-size: clamp(2.35rem, 6vw, 5.35rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.2rem;
}

.gw3-lead {
    color: var(--text-secondary);
    font-size: 1.08rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 820px;
}

.gw3-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.8rem 0;
}

.btn-gw3,
.btn-gw3-outline {
    border-radius: 8px;
    font-weight: 700;
    padding: 0.78rem 1.1rem;
}

.btn-gw3 {
    background: var(--primary-color);
    border: 1px solid var(--primary-light);
    color: #15100a;
}

.btn-gw3:hover {
    background: var(--primary-light);
    color: #15100a;
}

.btn-gw3-outline {
    background: transparent;
    border: 1px solid var(--primary-border);
    color: var(--text-color);
}

.btn-gw3-outline:hover {
    background: var(--primary-bg);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.gw3-facts {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    max-width: 960px;
    padding: 0;
}

.gw3-facts li,
.gw3-card,
.gw3-panel,
.gw3-step,
.gw3-steam-card,
.gw3-checklist article {
    background: rgba(19, 28, 43, 0.88);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 0;
}

.gw3-facts li { padding: 0.75rem 0.85rem; }
.gw3-facts span { color: var(--text-light); display: block; font-size: 0.78rem; }
.gw3-facts strong { color: #fff7e7; font-size: 0.95rem; }

.gw3-media,
.gw3-inline-media {
    margin: 0;
    min-width: 0;
}
.gw3-media { margin: 2.4rem auto 0; max-width: 860px; }
.gw3-trailer { max-width: 860px; }

.gw3-video-frame {
    aspect-ratio: 16 / 9;
    background: #050912;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.gw3-video-poster {
    align-items: center;
    background: #050912;
    border: 0;
    color: #15100a;
    cursor: pointer;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 0;
    position: absolute;
    width: 100%;
    height: 100%;
}

.gw3-video-poster img {
    border: 0;
    border-radius: 0;
    filter: saturate(0.94) brightness(0.72);
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gw3-play-mark {
    align-items: center;
    background: var(--primary-color);
    border: 1px solid var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    display: inline-flex;
    font-size: 1.25rem;
    height: 4.25rem;
    justify-content: center;
    left: 50%;
    padding-left: 0.2rem;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4.25rem;
}

.gw3-video-frame iframe { border: 0; display: block; height: 100%; position: relative; width: 100%; }

.gw3-media img,
.gw3-inline-media img {
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.gw3-media figcaption,
.gw3-inline-media figcaption {
    color: var(--text-light);
    font-size: 0.82rem;
    margin-top: 0.65rem;
}

.gw3-section { padding: 80px 0; }
.gw3-section + .gw3-section { border-top: 1px solid rgba(240, 183, 90, 0.12); }

.section-heading {
    margin: 0 auto 2rem;
    max-width: 760px;
    text-align: center;
}

.section-heading.text-start { margin-left: 0; text-align: left; }

.section-heading h2,
.gw3-steam h2,
.gw3-copy h2 {
    color: #fff7e7;
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.section-heading span,
.gw3-steam p,
.gw3-copy p { color: var(--text-secondary); }

.gw3-card,
.gw3-panel,
.gw3-step,
.gw3-steam-card,
.gw3-checklist article { box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24); }

.gw3-card { padding: 1.25rem; }
.gw3-card i { color: var(--primary-light); font-size: 1.4rem; margin-bottom: 1rem; }

.gw3-card h3,
.gw3-panel h3,
.gw3-step h3,
.gw3-checklist h3 {
    color: #fff7e7;
    font-size: 1.12rem;
    font-weight: 700;
}

.gw3-card p,
.gw3-panel p,
.gw3-step p,
.gw3-checklist p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.gw3-timeline { display: grid; gap: 1rem; margin: 0 auto; max-width: 900px; }
.gw3-step { display: grid; gap: 1rem; grid-template-columns: auto 1fr; padding: 1.2rem; }

.step-number {
    align-items: center;
    background: var(--primary-color);
    border-radius: 8px;
    color: #15100a;
    display: inline-flex;
    font-weight: 800;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.gw3-database,
.gw3-steam { background: rgba(5, 9, 18, 0.38); }
.gw3-panel,
.gw3-steam-card,
.gw3-checklist article { padding: 1.25rem; }
.gw3-panel ul { color: var(--text-secondary); margin: 1rem 0 0; padding-left: 1.1rem; }
.gw3-panel li + li { margin-top: 0.45rem; }
.gw3-checklist { display: grid; gap: 1rem; }
.gw3-steam-card dl { margin: 0 0 1rem; }

.gw3-steam-card div {
    border-bottom: 1px solid rgba(240, 183, 90, 0.14);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.7rem 0;
}

.gw3-steam-card dt { color: var(--text-light); font-weight: 600; }
.gw3-steam-card dd { color: #fff7e7; margin: 0; text-align: right; }
.gw3-copy article { margin: 0 auto; max-width: 980px; }
.gw3-copy p { font-size: 1rem; margin-bottom: 1rem; }

body.gw3-page .accordion-item {
    background: rgba(19, 28, 43, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 8px !important;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

body.gw3-page .accordion-button {
    background: rgba(19, 28, 43, 0.96);
    color: #fff7e7;
    font-weight: 700;
}

body.gw3-page .accordion-button:not(.collapsed) {
    background: var(--primary-bg);
    color: var(--primary-light);
}

body.gw3-page .accordion-body { color: var(--text-secondary); }

.gw3-static-page {
    background:
        radial-gradient(circle at 18% 8%, rgba(121, 214, 200, 0.18), transparent 32%),
        linear-gradient(180deg, #08101c 0%, #070b13 42%, #10131f 100%);
    color: var(--text-color);
    min-height: calc(100vh - 74px);
    padding: 86px 0;
}

.gw3-static-header { margin: 0 auto 2rem; max-width: 880px; text-align: center; }

.gw3-static-header h1 {
    color: #fff7e7;
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 1rem;
}

.gw3-static-header p:last-child {
    color: var(--text-secondary);
    font-size: 1.06rem;
    margin: 0 auto;
    max-width: 760px;
}

.gw3-static-panel {
    background: rgba(19, 28, 43, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    color: var(--text-secondary);
    margin: 0 auto;
    max-width: 940px;
    padding: clamp(1.35rem, 4vw, 3rem);
}

.gw3-static-panel h2 {
    color: #fff7e7;
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 2rem 0 0.75rem;
}

.gw3-static-panel h2:first-child { margin-top: 0; }
.gw3-static-panel p,
.gw3-static-panel li { color: var(--text-secondary); line-height: 1.75; }
.gw3-static-panel .gw3-static-meta { color: var(--text-light); font-size: 0.92rem; font-weight: 700; margin-bottom: 1rem; }
.gw3-static-panel ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.gw3-static-panel li + li { margin-top: 0.45rem; }
.gw3-static-panel a { color: var(--primary-light); font-weight: 700; }
.gw3-static-panel a:hover { color: #fff7e7; }

@media (min-width: 992px) {
    .gw3-media { margin-top: 2.6rem; }
}

@media (max-width: 991.98px) {
    .gw3-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .container {
        max-width: 100%;
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    .gw3-home,
    .gw3-section,
    .gw3-hero,
    .gw3-hero-copy,
    .gw3-media,
    .gw3-inline-media,
    .gw3-card,
    .gw3-panel,
    .gw3-step,
    .gw3-steam-card,
    .gw3-checklist article {
        max-width: 100%;
    }

    .gw3-home .row {
        margin-left: 0;
        margin-right: 0;
    }

    .gw3-home .row > * {
        min-width: 0;
    }

    .gw3-hero { min-height: auto; padding: 48px 0 40px; }
    .gw3-hero h1 {
        font-size: clamp(1.65rem, 8vw, 2rem);
        line-height: 1.06;
        margin-left: auto;
        margin-right: auto;
        max-width: 21rem;
    }
    .gw3-lead {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 21rem;
    }
    .section-heading h2,
    .gw3-steam h2,
    .gw3-copy h2 {
        font-size: clamp(1.45rem, 7vw, 1.85rem);
        line-height: 1.16;
        margin-left: auto;
        margin-right: auto;
        max-width: 21rem;
    }
    .gw3-card h3,
    .gw3-panel h3,
    .gw3-step h3,
    .gw3-checklist h3 {
        font-size: 1.02rem;
    }
    .gw3-card p,
    .gw3-panel p,
    .gw3-step p,
    .gw3-checklist p,
    .gw3-media figcaption,
    .gw3-inline-media figcaption {
        font-size: 0.9rem;
        max-width: 100%;
        overflow-wrap: break-word;
    }
    .gw3-facts { grid-template-columns: 1fr; }
    .gw3-section { padding: 56px 0; }
    .gw3-step { grid-template-columns: 1fr; }
    .gw3-card,
    .gw3-panel,
    .gw3-step,
    .gw3-steam-card,
    .gw3-checklist article {
        overflow-wrap: break-word;
    }
}
