/* ============================================================
   DONBET CASINO — STYLES.CSS
   Dark theme with gold/amber accents matching brand identity
   Optimised for Core Web Vitals (CLS, LCP, INP)
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1e1e2a;
    --bg-nav: #0d0d14;
    --bg-header: #08080d;

    --gold: #d4a017;
    --gold-light: #ffd700;
    --gold-dark: #b8860b;
    --amber: #f5a623;

    --text-primary: #f0f0f0;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b80;

    --accent-red: #e53935;
    --accent-green: #4caf50;
    --accent-purple: #7c4dff;

    --border-color: #2a2a3a;
    --border-gold: rgba(212, 160, 23, 0.3);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-gold: 0 0 30px rgba(212,160,23,0.15);

    --font-display: 'Bebas Neue', 'Impact', sans-serif;
    --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Open Sans', 'Segoe UI', sans-serif;

    --container-max: 1320px;
    --header-height: 120px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a:hover,
a:focus-visible {
    color: var(--gold-light);
}

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

ul {
    list-style: none;
}

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

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
}

.btn-signup {
    background: var(--gold);
    color: #000;
}

.btn-signup:hover {
    background: var(--gold-light);
    box-shadow: 0 0 20px rgba(212,160,23,0.4);
}

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

.btn-login:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-cta {
    background: linear-gradient(135deg, var(--gold), var(--amber));
    color: #000;
    padding: 14px 36px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(212,160,23,0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212,160,23,0.5);
    color: #000;
}

/* ---------- HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    padding: 12px 0;
    background: var(--bg-header);
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    letter-spacing: 3px;
    line-height: 1;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.forgot-link {
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

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

.input-group input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 160px;
    font-family: var(--font-body);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212,160,23,0.2);
}

.lang-selector {
    font-size: 1.4rem;
    cursor: pointer;
}

/* ---------- MAIN NAV ---------- */
.main-nav {
    background: var(--bg-nav);
    border-top: 1px solid var(--border-color);
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    white-space: nowrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--gold);
    background: rgba(212,160,23,0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 60%;
}

.nav-icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
}

.nav-icon svg {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
}



/* ---------- HERO SECTION ---------- */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    background-image: url('img/banner-casino.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    padding: -80px 0;
    min-height: 520px;
}

.hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: column;
    position: relative;
    z-index: 2;
    min-height: 480px;
    padding-bottom: 0;
    padding-left: 8%;
}

/* ---------- CATEGORIES SECTION ---------- */
.categories-section {
    padding: 70px 0;
    background: var(--bg-primary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.35s ease;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.card-sports {
    background: linear-gradient(135deg, #2d1b69, #1a0a3e);
}

.card-casino {
    background: linear-gradient(135deg, #3d2b1b, #1e1408);
}

.card-live {
    background: linear-gradient(135deg, #4a1030, #2a0818);
}

.card-mini {
    background: linear-gradient(135deg, #1b2d3d, #0a1a28);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    padding: 16px 20px 4px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-desc {
    padding: 4px 20px 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---------- BONUS SECTION ---------- */
.bonus-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.bonus-card {
    background: linear-gradient(135deg, #1a1028, #0d0a18, #1a0d28);
    border: 2px solid var(--border-gold);
    border-radius: var(--radius-xl);
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.bonus-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212,160,23,0.08), transparent 70%);
    pointer-events: none;
}

.bonus-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.bonus-badge {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 4px 16px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.bonus-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--gold-light);
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-shadow: 0 0 30px rgba(255,215,0,0.2);
}

.bonus-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 500px;
}

.bonus-terms {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.bonus-visual {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.coin {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    box-shadow: 0 4px 15px rgba(212,160,23,0.4);
}

.coin-1 {
    top: 10px;
    left: 40px;
    animation: coinFloat 3s ease-in-out infinite;
}

.coin-2 {
    top: 80px;
    left: 100px;
    width: 50px;
    height: 50px;
    animation: coinFloat 3.5s ease-in-out infinite 0.5s;
}

.coin-3 {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    animation: coinFloat 4s ease-in-out infinite 1s;
}

@keyframes coinFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* ---------- FEATURES SECTION ---------- */
.features-section {
    padding: 70px 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.feature-icon-wrap {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.feature-icon-wrap svg {
    width: 2.4rem;
    height: 2.4rem;
    color: var(--gold);
}

.feature-item .feature-heading {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- SPORTS SECTION ---------- */
.sports-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: -24px;
    margin-bottom: 40px;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sport-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.25s ease;
    cursor: pointer;
}

.sport-item:hover {
    border-color: var(--gold);
    background: var(--bg-card-hover);
}

.sport-emoji {
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
}

.sport-emoji svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ---------- SEO CONTENT ARTICLE ---------- */
.seo-content {
    padding: 70px 0;
    background: var(--bg-primary);
}

.seo-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-align: center;
    margin-bottom: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.seo-content h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold);
    margin-top: 32px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.seo-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.seo-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.seo-content ul,
.seo-content ol {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 1.5rem;
}

.seo-content li {
    margin-bottom: 6px;
}

.seo-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.seo-content th,
.seo-content td {
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    text-align: left;
}

.seo-content th {
    font-weight: 600;
    color: var(--gold);
    background: rgba(212, 160, 23, 0.08);
}

.seo-content td p {
    margin-bottom: 0;
}

.seo-content a {
    color: var(--gold);
    text-decoration: underline;
}

/* ---------- FAQ SECTION ---------- */
.faq-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.faq-section .container > div:first-child {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-section .container > div:last-child {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-section details[open] {
    border-color: var(--border-gold);
}

.faq-section summary {
    padding: 18px 24px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s ease;
    list-style: none;
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-section details[open] summary::after {
    transform: rotate(45deg);
}

.faq-section summary:hover {
    color: var(--gold);
}

.faq-section details > div {
    padding: 0 24px 18px;
}

.faq-section details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---------- PAYMENT METHODS ---------- */
.payments-section {
    padding: 40px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.payments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.payment-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
    transition: border-color 0.2s ease;
}

.payment-item:hover {
    border-color: var(--border-gold);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--bg-header);
    padding: 50px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col .footer-col-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a,
.footer-col p a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover,
.footer-col p a:hover {
    color: var(--gold);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    transition: all 0.25s ease;
    color: var(--text-secondary);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    border-color: var(--gold);
    transform: scale(1.1);
}

.footer-disclaimer {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    flex-wrap: wrap;
}

.footer-disclaimer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 700px;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-18 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-red);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
}

.badge-responsible {
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
    color: var(--accent-green);
}

.badge-responsible svg {
    width: 1.6rem;
    height: 1.6rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 16px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile auth buttons — hidden on desktop, shown on mobile */
.header-auth-mobile {
    display: none;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1100px) {
    .header-auth-desktop {
        display: none;
    }

    .header-auth-mobile {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .header-auth-mobile .btn-login,
    .header-auth-mobile .btn-signup {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Nav stays visible as horizontal scroll strip */
    .main-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-list {
        display: flex;
        flex-wrap: nowrap;
        padding: 0 8px;
    }

    .nav-link {
        padding: 12px 14px;
        font-size: 0.8rem;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .bonus-card {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }

    .bonus-visual {
        display: none;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .sports-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .payments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .sports-grid {
        grid-template-columns: 1fr;
    }

    .payments-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Print styles ---------- */
@media print {
    .site-header,
    .hero-section,
    .bonus-section {
        display: none;
    }
}
