/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablet & Small Laptop */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        order: -1;
    }
    
    .factions-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .modes-grid {
        grid-template-columns: 1fr;
    }
    
    .turn-steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
}

/* Mobile Landscape & Tablet Portrait */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-dark);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    /* Hero */
    .hero-stats {
        gap: var(--space-md);
    }
    
    /* About */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Cards */
    .card-types {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter */
    .form-group {
        flex-direction: column;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    /* Comparison */
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    /* FAQ */
    .faq-question {
        font-size: 1rem;
        padding: var(--space-sm);
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section {
        padding: var(--space-lg) 0;
    }
    
    .floating-card {
        display: none;
    }
    
    /* Carousel */
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-slide img {
        width: 150px;
        height: 210px;
    }
    
    /* Card showcase */
    .card-showcase {
        width: 250px;
        height: 375px;
    }
    
    /* Section headers */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.8rem;
    }
    
    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    /* FAQ */
    .faq-answer p {
        font-size: 0.9rem;
    }
    
    /* Newsletter */
    .newsletter-text h2 {
        font-size: 1.8rem;
    }
}

/* Very Small Screens */
@media (max-width: 320px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-lg) var(--space-md);
    }
    
    .hero-stats {
        margin-bottom: var(--space-md);
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* High Resolution / Retina */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg {
        background-size: cover;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .carousel-track {
        scroll-behavior: auto;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (already dark, but for potential light mode toggle) */
@media (prefers-color-scheme: light) {
    /* If you want to support light mode in future */
    /* Currently site is dark themed by default */
}

/* Print Styles */
@media print {
    .navbar,
    .hero-cards,
    .scroll-indicator,
    .carousel-btn,
    .nav-toggle,
    .newsletter,
    .footer {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-md);
    }
    
    body {
        background: white;
        color: black;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
