/*
 * CSS STYLES - Lizaro Casino Design System
 * Wild West saloon aesthetic meets neon-noir gaming lounge.
 * Dark theme only - no theme switcher.
 */

/* ============================================
   DESIGN TOKENS
   Core palette, typography, spacing, motion
   ============================================ */

:root {
    /* Backgrounds */
    --background: #18110d;
    --foreground: #f4e8d3;
    --card: #2a1d15;
    --card-foreground: #f4e8d3;
    --popover: #211610;
    --popover-foreground: #f4e8d3;

    /* Accents */
    --primary: #ff6b1a;
    --primary-foreground: #221208;
    --secondary: #d7a43a;
    --secondary-foreground: #241a08;
    --muted: #35261b;
    --muted-foreground: #c9b18f;
    --accent: #2fe07a;
    --accent-foreground: #06180d;
    --destructive: #dc2626;
    --destructive-foreground: #ffffff;
    --border: #6d4b31;
    --input: #241812;
    --ring: #ffb347;

    /* Semantic aliases */
    --bg-deep: #18110d;
    --bg-panel: #221610;
    --bg-card: #2a1d15;
    --bg-saddle: #35261b;
    --text-primary: #f4e8d3;
    --text-secondary: #c9b18f;
    --orange: #ff6b1a;
    --gold: #d7a43a;
    --green: #2fe07a;
    --bronze: #6d4b31;
    --bone: #f4e8d3;

    /* Typography */
    --font-display: "Rye", serif;
    --font-body: "Rubik", sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 56px;
    --space-4xl: 96px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-glow: 0 0 20px rgba(255, 107, 26, 0.3);
    --shadow-gold-glow: 0 0 24px rgba(215, 164, 58, 0.25);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-base: 250ms ease-out;
    --transition-slow: 400ms ease-out;

    /* Layout */
    --container-max: 1240px;
    --header-height: 64px;
}

.dark {
    --background: #18110d;
    --foreground: #f4e8d3;
    --card: #2a1d15;
    --card-foreground: #f4e8d3;
    --popover: #211610;
    --popover-foreground: #f4e8d3;
    --primary: #ff6b1a;
    --primary-foreground: #221208;
    --secondary: #d7a43a;
    --secondary-foreground: #241a08;
    --muted: #35261b;
    --muted-foreground: #c9b18f;
    --accent: #2fe07a;
    --accent-foreground: #06180d;
    --destructive: #dc2626;
    --destructive-foreground: #ffffff;
    --border: #6d4b31;
    --input: #241812;
    --ring: #ffb347;
}

/* ============================================
   RESET & BASE
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    overflow-x: hidden;
}

img, video, iframe, embed, object, svg {
    max-width: 100%;
    height: auto;
}

p, li, td, th {
    overflow-wrap: break-word;
}

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

a:hover {
    text-decoration: underline;
}

ul, ol {
    padding-left: 1.2em;
}

/* ============================================
   TYPOGRAPHY SYSTEM
   Rye for display, Rubik for body
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 var(--space-md);
    color: var(--bone);
}

h1 {
    font-size: 30px;
    letter-spacing: -0.01em;
    text-shadow: 0 0 16px rgba(255, 107, 26, 0.3);
}

h2 {
    font-size: 26px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 20px;
}

p {
    margin: 0 0 var(--space-md);
    max-width: 70ch;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

.container-1240 {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.container-full {
    width: 100%;
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.full-bleed-hero {
    width: 100%;
}

@media (min-width: 768px) {
    h1 { font-size: 42px; }
    h2 { font-size: 34px; }
    h3 { font-size: 24px; }
    .section {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }
}

@media (min-width: 1024px) {
    h1 { font-size: 52px; }
    h2 { font-size: 38px; }
    h3 { font-size: 26px; }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(255, 107, 26, 0.3);
}

.btn--primary:hover {
    background: #ff7d33;
    box-shadow: 0 6px 20px rgba(255, 107, 26, 0.45);
}

.btn--ghost {
    background: transparent;
    color: var(--bone);
    border-color: var(--border);
}

.btn--ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Shimmer sweep animation */
.btn--shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%
    );
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    min-height: var(--header-height);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--bone);
    text-decoration: none;
    flex-shrink: 0;
}

