/**
 * ==========================================================================
 * HEADER, TOPBAR & NAVIGATION MENU (DÙNG BIẾN MÀU THEME VARIABLES)
 * ==========================================================================
 */

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: auto;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s ease;
}

/* ---------- Topbar ---------- */
#pd-topbar {
    background: var(--bt-navy-dark);
    font-size: 0.775rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    pointer-events: auto;
}

#site-header.is-scrolled #pd-topbar {
    transform: translateY(-100%);
    margin-bottom: -2.2rem;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

#pd-topbar .topbar-inner {
    max-width: 85rem;
    margin: 0 auto;
    padding: 0.45rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#pd-topbar .hotlines a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fff;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    border-radius: 4px;
    padding: 2px 6px;
}

#pd-topbar .hotlines a:hover {
    color: var(--bt-yellow);
    background: rgba(255, 255, 255, 0.08);
}

#pd-topbar .hotlines a:active {
    transform: scale(0.96);
}

#pd-topbar .phone-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bt-yellow);
    box-shadow: 0 0 0 0 var(--bt-yellow-shadow);
    animation: pd-pulse 1.8s infinite;
}

@keyframes pd-pulse {
    0%   { box-shadow: 0 0 0 0 var(--bt-yellow-shadow); }
    70%  { box-shadow: 0 0 0 6px rgba(245, 166, 35, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

/* ---------- Mainbar ---------- */
#pd-mainbar {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

/* Hiệu ứng kính mờ khi cuộn trang */
#site-header.is-scrolled #pd-mainbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

#pd-mainbar .mainbar-inner {
    max-width: 85rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5.25rem;
    transition: height 0.3s ease;
}

@media (min-width: 1280px) {
    #pd-mainbar .mainbar-inner {
        padding: 0 2rem;
        height: 5.5rem;
    }
}

#site-header.is-scrolled #pd-mainbar .mainbar-inner {
    height: 4.25rem;
}

@media (min-width: 1280px) {
    #site-header.is-scrolled #pd-mainbar .mainbar-inner {
        height: 4.5rem;
    }
}

#pd-mainbar .logo-block {
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#pd-mainbar .logo-block:hover {
    transform: scale(1.02);
}

#pd-mainbar .logo-block:active {
    transform: scale(0.97);
}

#pd-mainbar .logo-block img {
    height: 3.6rem;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

@media (min-width: 1280px) {
    #pd-mainbar .logo-block img {
        height: 4.1rem;
    }
}

#site-header.is-scrolled #pd-mainbar .logo-block img {
    height: 3.1rem;
}

/* ---------- Menu điều hướng Desktop ---------- */
.nav-link {
    position: relative;
    overflow: hidden;
    color: var(--bt-navy);
    font-size: 0.8125rem; /* ~13px on 1024px+ screens */
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

@media (min-width: 1280px) {
    .nav-link {
        font-size: 0.875rem; /* ~14px on 1280px+ */
        padding: 0.5rem 0.95rem;
    }
}

@media (min-width: 1440px) {
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1.1rem;
    }
}

/* Vạch chấm sáng đa sắc gradient dưới menu khi hover/active */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 18px;
    height: 3px;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--bt-orange), #F59E0B);
    box-shadow: 0 0 8px rgba(75, 168, 46, 0.6);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
}

/* Hiệu ứng Hover: Nổi nhẹ + Đổi nền kính mờ dịu mắt */
.nav-link:hover {
    color: var(--bt-orange);
    background: linear-gradient(135deg, rgba(75, 168, 46, 0.1), rgba(75, 168, 46, 0.04));
    border-color: rgba(75, 168, 46, 0.18);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(75, 168, 46, 0.08);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

/* Hiệu ứng khi Click (Mousedown/Active): Co nhẹ đàn hồi (Spring Bounce) */
.nav-link:active {
    transform: scale(0.93) translateY(0);
    transition-duration: 0.08s;
    background: rgba(75, 168, 46, 0.15);
}

/* Trạng thái trang đang chọn (Active) */
.nav-link.is-active {
    color: var(--bt-orange);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(75, 168, 46, 0.12), rgba(75, 168, 46, 0.05));
    border-color: rgba(75, 168, 46, 0.22);
    box-shadow: 0 2px 8px rgba(75, 168, 46, 0.08);
}

.nav-link.is-active::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

/* ---------- Nút Đặt Vé Header ---------- */
.booking-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, var(--bt-orange) 0%, var(--bt-orange-hover) 100%);
    color: #ffffff !important;
    border-radius: 50px;
    padding: 0.55rem 1.2rem;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 4px 15px var(--bt-orange-shadow);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer !important;
    pointer-events: auto !important;
    text-decoration: none;
    flex-shrink: 0;
}

@media (min-width: 1280px) {
    .booking-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Luồng sáng quét định kỳ (Shimmer sweep animation) */
.booking-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 0%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 100%
    );
    transform: rotate(25deg);
    animation: pd-btn-shimmer 4.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pd-btn-shimmer {
    0%, 75% { left: -75%; }
    100%    { left: 150%; }
}

.booking-btn:hover {
    background: linear-gradient(135deg, var(--bt-orange-hover) 0%, #35801E 100%);
    transform: translateY(-2.5px) scale(1.02);
    box-shadow: 0 8px 24px var(--bt-orange-shadow);
}

.booking-btn:active {
    transform: scale(0.94) translateY(0);
    transition-duration: 0.08s;
    box-shadow: 0 2px 8px var(--bt-orange-shadow);
}

/* ---------- Hiệu ứng Sóng Nước Khi Click (Ripple Wave Effect) ---------- */
.pd-ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(75, 168, 46, 0.4) 0%, rgba(245, 158, 11, 0.25) 50%, transparent 80%);
    transform: scale(0);
    animation: pd-ripple-anim 0.55s ease-out forwards;
    pointer-events: none;
    z-index: 5;
}

.booking-btn .pd-ripple-wave {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 60%, transparent 80%);
}

@keyframes pd-ripple-anim {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* ---------- Mobile Menu & Drawer ---------- */
#mobile-toggle {
    color: var(--bt-orange);
    background: rgba(75, 168, 46, 0.1);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(75, 168, 46, 0.15);
}

#mobile-toggle:hover {
    background: rgba(75, 168, 46, 0.18);
    transform: scale(1.05);
}

#mobile-toggle:active {
    transform: scale(0.92);
}

#mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 99;
    animation: pd-menu-slide-down 0.25s ease-out;
}

@keyframes pd-menu-slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--bt-navy);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

.mobile-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--bt-orange);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.mobile-link:hover::before,
.mobile-link.is-active::before {
    transform: scaleY(1);
}

.mobile-link:hover {
    color: var(--bt-orange);
    background: rgba(75, 168, 46, 0.08);
    padding-left: 1.1rem;
    transform: translateX(2px);
}

.mobile-link:hover .ri-arrow-right-s-line {
    opacity: 1;
    transform: translateX(3px);
    color: var(--bt-orange);
}

.mobile-link:active {
    transform: scale(0.97);
    background: rgba(75, 168, 46, 0.14);
}

.mobile-link.is-active {
    color: var(--bt-orange);
    background: rgba(75, 168, 46, 0.08);
    font-weight: 700;
    padding-left: 1.1rem;
}

.mobile-link .ri-arrow-right-s-line {
    transition: all 0.2s ease;
}

/* Đệm khoảng trống body để không bị đè content dưới fixed header */
body {
    padding-top: 7.5rem;
}

@media (min-width: 1024px) {
    body {
        padding-top: 8.25rem;
    }
}
