/**
 * SP5Proxies Responsive Design
 * Improves mobile experience and accessibility
 */

/* Base responsive adjustments */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .proxy-type, .use-case {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .feature {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .proxy-type, .use-case, .feature {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .p_card {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    /* Improve mobile navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: #fff;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
    }
    
    .nav-menu ul li {
        margin: 10px 0;
    }
    
    .hamburger {
        display: block !important;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .faq-item h3 {
        font-size: 1rem;
    }
    
    /* Adjust pricing cards for mobile */
    .p_card {
        padding: 1rem;
    }
    
    .p_card_heading h2 {
        font-size: 1.5rem;
    }
    
    .price p {
        font-size: 1.2rem;
    }
    
    /* Improve mobile footer */
    .links-section .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    body {
        color: #000;
        background: #fff;
    }
    
    a, button {
        color: #0000EE;
    }
    
    a:visited {
        color: #551A8B;
    }
    
    .p_card, .proxy-type, .use-case, .feature {
        border: 2px solid #000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body.dark-mode-support {
        background-color: #121212;
        color: #f5f5f5;
    }
    
    .dark-mode-support .p_card,
    .dark-mode-support .proxy-type,
    .dark-mode-support .use-case,
    .dark-mode-support .feature {
        background-color: #1e1e1e;
        color: #f5f5f5;
    }
    
    .dark-mode-support a {
        color: #bb86fc;
    }
    
    .dark-mode-support .header {
        background-color: #1e1e1e;
    }
}

/* Print styles */
@media print {
    .header, .footer, .nav-menu, .p_card_btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .p_card, .proxy-type, .use-case, .feature {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #ddd;
    }
}
