/*
==================================
VOROTIME - RESPONSIVE STYLES
Mobile-First Responsive Design
==================================
*/

/* ===================================
   MOBILE OPTIMIZATIONS (< 640px)
   =================================== */

@media (max-width: 639px) {
    
    /* Hero Section - Mobile */
    #hero {
        min-height: 100vh;
        padding: 100px 1rem 60px 1rem;
        position: relative;
        overflow: hidden;
    }
    
    /* Hero Background - Mobile */
    .hero-bg {
        display: block !important;
    }
    
    /* Particles Container - Mobile */
    .hero-particles {
        display: block !important;
        visibility: visible !important;
        opacity: 0.8 !important;
    }
    
    /* Nav Bar - Mobile (ensure it doesn't cover content) */
    nav {
        position: fixed !important;
        top: 0 !important;
        z-index: 50 !important;
    }
    
    /* Ensure content is visible below navbar */
    body {
        padding-top: 0 !important;
    }
    
    /* Hero Gradient Orbs - Mobile (smaller for better performance) */
    .hero-bg .opacity-30 > div {
        width: 300px !important;
        height: 300px !important;
    }
    
    .hero-bg .opacity-30 > div:first-child {
        width: 350px !important;
        height: 350px !important;
    }
    
    .hero-bg .opacity-30 > div:nth-child(2) {
        width: 300px !important;
        height: 300px !important;
    }
    
    .hero-bg .opacity-30 > div:nth-child(3) {
        width: 250px !important;
        height: 250px !important;
    }
    
    .hero-title {
        font-size: 2.5rem !important; /* 40px */
        line-height: 1.2;
        margin-bottom: 1rem;
        opacity: 1 !important;
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important; /* 18px */
        margin-bottom: 0.75rem;
        opacity: 1 !important;
        animation: fadeInUp 1s ease-out forwards;
        animation-delay: 0.2s;
    }
    
    .hero-description {
        font-size: 0.875rem !important; /* 14px */
        padding: 0 1rem;
        opacity: 1 !important;
        animation: fadeInUp 1s ease-out forwards;
        animation-delay: 0.3s;
    }
    
    .hero-badge {
        font-size: 0.75rem !important;
        padding: 0.5rem 1rem;
        opacity: 1 !important;
        animation: fadeInUp 0.6s ease-out forwards;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Hero Buttons */
    .hero-buttons {
        opacity: 1 !important;
        animation: fadeInUp 1s ease-out forwards;
        animation-delay: 0.4s;
    }
    
    .hero-buttons a {
        width: 100%;
        padding: 1rem 1.5rem !important;
        font-size: 0.875rem !important;
        justify-content: center;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 1rem !important;
        opacity: 1 !important;
        animation: fadeInUp 1s ease-out forwards;
        animation-delay: 0.5s;
    }
    
    /* Navigation Mobile */
    nav {
        padding: 0.75rem 1rem !important;
    }
    
    nav .logo {
        font-size: 1.5rem !important;
    }
    
    /* Promo Bar */
    .promo-bar {
        padding: 0.75rem 1rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Collection Section */
    #collection .section-title {
        font-size: 2rem !important; /* 32px */
    }
    
    #collection .section-description {
        font-size: 0.875rem !important;
        padding: 0 1rem;
    }
    
    /* Product Cards */
    .watch-card-premium {
        margin: 0 0.5rem;
    }
    
    .watch-card-premium .brand-badge {
        font-size: 0.625rem !important;
        padding: 0.25rem 0.5rem;
    }
    
    .watch-card-premium h3 {
        font-size: 1rem !important;
    }
    
    .watch-card-premium .price {
        font-size: 1.25rem !important;
    }
    
    /* Filter Tabs */
    .filter-tabs {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    
    .filter-btn {
        font-size: 0.75rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Features Section */
    #features .section-title {
        font-size: 2rem !important;
    }
    
    .feature-card-premium h3 {
        font-size: 1.25rem !important;
    }
    
    .feature-card-premium p {
        font-size: 0.875rem !important;
    }
    
    /* About Section */
    #about .section-title {
        font-size: 2rem !important;
    }
    
    .stats-item h4 {
        font-size: 1.5rem !important;
    }
    
    /* Testimonials */
    #testimonials .section-title {
        font-size: 2rem !important;
    }
    
    .testimonial-card {
        padding: 1.5rem !important;
    }
    
    .testimonial-card p {
        font-size: 0.875rem !important;
    }
    
    /* Subscribe Section */
    #subscribe .section-title {
        font-size: 1.75rem !important;
    }
    
    #subscribe form {
        flex-direction: column !important;
    }
    
    #subscribe form button {
        width: 100%;
        padding: 1rem !important;
    }
    
    /* Footer */
    footer {
        padding: 3rem 1rem 1.5rem !important;
    }
    
    footer h3 {
        font-size: 1.5rem !important;
    }
    
    footer h4 {
        font-size: 1rem !important;
    }
    
    /* Container Padding */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Section Spacing */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* ===================================
   TABLET OPTIMIZATIONS (640px - 1023px)
   =================================== */

