/**
 * Ares VPN - Responsive Styles
 * Mobile-first responsive design
 */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 var(--space-lg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .protocols-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .trust-badges {
        gap: var(--space-lg);
    }
}

/* Mobile Landscape (576px - 768px) */
@media screen and (max-width: 768px) {
    /* Navigation Mobile */
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: var(--space-2xl) var(--space-xl);
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        z-index: 9999;
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav-link {
        display: block;
        padding: var(--space-md);
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--gray-100);
        margin-left: var(--space-md);
        margin-top: 0;
    }
    
    .navbar-cta {
        width: 100%;
        margin-top: var(--space-lg);
    }
    
    .navbar-cta .btn {
        width: 100%;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    /* Protocols */
    .protocols-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Use Cases */
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Trust Badges */
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Portrait (320px - 576px) */
@media screen and (max-width: 576px) {
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    /* Container */
    .container {
        padding: 0 var(--space-md);
    }
    
    /* Hero */
    .hero-section {
        padding: var(--space-2xl) 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.4;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .feature-badge {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    /* Buttons */
    .btn {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    /* Sections */
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: var(--space-lg);
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Features */
    .feature-card {
        padding: var(--space-lg);
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* Protocols */
    .protocols-grid {
        grid-template-columns: 1fr;
    }
    
    .protocol-card {
        padding: var(--space-lg);
    }
    
    .protocol-icon {
        font-size: 2rem;
    }
    
    /* Pricing */
    .pricing-card-main {
        padding: var(--space-lg);
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .currency {
        font-size: 1.25rem;
    }
    
    /* Use Cases */
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .use-case-icon {
        font-size: 2.5rem;
    }
    
    /* Trust */
    .trust-badges {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    /* CTA Section */
    .cta-section {
        padding: var(--space-2xl) 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer-top {
        padding: var(--space-2xl) 0;
    }
    
    .footer-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Small Mobile (< 320px) */
@media screen and (max-width: 320px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-features {
        gap: var(--space-sm);
    }
    
    .feature-badge {
        width: 100%;
    }
}

/* Hover Effects on Touch Devices */
@media (hover: none) {
    .feature-card:hover,
    .protocol-card:hover,
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .navbar,
    .back-to-top,
    .hero-cta,
    .cta-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #0f172a;
        --gray-100: #1e293b;
        --gray-200: #334155;
        --gray-300: #475569;
        --gray-400: #64748b;
        --gray-500: #94a3b8;
        --gray-600: #cbd5e1;
        --gray-700: #e2e8f0;
        --gray-800: #f1f5f9;
        --gray-900: #f8fafc;
        --dark: #ffffff;
    }
    
    .site-header {
        background-color: #1e293b;
        box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.5);
    }
    
    .feature-card,
    .protocol-card,
    .pricing-card-main {
        background-color: #1e293b;
    }
    
    .dropdown-menu {
        background-color: #1e293b;
    }
    
    .navbar-menu {
        background-color: #1e293b;
    }
    
    .site-footer {
        background-color: #0f172a;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #0040ff;
        --primary-dark: #0030cc;
    }
    
    .btn {
        border-width: 3px;
    }
    
    a {
        text-decoration: underline;
    }
}