.site-brand:hover {
    text-decoration: none;
}

.site-brand__icon {
    font-size: 24px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.primary-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-lg);
    align-items: center;
}

.primary-nav__list a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.primary-nav__list a:hover {
    color: var(--primary);
    text-decoration: none;
}

.primary-nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.primary-nav__actions .btn {
    min-height: 40px;
    padding: 8px 20px;
    font-size: 15px;
}

/* Mobile toggle button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--bone);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 767px) {
    .mobile-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-deep);
        z-index: 999;
        overflow-y: auto;
        padding: var(--space-lg);
        display: none;
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .primary-nav__list li {
        border-bottom: 1px solid var(--border);
    }

    .primary-nav__list a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: var(--space-md) 0;
        font-size: 18px;
    }

    .primary-nav__actions {
        flex-direction: column;
        gap: var(--space-md);
        margin-top: var(--space-lg);
        width: 100%;
    }

    .primary-nav__actions .btn {
        width: 100%;
        min-height: 48px;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    padding-top: var(--space-2xl);
    margin-top: auto;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg) var(--space-xl);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.footer-heading {
    font-size: 16px;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 15px;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

@media (max-width: 767px) {
    .footer-links a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }
}

.payment-logos {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.payment-logos li {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.footer-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.license-badge,
.age-badge {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    margin-top: var(--space-sm);
}

.age-badge {
    color: var(--green);
    font-size: 18px;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    max-width: none;
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-inner {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.hero {
    position: relative;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.hero__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: var(--space-lg);
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 60ch;
    margin-bottom: var(--space-xl);
}

/* ============================================
   CARDS - Content containers
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    min-width: 0;
}

.card-featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   GAME GRID
   Responsive grid for game thumbnails
   ============================================ */

.game-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-width: 0;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.game-card:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-gold-glow);
}

.game-card__thumb {
    aspect-ratio: 16 / 10;
    background: var(--bg-saddle);
    overflow: hidden;
}

.game-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-card__body {
    padding: var(--space-md);
}

.game-card__body h3 {
    margin-bottom: var(--space-xs);
    font-size: 18px;
}

.game-card__body p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

@media (min-width: 640px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   CTA BANNER COMPONENT
   Full-width conversion section with neon marquee
   ============================================ */

.cta-banner {
    width: 100%;
    background: var(--bg-deep);
    padding: var(--space-3xl) var(--space-lg);
    border-top: 2px solid var(--bronze);
    border-bottom: 2px solid var(--bronze);
    position: relative;
    overflow: hidden;
}

.cta-banner::before,
.cta-banner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: marquee-breathe 3s ease-in-out infinite;
}

.cta-banner::before { top: 4px; }
.cta-banner::after { bottom: 4px; }

@keyframes marquee-breathe {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.cta-banner__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.cta-banner__headline {
    font-size: 28px;
    margin-bottom: var(--space-md);
    text-shadow: 0 0 16px rgba(255, 107, 26, 0.3);
}

.cta-banner__subtext {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 56ch;
    margin: 0 auto var(--space-xl);
}

.cta-banner__button {
    font-size: 18px;
    min-height: 52px;
    padding: 14px 36px;
}

.cta-banner__micro {
    font-size: 13px;
    color: var(--gold);
    margin-top: var(--space-md);
    margin-bottom: 0;
    max-width: none;
}

@media (min-width: 768px) {
    .cta-banner__headline { font-size: 38px; }
}

/* ============================================
   FAQ ACCORDION COMPONENT
   ============================================ */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(109, 75, 49, 0.5);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.faq-item[open] {
    border-color: var(--primary);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    color: var(--bone);
    list-style: none;
    min-height: 48px;
}

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

.faq-item__question span:first-child {
    flex: 1;
}

.faq-item__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    border-radius: 2px;
    transition: transform var(--transition-base);
}

