/**
 * template-header.css - FIXED VERSION WITH DIRECT COLORS
 * Using direct color values instead of CSS variables to ensure changes apply
 */

/* =========================================
 * Premium Top Bar - GOLD COLORS APPLIED
 * ========================================= */
.premium-top-bar {
    background: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 6px 0 !important; /* FIXED: Better padding */
    font-size: 0.75rem !important; /* FIXED: Larger, more readable font */
    font-weight: 500;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1.2rem; /* Better spacing */
}

.contact-item {
    color: #f8b400 !important; /* FIXED: Direct gold color instead of CSS variable */
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.75rem !important; /* FIXED: Larger, more readable font */
    font-weight: 600 !important; /* Slightly bolder for visibility */
    letter-spacing: 0.3px;
}

.contact-item:hover {
    color: #FFA500 !important; /* Lighter gold on hover */
    transform: translateY(-1px);
}

.top-utilities {
    display: flex;
    align-items: center;
}

.language-select {
    background: transparent !important;
    border: 1px solid rgba(248, 180, 0, 0.4) !important; /* Gold border */
    color: #f8b400 !important; /* FIXED: Direct gold color */
    font-size: 0.75rem !important; /* FIXED: Larger font to match contact items */
    padding: 4px 10px !important; /* Better padding */
    border-radius: 15px !important;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.language-select:hover,
.language-select:focus {
    border-color: #f8b400 !important;
    box-shadow: 0 0 0 2px rgba(248, 180, 0, 0.2) !important;
    color: #FFA500 !important;
}

.language-select option {
    background: #1a1a1a !important;
    color: #f8b400 !important;
}

/* =========================================
 * Premium Navbar - Consistent Styling
 * ========================================= */
.premium-navbar {
    background: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.premium-navbar.scrolled {
    background: rgba(18, 18, 18, 0.98) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Elite Brand Logo */
.elite-brand {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.elite-brand:hover {
    transform: scale(1.02);
}

.brand-logo {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

/* Elite Mobile Toggle */
.elite-toggler {
    border: none;
    padding: 8px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
}

.toggler-line {
    width: 20px;
    height: 2px;
    background: #ffffff !important;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.elite-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(248, 180, 0, 0.3);
}

.elite-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.elite-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
}

.elite-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================================
 * Elite Navigation - FIXED COLORS
 * ========================================= */
.elite-nav {
    align-items: center;
    gap: 1rem;
}

.elite-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #cccccc !important;
    text-decoration: none;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.elite-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(248, 180, 0, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.elite-link:hover::before {
    left: 100%;
}

.elite-link:hover {
    color: #f8b400 !important;
    background: rgba(248, 180, 0, 0.05);
    transform: translateY(-1px);
}

/* =========================================
 * Tours Dropdown with Sub-menus
 * ========================================= */
.tours-dropdown {
    position: relative;
}

.tours-dropdown .dropdown-menu {
    background: #1a1a1a !important;
    border: none;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    margin-top: 8px;
    min-width: 220px;
}

.tours-dropdown-item {
    position: relative;
}

.tours-dropdown-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff !important;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tours-dropdown-link:hover {
    background: rgba(248, 180, 0, 0.08) !important;
    color: #f8b400 !important;
}

.tours-dropdown-link .submenu-arrow {
    font-size: 0.7rem;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* Packages Sub-menu */
.packages-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background: #262626 !important;
    border: none;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.tours-dropdown-item:hover .packages-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Simplified package links */
.packages-submenu .simple-package-link {
    font-size: 0.85rem !important;
    color: #ffffff !important;
    padding: 0.6rem 1rem !important;
    transition: all 0.3s ease !important;
    display: block !important;
    white-space: nowrap;
    text-decoration: none !important;
    border-radius: 4px;
    margin: 0 0.5rem;
}

.packages-submenu .simple-package-link:hover {
    background: rgba(248, 180, 0, 0.08) !important;
    color: #f8b400 !important;
    transform: translateX(4px);
}

/* Improved scrollbar for submenu */
.packages-submenu::-webkit-scrollbar {
    width: 6px;
}

.packages-submenu::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.packages-submenu::-webkit-scrollbar-thumb {
    background: #f8b400;
    border-radius: 3px;
}

.packages-submenu::-webkit-scrollbar-thumb:hover {
    background: #FFA500;
}

/* =========================================
 * Elite Standard Dropdowns
 * ========================================= */
.elite-dropdown {
    background: #1a1a1a !important;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 8px;
    min-width: 220px;
}

.elite-dropdown-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: #ffffff !important;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.2px;
}

.elite-dropdown-link:hover {
    background: rgba(248, 180, 0, 0.08) !important;
    color: #f8b400 !important;
    transform: translateX(4px);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================
 * Elite CTA Button
 * ========================================= */
.elite-cta {
    background: linear-gradient(135deg, #2193b0, #6dd5ed) !important;
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 24px !important;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    margin-left: 1rem;
}

.elite-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f8b400, #FFA500) !important;
    color: #121212 !important;
}

/* =========================================
 * Desktop Hover Effects
 * ========================================= */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    /* Submenu hover for desktop */
    .tours-dropdown-item:hover > .packages-submenu {
        display: block;
    }
}

/* =========================================
 * Mobile Navigation Adjustments
 * ========================================= */
@media (max-width: 991.98px) {
    .premium-top-bar {
        font-size: 0.7rem !important; /* Larger on mobile for readability */
        padding: 5px 0 !important;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.3rem;
    }

    .contact-item {
        font-size: 0.7rem !important; /* Larger on mobile */
    }

    .language-select {
        font-size: 0.7rem !important; /* Larger on mobile */
        padding: 3px 8px !important;
        border-radius: 12px !important;
    }

    /* Mobile submenu styling */
    .packages-submenu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: #222222 !important;
        margin-top: 0.5rem;
        margin-left: 1rem;
        border-left: 2px solid #f8b400;
        max-height: none !important;
        overflow-y: visible !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        width: calc(100% - 1rem) !important;
        min-width: auto !important;
    }
    
    .packages-submenu .simple-package-link {
        padding: 0.8rem 1rem !important;
        font-size: 0.9rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .tours-dropdown-link .submenu-arrow {
        transform: rotate(90deg);
    }

    .elite-nav .nav-item {
        width: 100%;
        margin: 0;
    }

    .elite-link {
        border-radius: 0;
        padding: 12px 0 !important;
    }

    .elite-cta {
        margin: 1rem 0 0 0;
        text-align: center;
        display: block;
        width: 100%;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 767.98px) {
    .brand-logo {
        height: 40px;
    }

    .premium-navbar {
        padding: 8px 0;
    }
}

/* =========================================
 * Light Theme Adjustments
 * ========================================= */
body.light-theme .premium-top-bar {
    background: rgba(248, 249, 250, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .premium-navbar {
    background: rgba(248, 249, 250, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .premium-navbar.scrolled {
    background: rgba(248, 249, 250, 0.98) !important;
}

body.light-theme .contact-item {
    color: #B8860B !important; /* Darker gold for light theme */
}

body.light-theme .contact-item:hover {
    color: #f8b400 !important;
}

body.light-theme .language-select {
    color: #B8860B !important;
    border-color: rgba(184, 134, 11, 0.4) !important;
}

body.light-theme .language-select:hover,
body.light-theme .language-select:focus {
    color: #f8b400 !important;
    border-color: #f8b400 !important;
}

body.light-theme .language-select option {
    background: #f8f9fa !important;
    color: #B8860B !important;
}

body.light-theme .elite-link {
    color: #212529 !important;
}

body.light-theme .elite-link:hover {
    color: #2193b0 !important;
}

body.light-theme .elite-dropdown,
body.light-theme .tours-dropdown .dropdown-menu {
    background: #ffffff !important;
}

body.light-theme .packages-submenu {
    background: #e9ecef !important;
}

body.light-theme .tours-dropdown-link,
body.light-theme .elite-dropdown-link {
    color: #212529 !important;
}

body.light-theme .packages-submenu .simple-package-link {
    color: #212529 !important;
}

body.light-theme .toggler-line {
    background: #212529 !important;
}

/* =========================================
 * Scroll Behavior
 * ========================================= */
.premium-navbar.navbar-scrolled {
    background: rgba(18, 18, 18, 0.98) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.premium-navbar.navbar-scrolled .brand-logo {
    height: 40px;
}

body.light-theme .premium-navbar.navbar-scrolled {
    background: rgba(248, 249, 250, 0.98) !important;
}

/* =========================================
 * Loading States & Accessibility
 * ========================================= */
.contact-item:empty::after {
    content: "Loading...";
    opacity: 0.6;
    font-style: italic;
}

.elite-link:focus,
.elite-dropdown-link:focus,
.elite-cta:focus,
.tours-dropdown-link:focus {
    outline: 2px solid #f8b400;
    outline-offset: 2px;
}

/* =========================================
 * Animation Enhancements
 * ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}