/* ==========================================================================
   Casino Starter — Responsive Styles
   Mobile-first breakpoints
   ========================================================================== */

/* Mid-Desktop / Tablet (compact content with sidebar): max 1140px */
@media screen and (max-width: 1140px) and (min-width: 769px) {
    .casino-card {
        grid-template-columns: 140px 1fr 140px;
        grid-template-rows: auto auto;
        gap: 10px 14px;
        padding: 14px 18px;
    }

    .casino-card__advantages {
        grid-column: 1 / -1;
        grid-row: 2;
        border-left: none;
        border-top: 1px solid var(--color-border-light);
        padding-left: 0;
        padding-top: 10px;
    }

    .casino-card__advantages ul,
    .casino-card__advantages .check-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 16px;
    }

    .casino-card__advantages ul li,
    .casino-card__advantages .check-list li {
        margin-bottom: 0;
    }

    .casino-card__cta-col {
        justify-self: end;
        align-self: center;
        width: 100%;
    }

    .casino-card__cta-btn {
        max-width: 140px;
    }
}

/* Tablet: max 1024px */
@media screen and (max-width: 1024px) {

    /* Layout: stack sidebar below content */
    .site-content {
        grid-template-columns: 1fr;
    }

    .site-sidebar {
        position: static;
        max-height: none;
    }

    /* Casino card: 2-row layout */
    .casino-card {
        grid-template-columns: 160px 1fr 160px;
        grid-template-rows: auto auto;
    }

    .casino-card__advantages {
        grid-column: 1 / -1;
        grid-row: 2;
        border-left: none;
        border-top: 1px solid var(--color-border-light);
        padding-left: 0;
        padding-top: var(--space-sm);
    }

    /* Footer: 2 columns */
    .site-footer__main {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Promo cards: single column */
    .promo-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Bonus hero: stack */
    .bonus-hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .bonus-hero__meta {
        justify-content: center;
    }

    .bonus-hero__taxonomy {
        justify-content: center;
    }
}


/* Mobile landscape: max 768px */
@media screen and (max-width: 768px) {

    /* Hide desktop burger — we use bottom bar instead */
    .mobile-menu-toggle {
        display: none !important;
    }

    /* Show bottom navigation bar (overrides header.css !important) */
    .mobile-bottom-bar {
        display: block !important;
    }

    .mobile-nav {
        display: block;
    }

    /* Hide desktop nav */
    .primary-nav {
        display: none !important;
    }

    /* Hide sidebar on mobile (TOC is handled by bottom bar drawer) */
    .site-sidebar {
        display: none !important;
    }

    /* Hide standalone TOC FAB — TOC button is in bottom bar */
    .mobile-toc-fab {
        display: none !important;
    }

    /* Bottom padding so content isn't hidden behind bottom bar */
    .site-footer {
        padding-bottom: 60px;
    }

    /* Header adjustments */
    .site-header__inner {
        height: 60px;
    }

    /* Hide standalone scroll-top (it's in the bottom bar) */
    .scroll-top {
        display: none !important;
    }

    /* Content cards padding on mobile */
    #article-content,
    .slot-review-content,
    .slot-archive__intro,
    .slot-archive__bottom-seo {
        padding: 20px 16px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    /* ================================================
       Casino card: Competitor-style mobile layout
       [Logo + Badge + Review link]
       [Bonus | Spins] — 2-col table
       [✓ Advantages left-aligned]
       [Bonus code]
       [========= CTA Button =========]
       ================================================ */
    .casino-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        text-align: center;
        padding: 14px;
        gap: 0;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    /* --- Logo row --- */
    .casino-card__logo-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding-bottom: 10px;
        border-bottom: none;
    }

    .casino-card__badge {
        margin-bottom: 0;
    }

    .casino-card__logo {
        width: 160px;
        height: auto;
        margin-bottom: 4px;
    }

    .casino-card__review-link {
        font-size: 12px;
        color: var(--color-primary, #0a2463);
    }

    /* --- Bonus row: 2-column table --- */
    .casino-card__bonus-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        text-align: center;
        padding: 0;
        border-top: 1px solid var(--color-border-light, #e0e0e0);
        border-bottom: 1px solid var(--color-border-light, #e0e0e0);
        margin: 0;
    }

    .casino-card__bonus-label,
    .casino-card__spins-label {
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--color-text-muted, #777);
        margin-top: 0;
        padding-top: 8px;
    }

    .casino-card__bonus-value {
        font-size: 15px;
        font-weight: 800;
        padding-bottom: 8px;
    }

    .casino-card__spins-value {
        font-size: 15px;
        font-weight: 800;
        padding-bottom: 8px;
    }

    /* Divider between 2 bonus columns */
    .casino-card__bonus-col > *:nth-child(1),
    .casino-card__bonus-col > *:nth-child(2) {
        border-right: none;
    }
    .casino-card__bonus-col > *:nth-child(odd) {
        border-right: 1px solid var(--color-border-light, #e0e0e0);
    }

    /* --- Advantages: left-align with check icons --- */
    .casino-card__advantages {
        border-top: none;
        border-left: none;
        padding: 10px 4px;
        text-align: left;
    }

    .casino-card__advantages ul,
    .casino-card__advantages .check-list {
        list-style: none !important;
        margin: 0;
        padding: 0;
    }

    .casino-card__advantages .check-list li {
        list-style: none !important;
        font-size: 13px;
        margin-bottom: 4px;
        padding: 1px 0;
        padding-left: 1.5em;
        position: relative;
        text-align: left;
    }

    .casino-card__advantages .check-list li::before {
        position: absolute;
        left: 0;
    }

    .casino-card__advantages .check-list li::marker {
        content: none;
        display: none;
    }

    /* --- Bonus code --- */
    .casino-card__code {
        padding: 4px 10px;
        font-size: 12px;
        margin: 4px auto 8px;
    }

    /* --- CTA button: full width, prominent --- */
    .casino-card__cta-col {
        padding-top: 4px;
        gap: 6px;
    }

    .casino-card__cta-btn {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        font-weight: 700;
        border-radius: 8px;
    }

    .casino-card__terms-link {
        font-size: 11px;
    }

    .casino-card__terms-panel {
        grid-column: 1;
    }

    /* Footer: single column */
    .site-footer__main {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

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

    /* Promo card: stack */
    .promo-card {
        flex-direction: column;
        text-align: center;
    }

    /* Responsible gambling: stack */
    .responsible-gambling__inner {
        flex-direction: column;
        text-align: center;
    }

    /* Typography scaling */
    h1 { font-size: var(--text-2xl); }
    h2 { font-size: var(--text-xl); }
    h3 { font-size: var(--text-lg); }

    /* Container padding */
    .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .site-content {
        padding: var(--space-md);
    }

    /* Bonus hero scaling */
    .bonus-hero__amount {
        font-size: var(--text-3xl);
    }

    .bonus-hero__title {
        font-size: var(--text-xl);
    }
}


/* Mobile portrait: max 480px */
@media screen and (max-width: 480px) {

    /* Even tighter spacing */
    .casino-card {
        padding: var(--space-sm);
    }

    .casino-card__logo {
        width: 140px;
        height: auto;
    }

    .casino-card__bonus-col {
        grid-template-columns: 1fr;
    }

    /* Pill group: horizontal scroll */
    .pill-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: var(--space-sm);
    }

    .pill-group::-webkit-scrollbar {
        display: none;
    }

    .pill {
        flex-shrink: 0;
    }

    /* TOC: sublists remain collapsed (accordion) on mobile */

    /* Typography */
    h1 { font-size: var(--text-xl); }

    .bonus-hero__amount {
        font-size: var(--text-2xl);
    }

    /* Breadcrumbs: scroll */
    .breadcrumbs__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .breadcrumbs__list::-webkit-scrollbar {
        display: none;
    }

    .breadcrumbs__item {
        flex-shrink: 0;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .site-sidebar,
    .scroll-top,
    .mobile-nav,
    .mobile-bottom-bar,
    .mobile-toc-fab,
    .breadcrumbs {
        display: none !important;
    }

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

    .casino-card__cta-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
