/* ==========================================================================
   Casino Starter — Design System
   ==========================================================================
   CSS Custom Properties (Design Tokens), Reset, Typography, Grid, 
   and base component styles.
   ========================================================================== */

/* ------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   ------------------------------------------------------------------ */
:root {
    /* Colors — Primary */
    --color-primary:        #0a2463;
    --color-primary-light:  #1a3a7a;
    --color-primary-dark:   #061a4a;
    --color-primary-rgb:    10, 36, 99;

    /* Colors — CTA */
    --color-cta:            #f5a623;
    --color-cta-hover:      #e09000;
    --color-cta-light:      #fff3d6;

    /* Colors — Status */
    --color-success:        #28a745;
    --color-success-light:  #d4edda;
    --color-danger:         #dc3545;
    --color-danger-light:   #f8d7da;
    --color-warning:        #ffc107;
    --color-info:           #17a2b8;

    /* Colors — Neutrals */
    --color-white:          #ffffff;
    --color-light-bg:       #f5f6fa;
    --color-border:         #e2e5ec;
    --color-border-light:   #f0f1f5;
    --color-text:           #2d2d2d;
    --color-text-secondary: #666666;
    --color-text-muted:     #999999;
    --color-dark:           #1a1a2e;
    --color-dark-lighter:   #2d2d44;

    /* Typography */
    --font-primary:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading:     'Montserrat', 'Inter', sans-serif;
    --font-mono:        'JetBrains Mono', 'Fira Code', monospace;

    --text-xs:          0.75rem;   /* 12px */
    --text-sm:          0.875rem;  /* 14px */
    --text-base:        1rem;      /* 16px */
    --text-lg:          1.125rem;  /* 18px */
    --text-xl:          1.25rem;   /* 20px */
    --text-2xl:         1.5rem;    /* 24px */
    --text-3xl:         1.875rem;  /* 30px */
    --text-4xl:         2.25rem;   /* 36px */

    --weight-regular:   400;
    --weight-medium:    500;
    --weight-semibold:  600;
    --weight-bold:      700;
    --weight-extrabold: 800;

    --leading-tight:    1.25;
    --leading-snug:     1.375;
    --leading-normal:   1.6;
    --leading-relaxed:  1.75;

    /* Spacing */
    --space-xs:   0.25rem;  /* 4px */
    --space-sm:   0.5rem;   /* 8px */
    --space-md:   1rem;     /* 16px */
    --space-lg:   1.5rem;   /* 24px */
    --space-xl:   2rem;     /* 32px */
    --space-2xl:  3rem;     /* 48px */
    --space-3xl:  4rem;     /* 64px */

    /* Layout */
    --container-max:    1200px;
    --container-wide:   1400px;
    --sidebar-width:    340px;
    --content-gap:      2rem;

    /* Borders */
    --radius-sm:    4px;
    --radius-md:    8px;
    --radius-lg:    12px;
    --radius-xl:    16px;
    --radius-full:  9999px;

    /* Shadows */
    --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md:    0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg:    0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl:    0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-card:  0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 6px 20px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;
    --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ------------------------------------------------------------------
   2. CSS Reset / Normalize
   ------------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-light-bg);
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

a:hover {
    color: var(--color-primary-light);
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}


/* ------------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

h1 { font-size: var(--text-4xl); font-weight: var(--weight-extrabold); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); font-weight: var(--weight-semibold); }

p {
    margin-bottom: var(--space-md);
    line-height: var(--leading-normal);
}

.lead {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

strong, b {
    font-weight: var(--weight-semibold);
}

blockquote {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    margin: var(--space-xl) 0;
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    position: relative;
}

blockquote::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 16px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

blockquote cite,
blockquote footer {
    display: block;
    margin-top: var(--space-sm);
    font-size: var(--text-sm);
    font-style: italic;
    opacity: 0.8;
}


/* ------------------------------------------------------------------
   4. Layout — Container & Grid
   ------------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.container--wide {
    max-width: var(--container-wide);
}

.site-content {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--content-gap);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    align-items: start;
}

.site-content--full {
    grid-template-columns: 1fr;
}

.content-area {
    min-width: 0; /* prevent grid blowout */
}


/* ------------------------------------------------------------------
   5. Base Component Styles
   ------------------------------------------------------------------ */

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all var(--transition-base);
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}

.btn--cta {
    background: var(--color-cta);
    color: var(--color-text);
    border-color: var(--color-cta);
}

.btn--cta:hover {
    background: var(--color-cta-hover);
    border-color: var(--color-cta-hover);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.75rem;
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    color: var(--color-white);
    line-height: 1.4;
}

.badge--success {
    background: var(--color-success);
}

.badge--cta {
    background: var(--color-cta);
    color: var(--color-text);
}

.badge--primary {
    background: var(--color-primary);
}

.badge--danger {
    background: var(--color-danger);
}

.badge--info {
    background: var(--color-info);
}

/* --- Card base --- */
.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

/* --- Pill Buttons --- */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pill:hover,
.pill--active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* --- Checkmark list (advantages) --- */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.4rem;
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: var(--weight-bold);
    font-size: var(--text-sm);
}

/* --- Info Box (blockquote style) --- */
.info-box {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    margin: var(--space-xl) 0;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

.info-box a {
    color: var(--color-cta);
    text-decoration: underline;
}

.info-box a:hover {
    color: var(--color-cta-hover);
}

/* --- Accordion (FAQ) --- */
.accordion {
    margin: var(--space-xl) 0;
}

.accordion__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    background: var(--color-white);
    overflow: hidden;
}

