/* TRIDE PRO - Responsive Styles */

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Tablet Landscape (1024px - 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.75rem;
    }
    
    .platform-grid,
    .features-grid {
        gap: var(--space-lg);
    }
    
    .pricing-cards {
        gap: var(--space-lg);
    }
}

/* Tablet Portrait (768px - 1023px) */
@media (max-width: 1023px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }
    
    .hero-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcase-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .showcase-visual {
        order: -1;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        padding: var(--space-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        gap: var(--space-md);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .platform-grid,
    .features-grid,
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .platform-card,
    .feature-card,
    .pricing-card {
        padding: var(--space-xl);
    }
    
    .pricing-card.featured {
        transform: translateY(0);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .section-badge {
        font-size: 0.75rem;
    }
    
    .badge {
        font-size: 0.875rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .platform-icon,
    .feature-icon,
    .device-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .pricing-toggle {
        width: 100%;
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .toggle-btn {
        width: 100%;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .device-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.625rem;
    }
    
    .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: var(--space-md) var(--space-xl);
    }
    
    .device-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-actions,
    .pricing-toggle,
    .cta-actions,
    .social-links,
    .footer-links,
    .btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .section {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    .highlight {
        color: #000;
        background: none;
    }
}

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

/* Dark mode adjustments (if needed) */
@media (prefers-color-scheme: dark) {
    /* Already dark themed, but ensure consistency */
    body {
        background: #0f172a;
        color: #f8fafc;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #0000ff;
        --secondary: #008000;
        --accent: #ffa500;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid #000;
    }
}

/* Orientation specific */
@media (orientation: portrait) {
    .hero-container {
        min-height: calc(100vh - 80px);
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: auto;
        padding: 100px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .footer-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .platform-card:hover,
    .feature-card:hover,
    .pricing-card:hover {
        transform: none;
    }
    
    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Performance optimizations for low-end devices */
@media (max-width: 767px) and (prefers-reduced-data: reduce) {
    .gradient-circle,
    .particles-container,
    .device-mockup::before,
    .workout-animation {
        display: none;
    }
    
    .hero-background {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
}