/* ==================================
   MOBILE RESPONSIVE STYLES
   ================================== */

/* Mobile-first approach - these override desktop styles for smaller screens */

/* Large tablets and below (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    /* Hero adjustments */
    .hero {
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    /* Game modes grid */
    .modes-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mode-card.featured {
        order: -1; /* Put featured first on mobile */
    }
}

/* Tablets and below (768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    /* Typography scaling */
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    /* Navigation */
    .navbar {
        padding: 1rem 0;
    }
    
    .nav-menu {
        display: none; /* Use mobile menu */
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* Hero */
    .hero {
        min-height: 70vh;
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    /* About section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-visual {
        order: -1; /* Image first on mobile */
    }
    
    /* Game modes */
    .modes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mode-card-content {
        padding: 1.5rem;
    }
    
    .mode-title {
        font-size: 1.8rem;
    }
    
    .mode-description {
        font-size: 0.95rem;
    }
    
    /* Arsenal */
    .arsenal-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item.large {
        grid-column: auto;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item.large {
        grid-column: auto;
    }
    
    /* Economy cards */
    .economy-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Chains */
    .chains-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .chain-item {
        padding: 1rem;
    }
    
    .chain-logo svg {
        width: 28px;
        height: 28px;
    }
    
    /* Roadmap */
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        left: -20px;
    }
    
    /* Community grid */
    .community-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Partners */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Mobile phones (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    /* Typography */
    .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .section-tag {
        font-size: 0.7rem;
    }
    
    /* Navigation */
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .logo-protocol {
        font-size: 0.6rem;
    }
    
    .nav-actions a:not(.nav-cta) {
        display: none; /* Hide social links on very small screens */
    }
    
    /* Hero */
    .hero {
        min-height: 60vh;
        padding: 5rem 0 2rem;
    }
    
    .hero-badge {
        padding: 0.4rem 1rem;
        font-size: 0.65rem;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 12vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
    
    /* Mode cards */
    .mode-featured-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }
    
    .mode-title {
        font-size: 1.5rem;
    }
    
    .mode-type {
        font-size: 0.7rem;
    }
    
    .feature-tag {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }
    
    /* Economy */
    .economy-flow {
        flex-direction: column;
        gap: 1rem;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    /* Chains - stack vertically on very small screens */
    .chains-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-col h4 {
        font-size: 0.9rem;
    }
    
    .footer-col a {
        font-size: 0.85rem;
    }
    
    /* Modal adjustments */
    .email-modal .modal-content {
        width: 90%;
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}

/* Very small screens (320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Landscape mobile fix */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-stats {
        display: none; /* Hide stats in landscape to save space */
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-video,
    .preloader,
    .cursor-glow,
    video {
        display: none;
    }
}