.accordion__trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    text-align: left;
    background: var(--color-white);
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.accordion__trigger:hover {
    background: var(--color-light-bg);
}

.accordion__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: var(--weight-bold);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.accordion__item.is-open .accordion__icon {
    transform: rotate(45deg);
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.accordion__content-inner {
    padding: 0 var(--space-lg) var(--space-lg);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

.accordion__item.is-open .accordion__content {
    max-height: 2000px;
}

/* --- Bonus Terms Collapsible --- */
.bonus-terms-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.bonus-terms-toggle:hover {
    color: var(--color-primary);
}

.bonus-terms-toggle svg {
    width: 14px;
    height: 14px;
}

.bonus-terms-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.bonus-terms-content.is-open {
    max-height: 500px;
}

.bonus-terms-content-inner {
    padding: var(--space-sm) 0;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

/* --- Rating Stars --- */
.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.rating-stars .star {
    width: 18px;
    height: 18px;
    color: var(--color-cta);
}

.rating-stars .star--empty {
    color: var(--color-border);
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 999;
    cursor: pointer;
    border: none;
}

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

.scroll-top:hover {
    background: var(--color-primary-light);
    transform: translateY(-3px);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
}

/* --- Content Card Containers (Neat white card background under text) --- */
#article-content,
.slot-review-content,
.slot-archive__intro,
.slot-archive__bottom-seo {
    background: var(--color-white, #ffffff);
    border: 1px solid #e5e8ef;
    border-radius: 16px;
    padding: 24px 22px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Ensure no double margin on first/last child inside content cards */
#article-content > :first-child,
.slot-review-content > :first-child,
.slot-archive__intro > :first-child,
.slot-archive__bottom-seo > :first-child {
    margin-top: 0 !important;
}

#article-content > :last-child,
.slot-review-content > :last-child,
.slot-archive__intro > :last-child,
.slot-archive__bottom-seo > :last-child {
    margin-bottom: 0 !important;
}

/* Hide empty content boxes if a post has no body text */
#article-content:empty,
.slot-review-content:empty,
.slot-archive__intro:empty,
.slot-archive__bottom-seo:empty {
    display: none !important;
}

/* --- Content Prose (Article text & Gutenberg blocks) --- */
.prose h2,
.entry-content h2 {
    margin-top: var(--space-2xl);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
}

.prose h3,
.entry-content h3 {
    margin-top: var(--space-xl);
}

.prose ul,
.entry-content ul,
.prose ol,
.entry-content ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.prose ul,
.entry-content ul {
    list-style: disc;
}

.prose ol,
.entry-content ol {
    list-style: decimal;
}

.prose li,
.entry-content li {
    margin-bottom: var(--space-sm);
    line-height: var(--leading-relaxed);
}

.prose p,
.entry-content p {
    margin-bottom: var(--space-md);
    line-height: var(--leading-relaxed);
}

.prose a,
.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(var(--color-primary-rgb), 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--transition-fast);
}

.prose a:hover,
.entry-content a:hover {
    text-decoration-color: var(--color-primary);
}

.prose img,
.entry-content img {
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.prose table,
.entry-content table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.prose table th,
.entry-content table th,
.wp-block-table table th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: var(--weight-semibold);
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    font-size: var(--text-sm);
}

.prose table td,
.entry-content table td,
.wp-block-table table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-sm);
}

.prose table tr:last-child td,
.entry-content table tr:last-child td,
.wp-block-table table tr:last-child td {
    border-bottom: none;
}

.prose table tr:nth-child(even),
.entry-content table tr:nth-child(even),
.wp-block-table table tr:nth-child(even),
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background: var(--color-light-bg);
}

.wp-block-table {
    margin: var(--space-lg) 0;
    overflow-x: auto;
}

/* --- Show More Button --- */
.show-more-wrapper {
    text-align: center;
    margin-top: var(--space-lg);
}

.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 2rem;
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.show-more-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.show-more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.show-more-btn.is-expanded svg {
    transform: rotate(180deg);
}

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

.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-0  { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-0  { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ------------------------------------------------------------------
   Pagination (casino catalog, casino taxonomy archives, blog, archives,
   search): buttons, the current page highlighted, "Previous / Next"
   ------------------------------------------------------------------ */
.navigation.pagination { margin: var(--space-xl) 0 var(--space-md); }
.navigation.pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
    text-decoration: none;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
.navigation.pagination a.page-numbers:hover { border-color: var(--color-primary); background: var(--color-light-bg); }
.navigation.pagination .page-numbers.current { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.navigation.pagination .page-numbers.dots { border-color: transparent; background: transparent; min-width: 0; padding: 0 2px; }
.navigation.pagination .prev,
.navigation.pagination .next { padding: 0 14px; }
@media (max-width: 480px) {
    /* Phones: slightly smaller buttons */
    .navigation.pagination .page-numbers { min-width: 34px; height: 34px; padding: 0 8px; }
}

/* ==========================================================================
   Casino logo background plate (casino → Main → "Logo background":
   Auto / Light / Dark / Custom). Applied to the logo image wherever it is shown.
   ========================================================================== */
.casino-logo-plate {
    background-color: var(--logo-plate) !important;
}

:where(.casino-logo-plate) {
    border-radius: var(--radius-sm);
}

.casino-logo-plate--light { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.casino-logo-plate--dark  { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }

/* Hero tile keeps its drop shadow */
.bonus-hero__logo--tile.casino-logo-plate--light { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.25); }
.bonus-hero__logo--tile.casino-logo-plate--dark  { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 4px 16px rgba(0, 0, 0, 0.25); }
