/* ============================================================
   Jun88 India SEO - Responsive Stylesheet
   ============================================================ */

/* ============================================================
   Tablet (768px - 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ambassador-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .nav-menu li a {
        padding: 12px 12px;
        font-size: 13px;
    }
}

/* ============================================================
   Mobile (< 768px)
   ============================================================ */
@media (max-width: 767px) {
    .site-header .header-buttons .btn-text {
        display: none;
    }

    .btn-register,
    .btn-login {
        padding: 6px 14px;
        font-size: 12px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 10px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff;
        transition: all 0.3s;
        border-radius: 1px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .main-navigation .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1d29;
        z-index: 100;
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .main-navigation .nav-menu.toggled {
        display: flex;
    }

    .nav-menu li a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .category-item {
        padding: 10px 5px;
    }

    .category-icon {
        width: 48px;
        height: 48px;
    }

    .category-name {
        font-size: 11px;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .mobile-bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 65px;
    }

    .site-footer {
        margin-bottom: 65px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-content {
        font-size: 16px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        border-radius: 8px;
        margin: 10px 0;
    }

    .hero-slide img {
        aspect-ratio: 16 / 9;
    }

    .hero-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .post-card {
        border-radius: 8px;
    }

    .post-card-image {
        height: 160px;
    }

    .post-card-content {
        padding: 15px;
    }

    .post-card-title {
        font-size: 16px;
    }

    .promo-banner {
        padding: 25px 15px;
    }

    .promo-banner h2 {
        font-size: 22px;
    }

    .category-banner {
        height: 150px;
    }

    .category-banner-content h1 {
        font-size: 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .section-title {
        font-size: 18px;
    }

    .site-content {
        padding-top: 100px;
    }

    .single-article {
        padding: 20px 0;
    }

    .article-meta {
        gap: 10px;
        font-size: 12px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item-image {
        width: 100%;
        height: 160px;
    }

    .error-404-content h1 {
        font-size: 72px;
    }

    .ambassador-card {
        flex-direction: column;
        text-align: center;
    }

    .back-to-top {
        bottom: 75px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* ============================================================
   Desktop (>= 768px)
   ============================================================ */
@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none;
    }

    .menu-toggle {
        display: none;
    }

    body {
        padding-bottom: 0;
    }

    .site-footer {
        margin-bottom: 0;
    }
}

/* ============================================================
   Large Desktop (> 1200px)
   ============================================================ */
@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ============================================================
   Small Mobile (< 375px)
   ============================================================ */
@media (max-width: 374px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-nav-btn {
        display: none;
    }

    .header-buttons {
        gap: 5px;
    }

    .btn-register,
    .btn-login {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
    .site-header,
    .mobile-bottom-nav,
    .partners-section,
    .share-buttons,
    .back-to-top,
    .promo-banner,
    .loading-screen,
    .main-navigation {
        display: none !important;
    }

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

    .site-content {
        padding-top: 0;
    }

    .post-card,
    .widget {
        border: 1px solid #ddd;
        background: white;
        color: black;
    }

    .article-content {
        color: black;
    }

    .article-content p {
        color: #333;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .site-footer {
        background: white;
        color: #333;
        border-top: 1px solid #ddd;
    }
}
