/**
 * Responsive CSS - API88 Casino
 */

/* ==========================================================================
   TABLET (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    /* Header two-tier */
    .header-nav-bar .nav-main {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-nav-bar {
        display: none;
    }

    /* Show mobile toggle in top bar */
    .header-top-inner {
        position: relative;
    }

    /* Hero Split — stack vertically on tablet */
    .hero-split {
        flex-direction: column;
        min-height: auto;
    }

    .hero-split-left,
    .hero-split-right {
        width: 100%;
    }

    .hero-split-left {
        min-height: 380px;
    }

    .hero-split-left-content {
        padding: 40px 32px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        align-items: center;
    }

    .hero-badge { width: 100%; }

    .hero-split-right-inner {
        padding: 40px 32px;
    }

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

    /* Guide */
    .guide-magazine-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-mag-featured {
        grid-column: span 2;
    }

    /* Stats */
    .typograph-stats-row {
        gap: 0;
    }

    .typograph-stat-block {
        padding: 20px 24px;
    }

    /* Articles */
    .articles-mag-grid {
        grid-template-columns: 1fr;
    }

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

    /* Article layout */
    .article-layout {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Section header side */
    .section-header-side {
        flex-direction: column;
        gap: 16px;
    }
}

/* ==========================================================================
   TABLET PORTRAIT (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --total-header-height: 56px;
    }

    .header-top-bar {
        padding: 6px 0;
    }

    .header-logo img {
        height: 32px;
    }

    .header-logo-text {
        font-size: 1.1rem;
    }

    /* Hero */
    .hero-split-left-content {
        padding: 32px 24px;
    }

    .hero-big-num {
        font-size: 2.2rem;
    }

    .hero-split-right-inner {
        padding: 36px 24px;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
    }

    /* Features strip */
    .features-strip-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Guide */
    .guide-magazine-grid {
        grid-template-columns: 1fr 1fr;
    }

    .guide-mag-featured {
        grid-column: span 2;
    }

    /* Typography stats */
    .typograph-stats-row {
        flex-direction: column;
    }

    .typograph-divider {
        width: 100px;
        height: 1px;
    }

    /* Article magazine rows */
    .article-mag-row-img {
        width: 72px;
    }

    /* Tags */
    .tags-chips-wrap {
        gap: 8px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links a::before {
        display: none;
    }

    .footer-links a {
        padding-left: 0;
    }

    /* Sidebar */
    .sidebar {
        order: 2;
    }
}

/* ==========================================================================
   MOBILE (max-width: 640px)
   ========================================================================== */

@media (max-width: 640px) {
    :root {
        --container-padding: 1rem;
    }

    /* Hero split */
    .hero-split-left {
        min-height: 320px;
    }

    .hero-big-num {
        font-size: 1.8rem;
    }

    /* Features strip */
    .features-strip-grid {
        grid-template-columns: 1fr;
    }

    /* Guide */
    .guide-magazine-grid {
        grid-template-columns: 1fr;
    }

    .guide-mag-featured {
        grid-column: span 1;
    }

    /* Articles */
    .article-mag-feat-img {
        height: 200px;
    }

    /* Tags */
    .tag-chip {
        font-size: 0.82rem;
        padding: 7px 14px;
    }

    /* Pagination */
    .pagination a,
    .pagination span {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 20px;
    }

    /* Article content tables */
    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ==========================================================================
   VERY SMALL (max-width: 380px)
   ========================================================================== */

@media (max-width: 380px) {
    .header-logo-text {
        display: none;
    }

    .hero-split-right-inner {
        padding: 28px 18px;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

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

    .reveal-section {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
    .header,
    .footer,
    .sidebar,
    .mobile-nav,
    .mobile-overlay,
    .hero-cta-group,
    .btn,
    .pagination {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
}

/* ==========================================================================
   LARGE SCREENS
   ========================================================================== */

@media (min-width: 1400px) {
    .container-wide {
        max-width: 1600px;
    }
}
