/* Modern Responsive Design - Mobile First */

/* High Resolution Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .container {
        max-width: var(--max-width);
    }
}

/* Medium Screens (Tablet) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .intro-content {
        gap: 2rem;
    }
    
    .story-content {
        gap: 2rem;
    }
    
    .community-content {
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .transformations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Screens (Mobile) */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--space-xl);
        transition: left var(--transition-normal);
        z-index: 99;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        color: white;
        font-size: var(--text-xl);
        margin: var(--space-md) 0;
        padding: var(--space-md);
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* Game Introduction */
    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .intro-text {
        text-align: center;
    }
    
    .intro-text h3 {
        font-size: 1.5rem;
    }
    
    /* Story Section */
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-text {
        text-align: center;
    }
    
    .story-text h3 {
        font-size: 1.5rem;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Transformations Grid */
    .transformations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Characters Grid */
    .characters-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .character-card {
        padding: 1.5rem;
    }
    
    /* Games Grid */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Guides Tabs */
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        flex: none;
        padding: 0.8rem;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    /* Community Section */
    .community-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .community-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .community-features {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Video Container */
    .video-container {
        margin: 1rem 0;
    }
    
    /* Sections Padding */
    :root {
        --section-padding: 60px 0;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Cards */
    .feature-card,
    .character-card,
    .stat-card,
    .community-features {
        padding: 1rem;
    }
    
    .transformation-card h3,
    .game-card h3 {
        padding: 0.8rem;
    }
    
    .transformation-card p,
    .game-card p {
        padding: 0 0.8rem;
    }
    
    .game-card button {
        margin: 0.8rem;
    }
    
    /* Community Stats */
    .community-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card h3 {
        font-size: 1.3rem;
    }
    
    /* Tab Content */
    .tab-content {
        padding: 1rem;
    }
    
    /* Font Sizes */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Navigation */
    .nav-logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        top: 60px;
    }
    
    /* Sections Padding */
    :root {
        --section-padding: 40px 0;
    }
    
    /* Images */
    .character-image {
        width: 120px;
        height: 120px;
    }
    
    .transformation-image,
    .game-image {
        height: 150px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .nav-menu {
        flex-direction: row;
        justify-content: space-around;
        padding: 1rem 0;
    }
    
    .nav-menu a {
        padding: 0.5rem;
        border-bottom: none;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images look crisp on high DPI screens */
    .hero-image img,
    .story-image img,
    .transformation-image img,
    .character-image img,
    .game-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .btn,
    .online-games,
    .footer {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .hero-title {
        color: var(--black) !important;
    }
    
    section {
        padding: 20px 0;
    }
    
    .section-header h2 {
        color: var(--black) !important;
    }
    
    .feature-card,
    .transformation-card,
    .character-card {
        box-shadow: none;
        border: 1px solid var(--gray);
    }
    
    a {
        color: var(--black) !important;
        text-decoration: underline;
    }
    
    .video-container {
        display: none;
    }
    
    .video-container::after {
        content: "Video content available at: donkeykongbananza.cc";
        display: block;
        text-align: center;
        padding: 20px;
        border: 1px solid var(--gray);
        background-color: var(--light-gray);
    }
}

/* Accessibility - Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-float,
    .banana-float,
    .pulse,
    .rotate {
        animation: none;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
    
    .btn:hover,
    .feature-card:hover,
    .transformation-card:hover,
    .character-card:hover,
    .game-card:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #1a1a1a;
        --white: #2d2d2d;
        --black: #ffffff;
        --gray: #cccccc;
        --light-gray: #333333;
        --shadow: rgba(255, 255, 255, 0.1);
    }
    
    .navbar {
        background-color: rgba(45, 45, 45, 0.95);
    }
    
    .nav-menu {
        background-color: var(--white);
    }
    
    .video-container {
        background-color: var(--light-gray);
    }
}