/* ============================================
   HEADER NAVIGATION STYLES
   Bedouine Heritage - UAE Desert Experiences
   ============================================ */

/* Main Header Navigation */
.navbar {
    background: var(--expedia-white);
    border-bottom: 1px solid var(--expedia-border);
    padding: 8px 0;
    min-height: 56px;
    position: relative;
    z-index: 1030;
}

.navbar .container-fluid {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo/Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 2rem;
}

.navbar-brand img {
    height: 32px;
    width: auto;
    transition: opacity 0.2s ease;
}

.navbar-brand img:hover {
    opacity: 0.8;
}

.navbar-brand img.active {
    display: block;
}

/* Navigation Toggle (Mobile) */
.navbar-toggler {
    border: 1px solid rgba(8, 48, 102, 0.1);
    border-radius: 4px;
    padding: 8px 12px;
    background: transparent;
    transition: all 0.2s ease;
}

.navbar-toggler:hover {
    background-color: #f5f5f5;
    border-color: rgba(8, 48, 102, 0.3);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(8, 48, 102, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%288, 48, 102, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Navigation Collapse */
.navbar-collapse {
    flex-grow: 1;
}

/* Navigation Links */
.navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav.me-auto {
    margin-right: auto;
}

.navbar-nav.align-items-center {
    align-items: center;
}

.nav-item {
    position: relative;
    list-style: none;
}

.navbar-nav .nav-link {
    color: var(--expedia-dark-gray);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: var(--expedia-blue);
    background-color: #f5f5f5;
}

.navbar-nav .nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(8, 48, 102, 0.1);
}

.navbar-nav .nav-link.active {
    color: var(--expedia-blue);
    font-weight: 600;
}

/* Navigation Icons */
.navbar-nav .nav-link i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.1);
}

.navbar-nav .nav-link .me-1 {
    margin-right: 0.25rem !important;
}

/* Wishlist Icon Styling */
.navbar-nav .nav-link.position-relative {
    position: relative !important;
}

.navbar-nav .nav-link .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    line-height: 1;
    padding: 0;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link .badge.rounded-pill {
    border-radius: 50% !important;
}

/* Wishlist Icon Heart Animation */
.navbar-nav .nav-link i.bi-heart {
    color: #6c757d;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover i.bi-heart {
    color: #dc3545;
    transform: scale(1.2);
}

/* Wishlist Icon - Active State (when items exist) */
.navbar-nav .nav-link.wishlist-active i.bi-heart {
    color: #dc3545 !important;
    animation: heartPulse 1.5s ease-in-out infinite alternate;
}

.navbar-nav .nav-link.wishlist-active:hover i.bi-heart {
    color: #a71e2a !important;
    transform: scale(1.3);
}

/* Heart pulse animation for active wishlist */
@keyframes heartPulse {
    0% { 
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(220, 53, 69, 0));
    }
    100% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 8px rgba(220, 53, 69, 0.4));
    }
}

/* Special Buttons in Navigation */
.sign-in-btn {
    color: var(--expedia-blue) !important;
    font-weight: 600 !important;
    border: 1px solid var(--expedia-blue);
    border-radius: 4px;
    padding: 8px 16px !important;
    background: transparent;
    transition: all 0.3s ease;
}

.sign-in-btn:hover {
    background-color: var(--expedia-blue);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(8, 48, 102, 0.2);
}

/* Language Switcher */
.nav-link[href="#language"] {
    font-weight: 600;
    color: var(--expedia-dark-gray);
}

/* Spacing Utilities */
.nav-item.ms-2 {
    margin-left: 0.5rem !important;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet (768px and below) */
@media (max-width: 991.98px) {
    .navbar .container-fluid {
        padding: 0 16px;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--expedia-border);
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start !important;
        width: 100%;
    }

    .navbar-nav.me-auto {
        margin-bottom: 1rem;
    }

    .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: 0;
    }

    .navbar-nav .nav-link:hover {
        background-color: #f8f9fa;
    }

    .sign-in-btn {
        margin-top: 0.5rem;
        text-align: center;
        justify-content: center;
    }

    .nav-item.ms-2 {
        margin-left: 0 !important;
    }
}

/* Mobile (576px and below) */
@media (max-width: 575.98px) {
    .navbar {
        padding: 6px 0;
        min-height: 50px;
    }

    .navbar .container-fluid {
        padding: 0 12px;
    }

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

    .navbar-brand img {
        height: 28px;
    }

    .navbar-toggler {
        padding: 6px 10px;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 13px;
    }

    .sign-in-btn {
        padding: 6px 12px !important;
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .navbar {
        display: none;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus States */
.nav-link:focus-visible {
    outline: 2px solid var(--expedia-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

.navbar-toggler:focus-visible {
    outline: 2px solid var(--expedia-blue);
    outline-offset: 2px;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .navbar-nav .nav-link,
    .sign-in-btn,
    .navbar-toggler {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .navbar {
        border-bottom: 2px solid var(--expedia-dark-gray);
    }

    .navbar-nav .nav-link {
        border: 1px solid transparent;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        border-color: var(--expedia-blue);
    }
}
