/* ========================================
   ZOUESCX Capital - Responsive Styles
   zouescx.com
   ======================================== */

/* ==================== Large Desktop ==================== */
@media (min-width: 1536px) {
    .container {
        max-width: var(--container-2xl);
    }
}

/* ==================== Desktop ==================== */
@media (max-width: 1280px) {
    .hero-grid {
        gap: var(--spacing-2xl);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr repeat(2, 1fr);
        gap: var(--spacing-2xl);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

/* ==================== Tablet ==================== */
@media (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
    }
    
    .hero-desc {
        margin: 0 auto var(--spacing-2xl);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .market-row {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .market-row .market-volume,
    .market-row .market-action {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== Mobile Large ==================== */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 3rem;
        --spacing-4xl: 4rem;
    }
    
    .section {
        padding: var(--spacing-3xl) 0;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero {
        min-height: auto;
        padding: 7rem 0 3rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .hero-stat {
        padding: var(--spacing-md);
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: var(--spacing-xl);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .market-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .market-row.header {
        display: none;
    }
    
    .market-name {
        grid-column: 1 / -1;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .page-banner {
        padding: 8rem 0 3rem;
    }
    
    .page-banner-title {
        font-size: 2rem;
    }
}

/* ==================== Mobile Small ==================== */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .chart-price {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .table-wrapper {
        margin: 0 calc(var(--spacing-md) * -1);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

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

/* ==================== Print Styles ==================== */
@media print {
    .header,
    .footer,
    .back-to-top,
    .nav-mobile,
    .nav-mobile-overlay {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .page-banner {
        padding: 2rem 0;
        background: none;
    }
    
    .card {
        border: 1px solid #ddd;
        background: none;
    }
}