.faq-item__icon::before {
    width: 16px;
    height: 3px;
}

.faq-item__icon::after {
    width: 3px;
    height: 16px;
}

.faq-item[open] .faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-item__answer {
    padding: 0 var(--space-xl) var(--space-lg);
}

.faq-item__answer p {
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   PROMO CARD COMPONENT
   ============================================ */

.promo-card {
    background: var(--bg-card);
    border: 2px solid var(--bronze);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    min-width: 0;
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.promo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    pointer-events: none;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold-glow);
}

.promo-card__eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.promo-card__title {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--gold);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.promo-card__terms {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.promo-card__terms li {
    color: var(--text-secondary);
    font-size: 15px;
    padding-left: var(--space-md);
    position: relative;
}

.promo-card__terms li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.promo-card__button {
    width: 100%;
}

/* Promo card grid */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 900px) {
    .promo-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .promo-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   ENGAGEMENT PATTERNS
   TLDR, Callout, Stat, Pull Quote, Details
   ============================================ */

/* Summary / TLDR box */
.tldr-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

.tldr-box h3 {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: var(--space-md);
}

.tldr-box ul {
    margin: 0;
    padding-left: 1.2em;
}

.tldr-box li {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.tldr-box li::marker {
    color: var(--accent);
}

/* Callout / highlight box */
.callout {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
}

.callout p {
    margin: 0;
    color: var(--text-secondary);
}

/* Stat highlight */
.stat-highlight {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-highlight__number {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 34px;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.stat-highlight__label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: var(--space-lg);
}

/* Pull quote */
.pull-quote {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--bone);
    line-height: 1.4;
    padding: var(--space-xl) var(--space-xl);
    border-left: 4px solid var(--secondary);
    margin: var(--space-xl) 0;
    background: var(--bg-panel);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.pull-quote cite {
    display: block;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: var(--space-md);
    font-style: normal;
}

/* Trust badges row */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-lg) 0;
}

.trust-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
    overflow-x: auto;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.comparison-table th {
    color: var(--gold);
    font-weight: 700;
    background: var(--bg-panel);
}

.comparison-table td {
    color: var(--text-secondary);
}

.comparison-table tr.highlighted td {
    background: rgba(255, 107, 26, 0.08);
    color: var(--bone);
}

/* ============================================
   ANIMATIONS - Scroll reveal
   ============================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll.is-visible:nth-child(2) { transition-delay: 80ms; }
.animate-on-scroll.is-visible:nth-child(3) { transition-delay: 160ms; }
.animate-on-scroll.is-visible:nth-child(4) { transition-delay: 240ms; }

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-green { color: var(--accent); }
.text-orange { color: var(--primary); }
.text-muted { color: var(--text-secondary); }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Visually hidden but accessible */
.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;
}

/* Code blocks */
pre, code, .code-block {
    max-width: 100%;
    overflow-x: auto;
}

pre code,
.code-block code {
    display: block;
    min-width: 0;
}

/* Tables */
.table-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

/* Forms */
input, textarea, select {
    max-width: 100%;
    box-sizing: border-box;
}

/* Sections clip decorative overflow */
section {
    overflow: clip;
}

/* Grid/flex children safe */
[class*="grid"] > *,
[class*="flex"] > * {
    min-width: 0;
}

/* ============================================
   HOMEPAGE - Hero, bonus showcase, strips
   ============================================ */

.hero--home {
    padding: 0;
    display: flex;
    align-items: stretch;
    min-height: 520px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 17, 13, 0.55) 0%, rgba(24, 17, 13, 0.92) 100%);
}

.hero--home .hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    width: 100%;
}

.hero__media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 280px;
}

.hero__model {
    max-height: 320px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 10px 36px rgba(0, 0, 0, 0.65));
}

