/* ==========================================================================
   Bầu Cua: Ngẫu Nhiên - Responsive Stylesheet
   ========================================================================== */

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

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

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

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

    .nav-menu {
        gap: 15px;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   Tablet Portrait / Mobile (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-toggle-icon {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        position: relative;
        transition: all 0.3s ease;
    }

    .nav-toggle-icon::before,
    .nav-toggle-icon::after {
        content: '';
        position: absolute;
        left: 0;
        top: -8px;
        width: 25px;
        height: 3px;
        background: #fff;
        transition: all 0.3s ease;
    }

    .nav-toggle-icon::after {
        top: 8px;
    }

    .nav-toggle.active .nav-toggle-icon {
        background: transparent;
    }

    .nav-toggle.active .nav-toggle-icon::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .nav-toggle-icon::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #C62828;
        display: none;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .main-nav.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu a {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-actions {
        display: none;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-rating {
        gap: 10px;
    }

    .rating-stars {
        font-size: 1.3rem;
    }

    .rating-number {
        font-size: 1.1rem;
    }

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

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

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

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .slides-section,
    .games-section,
    .posters-section,
    .about-section,
    .recent-posts {
        padding: 35px 0;
    }

    .about-content {
        font-size: 1rem;
    }

    .single-post {
        padding: 30px 0;
    }

    .single-post .post-title {
        font-size: 1.6rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .related-posts {
        padding: 30px 0;
    }

    .archive-header {
        padding: 35px 0;
    }

    .archive-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Mobile (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-rating {
        flex-direction: column;
        gap: 8px;
    }

    .rating-stars {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .rating-number {
        font-size: 1rem;
    }

    .rating-text {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .btn-play {
        padding: 6px 16px;
        font-size: 0.75rem;
    }

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

    .slide-prev,
    .slide-next {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .slide-prev {
        left: 5px;
    }

    .slide-next {
        right: 5px;
    }

    .about-content {
        font-size: 0.95rem;
    }

    .about-content h3 {
        font-size: 1.1rem;
    }

    .post-title {
        font-size: 1rem;
    }

    .post-thumb img {
        height: 160px;
    }

    .single-post .post-title {
        font-size: 1.4rem;
    }

    .archive-title {
        font-size: 1.3rem;
    }

    .footer-widget h3,
    .widget-title {
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }
}
