/* ===============================================
   LÚMINA GUITARS - Responsive Styles
   =============================================== */

/* ============================================= 
   TABLET LANDSCAPE (1024px)
   ============================================= */

@media (max-width: 1024px) {
    .logo {
        left: 40px;
    }

    .navigation {
        left: 40px;
        bottom: 40px;
    }

    .page-indicator {
        right: 40px;
        bottom: 40px;
    }

    .arrow-left {
        left: 20px;
    }

    .arrow-right {
        right: 20px;
    }
}

/* ============================================= 
   TABLET PORTRAIT (768px)
   ============================================= */

@media (max-width: 768px) {
    /* Typography adjustments */
    .logo {
        top: 30px;
        left: 30px;
        font-size: 20px;
    }

    .logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 120px;
    }

    /* Hide desktop navigation */
    .navigation {
        display: none;
    }

    /* Show mobile menu button */
    .menu-toggle {
        display: block;
    }

    /* Hide page indicator on mobile */
    .page-indicator {
        display: none;
    }

    /* Hide arrow navigation on tablets */
    .arrow {
        display: none;
    }

    /* Mobile menu adjustments */
    .mobile-menu-links a {
        font-size: 18px;
        letter-spacing: 1.5px;
    }
}

/* ============================================= 
   MOBILE LANDSCAPE (640px)
   ============================================= */

@media (max-width: 640px) and (orientation: landscape) {
    .mobile-menu-links {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 500px;
        gap: 20px;
    }

    .mobile-menu-links a {
        flex: 0 0 45%;
        font-size: 16px;
    }
}

/* ============================================= 
   MOBILE PORTRAIT (480px)
   ============================================= */

@media (max-width: 480px) {
    /* Logo adjustments */
    .logo {
        top: 25px;
        left: 25px;
        font-size: 18px;
    }

    /* Menu toggle adjustments */
    .menu-toggle {
        top: 30px;
        right: 20px;
        padding: 8px;
    }

    .menu-toggle span {
        width: 22px;
        height: 1.5px;
        margin: 4px 0;
    }

    /* Mobile menu adjustments */
    .mobile-menu-links {
        gap: 25px;
    }

    .mobile-menu-links a {
        font-size: 16px;
        letter-spacing: 1px;
    }

    /* Loader adjustments */
    .loader-text {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .loader-bar {
        width: 100px;
    }
}

/* ============================================= 
   SMALL MOBILE (375px)
   ============================================= */

@media (max-width: 375px) {
    .logo {
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .mobile-menu-links a {
        font-size: 14px;
    }
}

/* ============================================= 
   ACCESSIBILITY & 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;
    }

    .hero-image img {
        transition: none;
    }

    .nav-link {
        animation: none;
    }

    .loader {
        display: none;
    }
}

/* ============================================= 
   HIGH CONTRAST MODE
   ============================================= */

@media (prefers-contrast: high) {
    .logo,
    .nav-link,
    .mobile-menu-links a {
        font-weight: 500;
    }

    .nav-link::before {
        height: 2px;
    }

    .menu-toggle span {
        height: 3px;
    }
}

/* ============================================= 
   DARK MODE SUPPORT
   ============================================= */

@media (prefers-color-scheme: dark) {
    /* Already dark by default, but we can add specific adjustments here if needed */
}

/* ============================================= 
   PRINT STYLES
   ============================================= */

@media print {
    /* Hide unnecessary elements for print */
    .menu-toggle,
    .mobile-menu,
    .navigation,
    .arrow,
    .page-indicator,
    .loader {
        display: none !important;
    }

    /* Adjust hero image for print */
    .hero-image {
        position: static;
        height: auto;
    }

    .hero-image img {
        max-height: 50vh;
        object-fit: contain;
    }

    /* Make logo black for print */
    .logo {
        color: black;
        position: static;
        margin: 20px;
    }
}

/* ============================================= 
   HOVER STATES (Non-touch devices only)
   ============================================= */

@media (hover: hover) {
    /* Apply hover effects only on devices that support hover */
    .nav-link:hover {
        padding-left: 10px;
        opacity: 0.7;
    }

    .nav-link:hover::before {
        width: 15px;
    }

    .logo:hover {
        opacity: 0.7;
    }

    .arrow:hover {
        opacity: 1;
    }

    .mobile-menu-links a:hover {
        opacity: 0.7;
        transform: translateX(10px);
    }
}

/* ============================================= 
   TOUCH DEVICE OPTIMIZATIONS
   ============================================= */

@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets for touch devices */
    .nav-link {
        padding: 10px;
        margin: -10px;
    }

    .menu-toggle {
        padding: 12px;
    }

    .arrow {
        padding: 20px;
    }

    .mobile-menu-links a {
        padding: 10px;
    }
}