/* Responsive Design for Steal Brainrot Online */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .game-iframe-wrapper {
        height: 500px;
        max-width: 900px;
        /* Preserve background image */
        background: 
            linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
            url('images/steal-brainrot.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #ff6b6b !important;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .play-now-btn {
        padding: 15px 35px;
        font-size: 1.5rem;
    }
    
    .game-controls-section {
        padding: 30px;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .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-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-image {
        flex-direction: column;
        align-items: center;
    }
    
    .character-image {
        width: 120px;
        height: 120px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .reasons-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .game-section {
        padding: 60px 0 40px 0;
        margin-top: 70px;
    }
    
    .play-now-btn {
        padding: 15px 35px;
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 50px 0 30px;
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .game-iframe-wrapper {
        height: 400px;
        max-width: 100%;
        /* Preserve background image */
        background: 
            linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
            url('images/steal-brainrot.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #ff6b6b !important;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .play-now-btn {
        padding: 12px 30px;
        font-size: 1.3rem;
    }
    
    .game-controls-section {
        padding: 25px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .step {
        gap: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .game-section {
        padding: 50px 0 30px 0;
        margin-top: 70px;
    }
    
    .play-now-btn {
        padding: 12px 30px;
        font-size: 1.3rem;
    }
    
    .hero {
        min-height: 50vh;
        padding: 30px 0 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .game-iframe-wrapper {
        height: 300px;
        max-width: 100%;
        /* Preserve background image */
        background: 
            linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
            url('images/steal-brainrot.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #ff6b6b !important;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .play-now-btn {
        padding: 10px 25px;
        font-size: 1.1rem;
    }
    
    .game-controls-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .control-item {
        padding: 15px;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .reason-card {
        padding: 25px 15px;
    }
    
    .reason-card h3 {
        font-size: 1.1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
    }
    
    .character-image {
        width: 100px;
        height: 100px;
    }
    
    .content-text {
        font-size: 1rem;
    }
    
    .content-text .lead {
        font-size: 1.1rem;
    }
}

/* Extra Small Mobile (up to 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .game-iframe-wrapper {
        height: 250px;
    }
    
    .feature-card {
        padding: 20px 10px;
    }
    
    .reason-card {
        padding: 20px 10px;
    }
    
    .step-content h3 {
        font-size: 1rem;
    }
    
    .character-image {
        width: 80px;
        height: 80px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        margin-bottom: 20px;
    }
    
    .hero-stats {
        gap: 30px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .footer {
        display: none;
    }
    
    .game-iframe-wrapper {
        display: block !important;
        background: 
            linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
            url('images/steal-brainrot.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #ff6b6b !important;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .hero {
        background: none;
        color: #000;
    }
    
    .section-title {
        color: #000;
    }
    
    .feature-card,
    .reason-card,
    .faq-item {
        break-inside: avoid;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .character-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .game-section,
    .what-is-section,
    .guide-section {
        background: #2a2a2a;
    }
    
    .feature-card,
    .reason-card,
    .faq-item {
        background: #333;
        color: #e0e0e0;
    }
    
    .game-info {
        background: #333;
        color: #e0e0e0;
    }
    
    .control-item {
        background: #444;
        color: #e0e0e0;
    }
}
