/*
 * CLEOBETRA CASINO - DESIGN SYSTEM
 * Dark luxury Egyptian theme with gold and turquoise accents.
 * Mobile-first, single dark theme (no theme switcher).
 * Fonts: Cinzel (display) + Manrope (body)
 */

/* ============================================
   DESIGN TOKENS - Dark theme only
   Near-black blue background, luminous gold accents,
   glowing turquoise for interactive elements.
   ============================================ */

:root {
    /* Backgrounds */
    --background: #050a14;
    --background-alt: #0a1424;
    --foreground: #f5e6c8;
    --foreground-muted: #c4b896;

    /* Cards & surfaces */
    --card: #131f33;
    --card-foreground: #f5e6c8;
    --card-hover: #182842;

    /* Primary (deep navy) */
    --primary: #0a1929;
    --primary-foreground: #f5e6c8;

    /* Secondary (dark slate) */
    --secondary: #1e293b;
    --secondary-foreground: #f5e6c8;

    /* Muted */
    --muted: #1e293b;
    --muted-foreground: #94a3b8;

    /* Accent (luminous gold) */
    --accent: #e6b325;
    --accent-hover: #f0c035;
    --accent-foreground: #050a14;
    --accent-dim: rgba(230, 179, 37, 0.15);

    /* Turquoise */
    --turquoise: #2dd4bf;
    --turquoise-hover: #5eead4;
    --turquoise-dim: rgba(45, 212, 191, 0.12);

    /* Borders */
    --border: #2a3a52;
    --border-light: #3a4a62;

    /* Functional */
    --input: #1e293b;
    --ring: #e6b325;
    --destructive: #ea1414;
    --destructive-foreground: #ffffff;

    /* Typography */
    --font-display: "Cinzel", Georgia, serif;
    --font-body: "Manrope", system-ui, sans-serif;

    /* Spacing */
    --header-height: 64px;
    --section-gap: 56px;
    --component-padding: 24px;
    --gap-base: 8px;

    /* Max widths */
    --max-width: 1200px;
    --max-width-wide: 1440px;

    /* Transitions */
    --transition-fast: 200ms ease-out;
    --transition-normal: 300ms ease-out;
    --transition-slow: 600ms ease-out;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow-gold: 0 0 20px rgba(230, 179, 37, 0.25);
    --shadow-glow-turq: 0 0 20px rgba(45, 212, 191, 0.2);
}

@media (min-width: 1024px) {
    :root {
        --section-gap: 72px;
        --component-padding: 40px;
    }
}

/* ============================================
   RESET & BASE - Box sizing, media, overflow
   ============================================ */

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

* {
    margin: 0;
    padding: 0;
}

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

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

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

.table-wrapper,
[class*="table-"] {
    max-width: 100%;
    overflow-x: auto;
}

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

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY - Cinzel display + Manrope body
   Fluid scale with clamp() for responsive headings.
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--accent);
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: 0.04em;
}

h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 600;
    margin-bottom: 24px;
}

h3 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 500;
    margin-bottom: 16px;
}

h4 {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 500;
    margin-bottom: 12px;
}

p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 28px;
    color: var(--foreground);
}

@media (min-width: 768px) {
    body { font-size: 17px; }
    p { font-size: 17px; }
}

.legal-text, .micro-copy {
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted-foreground);
}

.text-accent { color: var(--accent); }
.text-turquoise { color: var(--turquoise); }
.text-muted { color: var(--muted-foreground); }
.text-cream { color: var(--foreground); }

/* ============================================
   LAYOUT - Containers and sections
   ============================================ */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    width: 100%;
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1024px) {
    .container, .container-wide {
        padding: 0 40px;
    }
}

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

.section-tight {
    padding-top: calc(var(--section-gap) * 0.6);
    padding-bottom: calc(var(--section-gap) * 0.6);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--muted-foreground);
    margin-bottom: 0;
}

/* ============================================
   GOLDEN FRAME MOTIF - Double-line border
   Thin gold border + inner fainter gold border
   via ::before pseudo-element. Cartouche-like.
   ============================================ */

.golden-frame {
    position: relative;
    border: 1px solid rgba(230, 179, 37, 0.5);
    border-radius: 8px;
}

.golden-frame::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(230, 179, 37, 0.2);
    border-radius: 5px;
    pointer-events: none;
    z-index: 0;
}

.golden-frame > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   BUTTONS - Primary gold, outline, shimmer
   Minimum 48px touch target on mobile.
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    padding: 14px 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    min-height: 48px;
    white-space: nowrap;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    min-height: 40px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
    min-height: 56px;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-foreground);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--accent-foreground);
    box-shadow: var(--shadow-glow-gold);
}

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

