/* ============================================
   Responsive Media Queries
   ============================================ */

/* ============================================
   Breakpoints Overview:
   - Mobile: < 640px
   - Tablet: 640px - 1024px
   - Desktop: > 1024px
   ============================================ */

/* ============================================
   Large Screens (1536px+)
   ============================================ */
@media (min-width: 1536px) {
    .container {
        max-width: var(--container-2xl);
    }
}

/* ============================================
   Desktop (1024px - 1535px)
   ============================================ */
@media (max-width: 1535px) {
    html {
        font-size: 15px;
    }
}

/* ============================================
   Tablet & Small Desktop (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
    /* Typography adjustments */
    h1 {
        font-size: var(--font-size-4xl);
    }
    
    h2 {
        font-size: var(--font-size-3xl);
    }
    
    /* Spacing adjustments */
    section {
        padding: var(--space-16) 0;
    }
    
    /* Grid adjustments */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Mobile & Tablet (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 var(--space-4);
    }
    
    /* Typography */
    h1 {
        font-size: var(--font-size-3xl);
    }
    
    h2 {
        font-size: var(--font-size-2xl);
    }
    
    h3 {
        font-size: var(--font-size-xl);
    }
    
    /* Sections */
    section {
        padding: var(--space-12) 0;
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-description {
        font-size: var(--font-size-base);
    }
    
    /* Buttons */
    .btn {
        padding: var(--space-3) var(--space-5);
        font-size: var(--font-size-sm);
    }
    
    /* Grids */
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* Cards */
    .card {
        padding: var(--space-5);
    }
    
    /* Hide desktop elements */
    .desktop-only {
        display: none !important;
    }
    
    /* Show mobile elements */
    .mobile-only {
        display: block !important;
    }
}

/* ============================================
   Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 var(--space-3);
    }
    
    /* Typography */
    h1 {
        font-size: var(--font-size-2xl);
    }
    
    h2 {
        font-size: var(--font-size-xl);
    }
    
    /* Sections */
    section {
        padding: var(--space-10) 0;
    }
    
    /* Buttons */
    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--font-size-sm);
        width: 100%;
    }
    
    /* Button groups */
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    /* Spacing */
    .section-cta {
        margin-top: var(--space-8);
    }
}

/* ============================================
   Touch Device Optimizations
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn,
    .nav-link,
    .lang-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .hover-lift:hover {
        transform: none;
    }
    
    /* Simplify shadows for performance */
    .card,
    .product-card {
        box-shadow: var(--shadow-sm);
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    /* Hide non-essential elements */
    .header,
    .footer,
    .nav,
    .burger-menu,
    .language-switcher,
    .btn,
    .social-links,
    .modal {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        padding-top: 0;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* ============================================
   Landscape Orientation (Mobile)
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: var(--space-12) 0;
    }
    
    .hero-image-placeholder {
        height: 300px;
    }
    
    .page-hero {
        padding: var(--space-10) 0 var(--space-8);
    }
}

/* ============================================
   High DPI Displays
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images and graphics for retina displays */
    /* This can be used for image optimization */
}

/* ============================================
   Dark Mode Support (Experimental)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here in the future */
    /* Currently not implemented as per design requirements */
}

/* ============================================
   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;
    }
}

/* ============================================
   Display Utilities
   ============================================ */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}

/* ============================================
   Text Alignment Utilities (Responsive)
   ============================================ */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center;
    }
    
    .text-left-mobile {
        text-align: left;
    }
}

/* ============================================
   Flex Utilities (Responsive)
   ============================================ */
@media (max-width: 768px) {
    .flex-column-mobile {
        flex-direction: column;
    }
}