.hero__mascot {
    position: absolute;
    width: 110px;
    height: auto;
    bottom: 0;
    left: 4%;
    transform: rotate(-6deg);
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .hero__model { max-height: 420px; }
    .hero__mascot { width: 140px; }
}

@media (min-width: 1024px) {
    .hero--home .hero__inner {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
        padding-top: var(--space-3xl);
        padding-bottom: var(--space-3xl);
    }
    .hero__model { max-height: 520px; }
    .hero__mascot { width: 180px; left: 6%; }
}

/* Game card quick-play overlay */
.game-card__thumb {
    position: relative;
}

.game-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 17, 13, 0.55);
    opacity: 0;
    transition: opacity var(--transition-base);
    text-decoration: none;
}

.game-card:hover .game-card__play,
.game-card__play:focus-visible {
    opacity: 1;
}

@media (hover: none) {
    .game-card__play {
        opacity: 1;
        background: linear-gradient(180deg, transparent 40%, rgba(24, 17, 13, 0.8) 100%);
        align-items: flex-end;
        padding-bottom: var(--space-md);
    }
}

/* Provider strip */
.provider-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    padding: var(--space-lg) 0;
}

/* Payment logo strip */
.payment-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    padding: var(--space-lg) 0 var(--space-xl);
}

.payment-logo {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Bonus showcase (image + featured promo card) */
.bonus-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin: var(--space-xl) 0 var(--space-2xl);
}

.bonus-showcase__img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 2px solid var(--bronze);
    box-shadow: var(--shadow-gold-glow);
    display: block;
}

@media (min-width: 1024px) {
    .bonus-showcase {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

/* ============================================
   BONUSES PAGE - Centered hero variant
   ============================================ */

.hero--bonus {
    padding: var(--space-3xl) 0;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 420px;
}

.hero--bonus .hero__content {
    max-width: 760px;
    margin: 0 auto;
}

.hero--bonus .hero__content p {
    margin-left: auto;
    margin-right: auto;
}

.hero__actions--center {
    justify-content: center;
}

.trust-badges--center {
    justify-content: center;
}

.loyalty-grid {
    align-items: center;
}

.loyalty-grid .btn {
    margin-top: var(--space-md);
}

@media (min-width: 768px) {
    .hero--bonus {
        min-height: 480px;
        padding: var(--space-4xl) 0;
    }
}

/* ============================================
   LIVE CASINO PAGE - Game show feature panels
   ============================================ */

.feature-panel {
    background: var(--bg-card);
    border: 2px solid var(--bronze);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 0;
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
}

.feature-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold-glow);
}

.feature-panel__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.feature-panel__body {
    padding: var(--space-xl);
}

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

.feature-panel__body p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: var(--space-lg);
}

/* ============================================
   FAQ PAGE - Content photos, seals, KYC grid
   ============================================ */

.grid-2--center {
    align-items: center;
}

.content-photo {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 2px solid var(--bronze);
    box-shadow: var(--shadow-card);
    display: block;
}

.seal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    align-items: center;
    margin: var(--space-xl) 0;
}

.seal-img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}

.magnifier-img {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: var(--space-md) auto 0;
}

.card ol,
.card ul {
    color: var(--text-secondary);
    padding-left: 1.2em;
}

.card li {
    margin-bottom: var(--space-sm);
}

.card li strong {
    color: var(--bone);
}

@media (max-width: 767px) {
    .seal-img {
        height: 80px;
    }
}

/* ============================================
   SITEMAP PAGE - Neutral page list
   ============================================ */

.sitemap-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.sitemap-item h3 {
    margin-bottom: var(--space-sm);
}

.sitemap-item h3 a {
    color: var(--gold);
    text-decoration: none;
}

.sitemap-item h3 a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.sitemap-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
}

/* a11y-autofix: link-in-text-block */
/* axe link-in-text-block: inline links inside body copy must be
   distinguishable without relying on color. Scope to text containers so
   nav/button/card links (already visually distinct) keep their styling. */
:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article)
  a:not([class]) {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

