/* ============================================
   SMART HEADER STYLES
   Transparent on hero pages, solid on others
   ============================================ */

/* Base Header */
#main-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Transparent State (Hero pages at top) */
.header-transparent {
    background-color: transparent;
    box-shadow: none;
}

.header-transparent .nav-link,
.header-transparent .submenu-trigger {
    color: white !important;
}

.header-transparent .user-menu-btn {
    color: white !important;
}

.header-transparent .btn-booking {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.header-transparent .btn-booking:hover {
    background: white;
    color: #d4af37;
    border-color: white;
}

/* Solid State (Scrolled or no-hero pages) - Liquid Glass (Optimized) */
.header-solid {
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header-solid.header-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.header-solid .nav-link,
.header-solid .submenu-trigger {
    color: #1f2937 !important;
}

.header-solid .user-menu-btn {
    color: #1f2937 !important;
}

.header-solid .btn-booking {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
    border: 2px solid #d4af37;
}

.header-solid .btn-booking:hover {
    background: #b8941f;
    border-color: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Dark Mode Support - Liquid Glass (Optimized) */
.dark .header-solid {
    background-color: rgba(17, 24, 39, 0.88);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.dark .header-solid.header-scrolled {
    background-color: rgba(17, 24, 39, 0.9);
}

.dark .header-solid .nav-link,
.dark .header-solid .submenu-trigger {
    color: #f3f4f6 !important;
}

.dark .header-solid .user-menu-btn {
    color: #f3f4f6 !important;
}

/* Submenu Styles - Liquid Glass (Optimized) */
.header-transparent .submenu {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.header-transparent .submenu-item {
    color: #1f2937;
}

.header-solid .submenu {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.dark .header-solid .submenu {
    background-color: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Button */
.header-transparent .mobile-menu-btn {
    color: white;
}

.header-solid .mobile-menu-btn {
    color: #1f2937;
}

.dark .header-solid .mobile-menu-btn {
    color: #f3f4f6;
}

/* Smooth Transitions */
#main-header,
#main-header .nav-link,
#main-header .submenu-trigger,
#main-header .user-menu-btn,
#main-header .btn-booking,
#header-logo {
    transition: all 0.3s ease-in-out;
}

/* Material Icons Color */
.header-transparent .material-symbols-outlined {
    color: white;
}

 .header-transparent .user-menu .material-symbols-outlined {
     color: #111827 !important;
 }

 .dark .header-transparent .user-menu .material-symbols-outlined {
     color: #d1d5db !important;
 }

.header-solid .material-symbols-outlined {
    color: #1f2937;
}

.dark .header-solid .material-symbols-outlined {
    color: #f3f4f6;
}

/* Badge "Mới" */
.badge-new {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

/* Hover Effects */
.header-transparent .nav-link:hover,
.header-transparent .submenu-trigger:hover {
    color: #d4af37 !important;
}

.header-solid .nav-link:hover,
.header-solid .submenu-trigger:hover {
    color: #d4af37 !important;
}


/* ============================================
   LANGUAGE SWITCHER STYLES - LIQUID GLASS
   ============================================ */

.lang-switcher-wrapper {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.lang-btn .lang-code {
    position: relative;
    z-index: 1;
}

/* Liquid glass shimmer effect */
.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.lang-btn:hover::before {
    left: 100%;
}

/* Transparent header state */
.header-transparent .lang-btn {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header-transparent .lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Solid header state */
.header-solid .lang-btn {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-solid .lang-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

/* Dark mode solid header */
.dark .header-solid .lang-btn {
    color: #f3f4f6;
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dark .header-solid .lang-btn:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}



/* Language Menu - Liquid Glass Dropdown (Optimized) */
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s ease;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dark mode menu */
.dark .lang-menu {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Language Options */
.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.lang-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.dark .lang-option {
    color: #f3f4f6;
}

.lang-option:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.05));
}

.lang-option:hover::before {
    transform: scaleY(1);
}

.lang-option.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.08));
    color: #d4af37;
    font-weight: 600;
}

.lang-option.active::before {
    transform: scaleY(1);
}

.lang-option .lang-info {
    display: flex;
    align-items: center;
}

.lang-option .material-symbols-outlined {
    color: #d4af37;
    font-size: 18px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s ease;
}

.lang-option.active .material-symbols-outlined {
    opacity: 1;
    transform: scale(1);
}

/* Divider between options */
.lang-option:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .lang-option:not(:last-child) {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Auth Button */
.auth-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-transparent .auth-btn {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-transparent .auth-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-solid .auth-btn {
    color: #1f2937;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.header-solid .auth-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #d4af37;
    color: #d4af37;
}

.dark .header-solid .auth-btn {
    color: #f3f4f6;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .header-solid .auth-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}
