/*
 * Priventhera - Responsive Styles
 * Responsive breakpoints and mobile-first design
 */

/* Breakpoints
 * --xs: 480px
 * --sm: 576px
 * --md: 768px
 * --lg: 992px
 * --xl: 1200px
 */

/* Mobile First Design - Base styles are for mobile */

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .top-banner {
        flex-direction: column;
        text-align: center;
        padding: 0.5rem;
    }

    .banner-text, .banner-promotion {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .countdown-timer {
        margin: 0.5rem 0;
    }

    .buy-now-button {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem;
    }

    .header-container {
        padding: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        padding: 0.5rem;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
    }

    .hero-section {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-button.primary {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100%;
    }

    .cta-button.secondary {
        width: 100%;
    }

    .trust-icons {
        justify-content: center;
    }

    .product-card {
        min-width: 100%;
    }

    .feature-container {
        flex-direction: column-reverse;
    }

    .feature-text {
        padding-right: 0;
        margin-top: 1.5rem;
        text-align: center;
    }

    .value-prop {
        flex-direction: column-reverse !important;
    }

    .value-prop-content {
        padding: 0 !important;
        margin-top: 1.5rem;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: var(--radius-sm);
        margin-bottom: 0.5rem;
    }

    .subscribe-button {
        border-radius: var(--radius-sm);
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-brand {
        margin-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-column {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-utility {
        margin-bottom: 1rem;
        justify-content: center;
    }

    .cookie-consent {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-button {
        margin: 1rem 0 0 0;
        width: 100%;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Small devices (tablets, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    html {
        font-size: 15px;
    }

    .top-banner {
        padding: 0.5rem;
    }

    .header-container {
        padding: 0.75rem 1rem;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-section {
        flex-direction: column;
        padding: 2.5rem 1rem;
    }

    .hero-content {
        margin-bottom: 2rem;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .trust-icons {
        justify-content: center;
    }

    .feature-container {
        flex-direction: column-reverse;
    }

    .feature-text {
        padding-right: 0;
        margin-top: 1.5rem;
        text-align: center;
    }

    .value-prop {
        flex-direction: column-reverse !important;
    }

    .value-prop-content {
        padding: 0 !important;
        margin-top: 1.5rem;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-brand {
        margin-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-column {
        flex: 1 0 50%;
        margin-bottom: 1.5rem;
        text-align: center;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .top-banner {
        padding: 0.5rem 1rem;
    }

    .header-container {
        padding: 1rem;
    }

    .nav-menu li {
        margin: 0 0.5rem;
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .feature-container {
        padding: 0 1rem;
    }

    .product-card {
        min-width: calc(50% - 1rem);
    }

    .value-prop-content {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .footer-brand {
        margin-right: 1rem;
    }

    .footer-column {
        padding: 0 0.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container, .header-container, .hero-section, .products-section,
    .feature-container, .app-ecosystem, .configure-section,
    .security-partners, .faq-section, .value-props, .footer-container {
        max-width: 960px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container, .header-container, .hero-section, .products-section,
    .feature-container, .app-ecosystem, .configure-section,
    .security-partners, .faq-section, .value-props, .footer-container {
        max-width: 1140px;
    }
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-bg);
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0.5rem 0 0.5rem 1rem;
        border: none;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* Tablet Specific Adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Specific Adjustments */
@media (min-width: 992px) {
    /* Desktop Only Features */
    .dropdown-menu {
        transform: translateY(10px);
    }

    .dropdown:hover .dropdown-menu {
        transform: translateY(0);
    }

    /* Enable desktop hover effects */
    .product-card:hover {
        transform: translateY(-5px);
    }

    .app-icon:hover {
        transform: scale(1.1);
    }

    /* Add sticky header effect */
    header {
        position: sticky;
        top: 0;
        transition: background-color 0.3s, box-shadow 0.3s;
    }

    header.scrolled {
        background-color: rgba(14, 21, 21, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
}

/* Print Styles */
@media print {
    .top-banner, .header-container, .hero-section,
    .cta-section, .newsletter-section, footer,
    .cookie-consent, .cart-sidebar {
        display: none;
    }

    body {
        background-color: #ffffff;
        color: #000000;
    }

    .product-grid {
        display: block;
    }

    .product-card {
        margin-bottom: 2rem;
        break-inside: avoid;
    }
}

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

/* Dark Mode / Light Mode Preference */
@media (prefers-color-scheme: dark) {
    body:not(.light-theme) {
        --primary-bg: #0e1515;
        --secondary-bg: #1f2239;
        --text-primary: #ffffff;
        --text-secondary: #cdcab9;
        --text-muted: #646062;
        --border-color: #32393c;
    }
}

@media (prefers-color-scheme: light) {
    body:not(.dark-theme) {
        --primary-bg: #f5f5f7;
        --secondary-bg: #ffffff;
        --text-primary: #333333;
        --text-secondary: #555555;
        --text-muted: #777777;
        --border-color: #dddddd;
    }
}

/* Accessibility Focus Styles */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.js-focus-visible :focus:not(.focus-visible) {
    outline: none;
}

.focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
