/**
 * Responsive CSS — India Bet Hub
 */

/* ==========================================================================
   TABLET (max 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-split {
        grid-template-columns: 1fr;
    }
    .featured-split.reverse {
        direction: ltr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MOBILE (max 768px)
   ========================================================================== */

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

    /* Header — show only top bar on mobile, hide nav bar */
    .header-nav-bar {
        display: none;
    }

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

    .header-top-cta .nav-cta-btn {
        display: none;
    }

    .header-top-tagline {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: auto;
        max-height: none;
        padding-top: var(--total-header-height);
    }

    .hero-main {
        padding: var(--space-2xl) 0 var(--space-xl);
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .hero-trust {
        gap: var(--space-md);
    }

    .hero-trust-item {
        font-size: 0.7rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    /* Sections */
    .section {
        padding: var(--space-2xl) 0;
    }

    /* Categories */
    .category-magazine {
        grid-template-columns: 1fr;
    }

    /* Tags */
    .tags-flow {
        gap: var(--space-xs);
    }

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

    .article-list-item {
        flex-direction: column;
    }

    .article-list-img {
        width: 100%;
        min-width: 0;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    /* Page hero */
    .page-hero {
        padding: calc(var(--total-header-height) + var(--space-xl)) 0 var(--space-xl);
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }
}

/* ==========================================================================
   SMALL MOBILE (max 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
        text-align: left;
    }

    .hero-content {
        text-align: left;
    }

    .hero-buttons {
        align-items: flex-start;
    }

    .section-header {
        text-align: left;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .cat-mag-card-body {
        padding: var(--space-md);
    }
}