@media (min-width: 640px) and (max-width: 1023px) {
    
    /* Hero Section - Tablet */
    .hero-title {
        font-size: 3.5rem !important; /* 56px */
    }
    
    .hero-subtitle {
        font-size: 1.5rem !important; /* 24px */
    }
    
    /* Collection Grid - 2 Columns */
    #products-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===================================
   DESKTOP LARGE (> 1440px)
   =================================== */

@media (min-width: 1440px) {
    
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 7rem !important; /* 112px */
    }
    
    /* Collection Grid - 4 Columns */
    #products-container {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ===================================
   LANDSCAPE MODE (Mobile)
   =================================== */

@media (max-height: 500px) and (orientation: landscape) {
    
    #hero {
        min-height: 100vh;
        padding: 5rem 1rem 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.75rem !important;
        margin-bottom: 1rem;
    }
    
    .hero-trust {
        margin-top: 1rem !important;
        gap: 0.5rem !important;
    }
    
    .hero-buttons a {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
}

/* ===================================
   TOUCH DEVICE OPTIMIZATIONS
   =================================== */

@media (hover: none) and (pointer: coarse) {
    
    /* Larger touch targets */
    button,
    a,
    input,
    .watch-card-premium {
        min-height: 44px; /* Apple's recommended touch target */
    }
    
    /* Remove hover effects on touch devices */
    .watch-card-premium:hover {
        transform: none !important;
    }
    
    /* Disable custom cursor on touch */
    .custom-cursor {
        display: none !important;
    }
    
    /* Better tap highlights */
    * {
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    
    /* Hide unnecessary elements */
    nav,
    .hero-bg,
    .hero-buttons,
    #subscribe,
    footer {
        display: none !important;
    }
    
    /* Optimize for printing */
    body {
        background: white;
        color: black;
    }
    
    .watch-card-premium {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ===================================
   ACCESSIBILITY - HIGH CONTRAST
   =================================== */

@media (prefers-contrast: high) {
    
    .text-gray-400,
    .text-gray-500 {
        color: #000 !important;
    }
    
    .border-gold {
        border-width: 3px !important;
    }
    
    button,
    .cta-button-modern {
        font-weight: 900 !important;
    }
}

/* ===================================
   ACCESSIBILITY - REDUCED MOTION
   =================================== */

@media (prefers-reduced-motion: reduce) {
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-float,
    .animate-pulse,
    .animate-spin-slow,
    .animate-spin-slow-reverse {
        animation: none !important;
    }
    
    .particle {
        display: none !important;
    }
}

/* ===================================
   DARK MODE SUPPORT (Future)
   =================================== */

@media (prefers-color-scheme: light) {
    /* Already dark by default, no changes needed */
}

/* ===================================
   FIXES FOR SPECIFIC DEVICES
   =================================== */

/* iPhone X/11/12 Notch Support */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
    
    nav {
        padding-top: max(16px, env(safe-area-inset-top));
    }
    
    #hero {
        padding-top: max(100px, calc(100px + env(safe-area-inset-top)));
    }
}

/* iOS Safari Bottom Bar Fix */
@supports (-webkit-touch-callout: none) {
    #hero {
        min-height: -webkit-fill-available;
    }
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */

/* GPU Acceleration for Smooth Animations */
.watch-card-premium,
.hero-watch,
.cta-button-modern {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Disable Heavy Animations on Low-End Devices */
@media (max-width: 639px) and (max-resolution: 1dppx) {
    .particle {
        animation: none !important;
        opacity: 0.3 !important;
    }
    
    .animate-float,
    .animate-pulse {
        animation: none !important;
    }
    
    /* Keep essential animations only */
    .hero-title,
    .hero-subtitle,
    .hero-buttons {
        animation: none !important;
        transition: opacity 0.3s ease !important;
    }
}

/* ===================================
   RTL SUPPORT ENHANCEMENTS
   =================================== */

[dir="rtl"] .hero-buttons svg {
    transform: scaleX(-1);
}

[dir="rtl"] .filter-btn {
    text-align: right;
}

[dir="rtl"] .notification {
    right: auto;
    left: 20px;
}

/* ===================================
   CUSTOM SCROLLBAR (Desktop)
   =================================== */

@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 10px;
    }
    
    ::-webkit-scrollbar-track {
        background: #1a1a1a;
    }
    
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #d4af37, #b8941f);
        border-radius: 5px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #d4af37;
    }
}

/* ===================================
   LOADING STATE & SKELETON SCREENS
   =================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===================================
   UTILITY CLASSES - RESPONSIVE
   =================================== */

/* Hide on mobile */
.hide-mobile {
    @media (max-width: 639px) {
        display: none !important;
    }
}

/* Show only on mobile */
.show-mobile {
    display: none !important;
    @media (max-width: 639px) {
        display: block !important;
    }
}

/* Responsive Text Alignment */
.text-center-mobile {
    @media (max-width: 639px) {
        text-align: center !important;
    }
}

