/* Responsive Design */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .mutations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .hero-container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .mutations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small screens (768px and down) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100%;
        flex-direction: column;
        background-color: rgba(15, 15, 35, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .mutation-showcase {
        max-width: 250px;
    }

    /* Navigation Cards */
    .nav-grid {
        grid-template-columns: 1fr;
    }

    /* Content Sections */
    .section-header h2 {
        font-size: 2rem;
    }

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

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

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

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }
}

/* Extra small screens (480px and down) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-intro {
        font-size: 1rem;
    }

    .mutation-card {
        padding: 1.5rem;
    }

    .mutation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .multiplier {
        align-self: flex-end;
    }

    .nav-card {
        padding: 1.5rem;
    }

    .strategy-card {
        padding: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 60px;
    }

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

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

    .hero-stats {
        margin-top: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="grain" width="200" height="200" patternUnits="userSpaceOnUse"><circle cx="100" cy="100" r="2" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="200" height="200" fill="url(%23grain)"/></svg>');
    }
}

/* Print styles */
@media print {
    .header,
    .nav-toggle,
    .hero-stats,
    .nav-grid,
    .footer {
        display: none;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
        color: #000;
    }

    .hero-subtitle {
        color: #333;
    }

    .mutation-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        background: #fff;
        color: #000;
    }

    .mutation-card p {
        color: #333;
    }

    .tag {
        background: #f0f0f0;
        color: #333;
    }

    .multiplier {
        background: #ffd700;
        color: #000;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .mutation-item::before {
        display: none;
    }

    .nav-card:hover,
    .mutation-card:hover,
    .strategy-card:hover,
    .info-card:hover {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Styles are already optimized for dark mode */
}

/* Light mode support (if needed) */
@media (prefers-color-scheme: light) {
    /* Add light mode styles if needed */
} 