/* 
 * Crazy Cattle 3D - Responsive Stylesheet
 * Version: 1.0
 * Website: https://crazycattle3d.games
 */

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Desktop & Laptop (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .game-window {
        max-width: 800px;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Header adjustments */
    .logo svg {
        max-height: 40px;
    }
    
    /* Intro section adjustments */
    .intro-section .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .intro-content {
        order: 1;
    }
    
    .intro-video {
        order: 0;
        margin-bottom: var(--spacing-md);
    }
    
    /* Environment section adjustments */
    .environments-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
    
    .environment-card.newzealand {
        grid-column: auto;
    }
    
    /* Footer adjustments */
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Header mobile menu */
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--background-dark);
        flex-direction: column;
        padding: var(--spacing-md) 0;
        box-shadow: var(--shadow-md);
    }
    
    nav.active ul {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: var(--spacing-md);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Mobile menu animation */
    nav.active .mobile-menu-btn span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    nav.active .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }
    
    nav.active .mobile-menu-btn span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Game section adjustments */
    .game-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .game-actions .btn {
        width: 100%;
    }
    
    /* Intro section adjustments */
    .intro-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .intro-buttons .btn {
        width: 100%;
    }
    
    /* Features grid adjustments */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Download grid adjustments */
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    /* Community grid adjustments */
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    /* FAQ section adjustments */
    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Mobile Portrait (Up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    /* Header adjustments */
    header .container {
        height: 60px;
    }
    
    .logo svg {
        max-height: 30px;
    }
    
    nav ul {
        top: 60px;
    }
    
    /* Game section adjustments */
    .game-section {
        padding-top: 90px;
    }
    
    .game-controls p {
        font-size: 0.8rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Guide section adjustments */
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer adjustments */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto var(--spacing-md);
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Mobile Device Warning */
@media (pointer: coarse) and (max-width: 991px) {
    /* 移除移动设备警告样式，保持移动设备访问体验一致 */
    /* 原先的mobile-warning相关样式已被移除 */
}

/* ===== Responsive Styles for New Sections ===== */
@media (max-width: 960px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .how-to-play-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .how-to-play-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .features-extra-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .pro-tip {
        padding: 15px;
    }
    
    .about-section h2,
    .how-to-play-section h2,
    .testimonials-section h2 {
        font-size: 1.8rem;
        padding-bottom: 10px;
    }
    
    .how-to-play-section h2::after,
    .about-section h2::after,
    .testimonials-section h2::after {
        width: 60px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .how-to-play-card,
    .feature-extra-card,
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-cta {
        padding: 20px;
    }
    
    .how-to-play-icon svg,
    .feature-image svg {
        width: 100%;
        height: auto;
    }
    
    .about-section h2,
    .how-to-play-section h2,
    .testimonials-section h2 {
        font-size: 1.5rem;
        padding-bottom: 8px;
    }
    
    .how-to-play-section h2::after,
    .about-section h2::after,
    .testimonials-section h2::after {
        width: 50px;
        height: 2px;
    }
} 