/**
 * Mobile Menu - Warm Caribbean Refined Design
 * Brand-forward styling with micro-interactions
 *
 * Extracted from header.php inline styles.
 * This CSS is not needed for initial render — the offcanvas
 * menu only appears on user interaction (hamburger tap).
 */

/* Header - Brand gradient with personality */
#mobileMenu .offcanvas-header {
    background: linear-gradient(135deg, var(--color-primary, #324fbe) 0%, #2a42a1 100%);
    color: white;
    border-bottom: none;
    padding: 1rem 1.25rem;
}
#mobileMenu .offcanvas-title {
    font-family: var(--font-display, 'DM Sans', system-ui);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}
#mobileMenu .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
#mobileMenu .btn-close:hover,
#mobileMenu .btn-close:focus {
    opacity: 1;
    transform: rotate(90deg);
}

/* Section Labels - Orange accent bar */
.section-label {
    position: relative;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #64748b;
    padding: 1.25rem 1rem 0.625rem 1.25rem;
    background: linear-gradient(90deg, rgba(255,107,53,0.05) 0%, transparent 60%);
    border-top: 1px solid rgba(0,0,0,0.04);
}
.section-label:first-of-type {
    border-top: none;
}
.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #FF6B35 0%, #f48120 100%);
    border-radius: 0 3px 3px 0;
}

/* Nav Links - Base styles with smooth transitions */
.offcanvas-body .nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem 0.875rem 1.25rem;
    color: #1e293b;
    font-weight: 500;
    font-size: 0.9375rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.offcanvas-body .nav-link:active {
    transform: scale(0.985);
    background: rgba(50, 79, 190, 0.06);
}
.offcanvas-body .nav-link:hover {
    background: linear-gradient(90deg, rgba(50,79,190,0.06) 0%, transparent 80%);
    color: var(--color-primary, #324fbe);
}
.offcanvas-body .nav-link svg {
    margin-right: 0.875rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}
.offcanvas-body .nav-link:hover svg {
    transform: scale(1.1);
}

/* Icon Colors - Contextual meaning */
.nav-link--tours svg { color: var(--color-primary, #324fbe); }
.nav-link--boats svg { color: #0891b2; }
.nav-link--groups svg { color: #FF6B35; }
.nav-link--whatsapp svg { color: #25D366 !important; }
.nav-link--phone svg { color: var(--color-primary, #324fbe); }
.nav-link--email svg { color: #6b7280; }
.nav-link--help svg { color: #8b5cf6; }
.nav-link--cart svg { color: #6b7280; }
.nav-link--cart-active svg { color: #FF6B35 !important; }

/* WhatsApp Link - Make it pop */
.nav-link--whatsapp {
    background: linear-gradient(90deg, rgba(37,211,102,0.08) 0%, transparent 70%);
    border-left: 3px solid #25D366;
    margin-left: -3px;
    padding-left: calc(1.25rem + 3px);
}
.nav-link--whatsapp:hover {
    background: linear-gradient(90deg, rgba(37,211,102,0.15) 0%, transparent 80%) !important;
}

/* Cart Badge - Pulse animation when items exist */
.nav-link .badge {
    font-size: 0.6875rem;
    padding: 0.3em 0.55em;
    animation: cartPulse 2.5s ease-in-out infinite;
}
@keyframes cartPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220,38,38,0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(220,38,38,0); }
}

/* Staggered Reveal Animation */
#mobileMenu.show .nav-link,
#mobileMenu.show .section-label {
    animation: menuSlideIn 0.35s ease forwards;
    opacity: 0;
}
#mobileMenu.show .section-label:nth-of-type(1) { animation-delay: 0.02s; }
#mobileMenu.show .nav-link:nth-of-type(1) { animation-delay: 0.04s; }
#mobileMenu.show .nav-link:nth-of-type(2) { animation-delay: 0.07s; }
#mobileMenu.show .nav-link:nth-of-type(3) { animation-delay: 0.10s; }
#mobileMenu.show .section-label:nth-of-type(2) { animation-delay: 0.13s; }
#mobileMenu.show .nav-link:nth-of-type(4) { animation-delay: 0.16s; }
#mobileMenu.show .nav-link:nth-of-type(5) { animation-delay: 0.19s; }
#mobileMenu.show .nav-link:nth-of-type(6) { animation-delay: 0.22s; }
#mobileMenu.show .nav-link:nth-of-type(7) { animation-delay: 0.25s; }
#mobileMenu.show .section-label:nth-of-type(3) { animation-delay: 0.28s; }
#mobileMenu.show .nav-link:nth-of-type(8) { animation-delay: 0.31s; }

@keyframes menuSlideIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    #mobileMenu.show .nav-link,
    #mobileMenu.show .section-label {
        animation: none;
        opacity: 1;
    }
    .nav-link .badge { animation: none; }
    #mobileMenu .btn-close { transition: none; }
}

/* Footer - Clean and simple */
#mobileMenu .offcanvas-footer {
    background: #f8fafc;
    border-top: 1px solid rgba(0,0,0,0.06);
}
#mobileMenu .offcanvas-footer p {
    color: #64748b;
    font-size: 0.6875rem;
}

/* Sticky mobile menu footer */
.offcanvas-footer {
    position: sticky;
    bottom: 0;
    margin-top: auto;
}