.btn-outline:hover {
    background: var(--accent-dim);
    color: var(--accent-hover);
}

/* Shimmer sweep animation for CTA buttons */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer-sweep 2s ease-in-out infinite;
}

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

/* ============================================
   HEADER - Sticky, logo + nav + CTA buttons
   ============================================ */

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

.header-inner {
    max-width: var(--max-width-wide);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.site-brand .logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.site-brand .brand-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
}

/* Desktop navigation */
.primary-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 1024px) {
    .primary-nav {
        display: flex;
    }
}

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

.nav-link {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--foreground);
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent);
}

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

.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================
   MOBILE MENU TOGGLE - Hamburger button
   Hidden on desktop (>=1024px)
   ============================================ */

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Hamburger → X when open */
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* ============================================
   MOBILE NAV DRAWER - Slide-in from right
   Fixed position, fully opaque, covers screen below header
   ============================================ */

.primary-nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    z-index: 999;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 8px;
}

.primary-nav.is-open .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.primary-nav.is-open .nav-list li {
    border-bottom: 1px solid var(--border);
}

.primary-nav.is-open .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 18px;
    padding: 12px 4px;
}

.primary-nav.is-open .nav-link::after {
    display: none;
}

.primary-nav.is-open .nav-cta-group {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.primary-nav.is-open .nav-cta-group .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   FOOTER - 4 columns on desktop, stacked mobile
   ============================================ */

.site-footer {
    background: var(--background-alt);
    border-top: 1px solid var(--border);
    padding: 56px 24px 24px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

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

@media (min-width: 1024px) {
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 48px;
    }
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-brand .brand-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.footer-desc {
    font-size: 15px;
    color: var(--muted-foreground);
    margin-bottom: 16px;
    line-height: 1.5;
}

.footer-license,
.footer-age,
.footer-responsible {
    font-size: 14px;
    color: var(--muted-foreground);
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 15px;
    color: var(--foreground-muted);
    transition: color var(--transition-fast);
}

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

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--foreground-muted);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    white-space: nowrap;
}

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

.footer-bottom p {
    font-size: 14px;
    color: var(--muted-foreground);
    margin-bottom: 4px;
}

.footer-disclaimer {
    font-size: 13px;
}

/* ============================================
   HERO - Full-bleed with background image + overlay
   120px vertical padding desktop, 80px mobile
   ============================================ */

.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 80px 24px;
    overflow: clip;
}

@media (min-width: 1024px) {
    .hero {
        padding: 100px 40px;
        min-height: 640px;
    }
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: hero-drift 20s ease-in-out infinite alternate;
}

@keyframes hero-drift {
    0% { transform: scale(1.05) translateX(0); }
    100% { transform: scale(1.08) translateX(-15px); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(5, 10, 20, 0.92) 0%,
        rgba(5, 10, 20, 0.6) 50%,
        rgba(5, 10, 20, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1024px) {
    .hero-content {
        max-width: 600px;
        margin: 0;
    }
}

.hero h1 {
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--foreground-muted);
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ============================================
   GAME CARD GRID - 1/2/3 column responsive
   Cards with 16:9 image, golden frame, hover lift
   ============================================ */

.game-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

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

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

.game-card {
    background: var(--card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.game-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.game-card:hover .game-card-image img {
    transform: scale(1.05);
}

.game-card-body {
    padding: 24px;
}

.game-card-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 8px;
}

.game-card-desc {
    font-size: 15px;
    color: var(--foreground-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ============================================
   INFO CARDS - Structured info blocks
   Dark slate bg, golden frame, turquoise icon
   ============================================ */

.info-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

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

.info-card {
    background: var(--card);
    padding: 32px;
    border-radius: 8px;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.info-card:hover {
    border-color: rgba(230, 179, 37, 0.7);
    transform: translateY(-2px);
}

.info-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 32px;
    color: var(--turquoise);
    margin-bottom: 20px;
}

.info-card-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 16px;
}

.info-card-body {
    font-size: 17px;
    color: var(--foreground);
    line-height: 1.6;
}

.info-card-body p {
    margin-bottom: 16px;
}

.info-card-body p:last-child {
    margin-bottom: 0;
}

.info-card-body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 16px;
}

.info-card-body ul li {
    margin-bottom: 8px;
    color: var(--foreground);
}

/* ============================================
   FAQ ACCORDION - Native details/summary
   Golden double-line frame, rotating chevron
   ============================================ */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card);
    border: 1px solid rgba(230, 179, 37, 0.4);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item[open] {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow-gold);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    min-height: 48px;
    font-family: var(--font-display);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 500;
    color: var(--accent);
    transition: color var(--transition-fast);
}

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

.faq-question:hover {
    color: var(--accent-hover);
}

.faq-question-text {
    flex: 1;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--accent);
    transition: transform 250ms ease-out;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 24px;
}

