/* --- RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg);
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--color-white);
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

p {
    margin-bottom: var(--space-3);
    font-size: var(--text-base);
    color: var(--color-gray);
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-gold-hover);
}

/* --- UTILITIES --- */
.shell {
    width: var(--shell-width);
    margin-inline: auto;
}

.section {
    padding-block: var(--space-6);
    position: relative;
}

.text-gold {
    color: var(--color-gold);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- HEADER --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 16, 38, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--space-2);
}

.site-header .shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: -0.02em;
}

/* --- NAVIGATION --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: var(--space-1);
}

.main-nav {
    display: flex;
    gap: var(--space-4);
}

.main-nav a {
    color: var(--color-white);
    font-weight: 500;
    font-size: var(--text-sm);
    padding-block: 0.5rem;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--color-gold);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: fixed;
        inset: 60px 0 auto 0;
        background: var(--color-bg);
        flex-direction: column;
        align-items: center;
        padding: var(--space-4);
        border-bottom: 1px solid var(--color-border);
        z-index: 999;
        box-shadow: var(--shadow-lg);
    }

    .main-nav[data-open="true"] {
        display: flex;
        animation: slideDown 0.3s var(--ease-out);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- HERO --- */
.hero {
    min-height: 80svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(to bottom,
            rgba(11, 16, 38, 0.7) 0%,
            rgba(11, 16, 38, 0.85) 100%),
        url('../img/hero/hero-bg.jpg') center/cover no-repeat;
    position: relative;
    padding-block: var(--space-6);
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        background:
            linear-gradient(to bottom,
                rgba(11, 16, 38, 0.7) 0%,
                rgba(11, 16, 38, 0.85) 100%),
            url('../img/hero/mobile-herobg.png') center/cover no-repeat;
    }
}

.hero .shell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding-inline: var(--space-3);
}

.hero__eyebrow {
    display: block;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.hero__text {
    font-size: var(--text-lg);
    color: var(--color-gray);
    margin-bottom: var(--space-4);
    max-width: 60ch;
    margin-inline: auto;
}

/* --- BUTTONS (SOLID PILL STYLE) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875em 2em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-btn);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: var(--text-sm);
    background: var(--color-btn);
    color: var(--color-bg);
    box-shadow: var(--shadow-md);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    filter: brightness(1.1);
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); /* keep label readable on hover */
}

.form-status {
    display: none;
    margin-bottom: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-card);
    border: 1px solid rgba(64, 204, 149, 0.5);
    background: rgba(64, 204, 149, 0.1);
    color: #dffcf0;
    font-weight: 600;
    text-align: center;
}

.form-status[data-visible="true"] {
    display: block;
}

/* --- FEATURES SECTION --- */
.features {
    background: var(--color-bg-alt);
    padding-block: var(--space-6);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

.feature-card {
    background: var(--color-bg);
    padding: var(--space-4);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    font-size: 3rem;
    margin-bottom: var(--space-3);
}

.feature-card h3 {
    margin-bottom: var(--space-2);
    color: var(--color-gold);
}

.feature-card p {
    margin: 0;
    font-size: var(--text-sm);
}

/* --- SECTION HEADER --- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-5);
}

.section-header__eyebrow {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.section-header h2 {
    margin-bottom: var(--space-2);
}

.section-header p {
    color: var(--color-gray);
    max-width: 60ch;
    margin-inline: auto;
}

/* --- GAME GRID (COMPACT PREMIUM) --- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.game-card {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: all 0.35s var(--ease-out);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.game-card__media {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.game-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s var(--ease-out);
}

.game-card:hover .game-card__media img {
    transform: scale(1.08);
}

.game-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(11, 16, 38, 0) 0%,
            rgba(11, 16, 38, 0.5) 35%,
            rgba(11, 16, 38, 0.9) 70%,
            rgba(11, 16, 38, 1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-3);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.game-card:hover .game-card__overlay {
    opacity: 1;
}

.game-card__info h3 {
    margin: 0 0 0.35rem;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.game-card__category {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.game-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-card__btn {
    display: block;
    text-align: center;
    padding: 0.7em 1.2em;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-xs);
    transition: all 0.25s ease;
    background: var(--color-btn);
    color: var(--color-bg);
    box-shadow: var(--shadow-sm);
}

.game-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.game-card__btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-gold);
    color: var(--color-white);
}

.game-card__btn--secondary:hover {
    background: rgba(198, 168, 124, 0.2);
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* Reveal Animation */
.game-card.reveal {
    opacity: 0;
    transform: translateY(25px) scale(0.96);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.game-card.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
}

/* --- FAQ SECTION --- */
.faq {
    background: var(--color-bg-alt);
    padding-block: var(--space-6);
}

.faq__list {
    max-width: 800px;
    margin-inline: auto;
}

.faq__item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    margin-bottom: var(--space-3);
    overflow: hidden;
}

.faq__question {
    width: 100%;
    padding: var(--space-3);
    background: none;
    border: none;
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq__question:hover {
    color: var(--color-gold);
}

.faq__icon {
    font-size: 1.5rem;
    transition: transform 0.3s var(--ease-out);
}

.faq__item[data-open="true"] .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out);
}

.faq__item[data-open="true"] .faq__answer {
    max-height: 500px;
}

.faq__answer-content {
    padding: 0 var(--space-3) var(--space-3);
    color: var(--color-gray);
}

/* --- FOOTER --- */
.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding-block: var(--space-6);
    margin-top: auto;
}

.footer-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    align-items: center;
}

.footer-logos a,
.footer-logos div {
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-logos a:hover {
    opacity: 1;
}

.footer-logos img {
    height: 40px;
    width: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.footer-disclaimer {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-gray);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-4);
}

.footer-disclaimer p {
    margin-bottom: var(--space-2);
    font-size: var(--text-xs);
}

@media (max-width: 768px) {
    .footer-logos {
        flex-direction: column;
    }
}

/* --- OVERLAYS --- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay[data-visible="true"] {
    opacity: 1;
    pointer-events: auto;
}

.overlay__dialog {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-card);
    padding: var(--space-4);
    width: min(90%, 500px);
    text-align: center;
    box-shadow: var(--shadow-lg);
}