.faq-answer p {
    font-size: 17px;
    color: var(--foreground);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================
   CTA BANNER - Full-width conversion section
   Navy gradient, golden particles, shimmer button
   ============================================ */

.cta-banner {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--background) 100%);
    padding: 64px 24px;
    text-align: center;
    overflow: clip;
    border-top: 1px solid rgba(230, 179, 37, 0.2);
    border-bottom: 1px solid rgba(230, 179, 37, 0.2);
}

@media (min-width: 1024px) {
    .cta-banner {
        padding: 88px 40px;
    }
}

.cta-banner-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(230, 179, 37, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(45, 212, 191, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.cta-banner-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.cta-headline {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.cta-subtext {
    font-size: 17px;
    color: var(--foreground-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-banner .btn {
    margin-bottom: 16px;
}

.cta-micro {
    font-size: 15px;
    color: var(--muted-foreground);
    margin-bottom: 0;
}

/* ============================================
   ENGAGEMENT PATTERNS
   ============================================ */

/* TL;DR / Summary box */
.tldr-box {
    background: var(--card);
    border: 1px solid var(--accent);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
}

.tldr-box-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.tldr-box p {
    margin-bottom: 8px;
    font-size: 16px;
}

.tldr-box p:last-child {
    margin-bottom: 0;
}

/* Callout / highlight box */
.callout-box {
    background: var(--turquoise-dim);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-left: 4px solid var(--turquoise);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 32px 0;
}

.callout-box p {
    margin-bottom: 0;
    color: var(--foreground);
}

/* Stat highlight */
.stat-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stat-highlight-number {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-highlight-label {
    font-size: 15px;
    color: var(--muted-foreground);
    margin-bottom: 4px;
}

.stat-highlight-source {
    font-size: 13px;
    color: var(--muted-foreground);
    font-style: italic;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

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

/* Pull quote */
.pull-quote {
    border: none;
    border-left: 3px solid var(--accent);
    padding: 24px 32px;
    margin: 40px 0;
    background: var(--card);
    border-radius: 0 8px 8px 0;
}

.pull-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(22px, 3vw, 28px);
    color: var(--accent);
    line-height: 1.4;
    margin-bottom: 16px;
}

.pull-quote cite {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 15px;
    color: var(--muted-foreground);
}

/* ============================================
   CRO PATTERNS
   ============================================ */

/* Trust badges row */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--foreground-muted);
    white-space: nowrap;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 15px;
}

.comparison-table thead th {
    background: var(--card);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid var(--accent);
}

.comparison-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--foreground);
}

.comparison-table tbody tr:nth-child(even) {
    background: var(--card);
}

.comparison-table .col-highlight {
    background: var(--accent-dim);
    position: relative;
}

.comparison-table .col-highlight::before {
    content: 'Empfohlen';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--accent-foreground);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Testimonial / social proof */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

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

.testimonial-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.testimonial-card .stars {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 16px;
    color: var(--foreground);
    margin-bottom: 16px;
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--accent);
    font-size: 15px;
}

.testimonial-author-meta {
    font-size: 13px;
    color: var(--muted-foreground);
}

/* ============================================
   TABLES - Styled data tables
   ============================================ */

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 15px;
}

.data-table thead th {
    background: var(--card);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--accent);
}

.data-table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--foreground);
}

.data-table tbody tr:hover {
    background: var(--card-hover);
}

/* ============================================
   SITEMAP LIST - Styled page list with golden frame
   ============================================ */

.sitemap-list li {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.sitemap-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.sitemap-list h2 a {
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sitemap-list h2 a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.sitemap-list p {
    color: var(--foreground-muted);
    font-size: 16px;
}

/* ============================================
   ANIMATIONS - Scroll-triggered reveal
   Elements start hidden, revealed by .is-visible
   ============================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* Staggered delays for grid children */
.game-card-grid .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.game-card-grid .animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.game-card-grid .animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.game-card-grid .animate-on-scroll:nth-child(4) { transition-delay: 240ms; }
.game-card-grid .animate-on-scroll:nth-child(5) { transition-delay: 320ms; }
.game-card-grid .animate-on-scroll:nth-child(6) { transition-delay: 400ms; }

.info-card-grid .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.info-card-grid .animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.info-card-grid .animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.info-card-grid .animate-on-scroll:nth-child(4) { transition-delay: 240ms; }

/* ============================================
   UTILITIES & ACCESSIBILITY
   ============================================ */

.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;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 48px; }
.mb-lg { margin-bottom: 48px; }

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

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

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    .hero-bg img {
        animation: none;
    }
}

/* 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;
}
