/* ==========================================================================
   VŨ HUY CHƯƠNG - LUXURY NAVY & GOLD DESIGN SYSTEM
   Chuẩn UX hiện đại, mượt mà trên desktop & mobile
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Cinzel:wght@600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --navy-darkest: #070d1e;
  --navy-dark: #0a1128;
  --navy-header: #080f24;
  --navy-card: #0d1738;
  --navy-border: #1a274c;
  
  --gold-primary: #d4af37;
  --gold-light: #fef08a;
  --gold-hover: #e5a93b;
  --gold-bg-btn: #e5a93b;
  
  --cream-bg: #faf6ee;
  --cream-surface: #f5f0eb;
  --cream-text: #1e293b;
  --cream-border: #e2d9cc;
}

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #f1f5f9;
  background-color: var(--navy-darkest);
  overflow-x: hidden;
}

.font-heading {
  font-family: 'Montserrat', sans-serif;
}

.font-brand {
  font-family: 'Cinzel', serif;
}

/* Background Gradients */
.bg-navy-main {
  background-color: #070d1e;
}

.bg-navy-section {
  background-color: #0a1128;
}

.bg-cream-section {
  background-color: #faf6ee;
  color: #1e293b;
}

/* Button & Accent Colors */
.bg-gold-btn {
  background-color: #e5a93b;
  color: #0b132b;
}

.bg-gold-btn:hover {
  background-color: #d49826;
}

.text-gold {
  color: #d4af37;
}

.border-gold {
  border-color: #d4af37;
}

/* ==================== DROPDOWN MENU CHUẨN LUXURY NAVY & GOLD ==================== */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #0d1738;
  color: #f1f5f9;
  border-radius: 14px;
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(212, 175, 55, 0.25);
  padding: 8px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  pointer-events: none;
}

/* Mở khi hover trên desktop HOẶC khi có class .is-open (click) */
.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper.is-open .nav-dropdown-menu,
.nav-dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background-color: rgba(229, 169, 59, 0.18);
  color: #fef08a;
  transform: translateX(4px);
}

.nav-dropdown-item.active {
  background-color: #e5a93b;
  color: #070d1e;
  font-weight: 700;
}

/* ==================== MOBILE NAVIGATION DRAWER ==================== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background-color: #080f24;
  border-left: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
}

/* ==================== FLOATING CONTACT WIDGET ==================== */
.floating-contact-btn {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.floating-contact-btn:hover {
  transform: scale(1.1);
}

.floating-zalo {
  background: linear-gradient(135deg, #0068ff, #004ecc);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.floating-hotline {
  background: linear-gradient(135deg, #e5a93b, #d49826);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(0, 104, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 104, 255, 0);
  }
}

.pulse-animation {
  animation: pulse-ring 2s infinite;
}

/* ==================== TOAST & MOBILE STICKY BOTTOM BAR ==================== */
@keyframes toast-slide-down {
  0% {
    opacity: 0;
    transform: translate(-50%, -30px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 767px) {
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 990;
    background: rgba(8, 15, 36, 0.98);
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
  }

  /* Ẩn floating tròn trên mobile để chống che khuất chữ */
  .desktop-floating-contact {
    display: none !important;
  }

  /* Tạo khoảng trống ở chân trang để không bị thanh bottom bar che */
  body {
    padding-bottom: 70px;
  }
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

/* Breadcrumbs */
.breadcrumb-nav {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-nav a {
  color: #cbd5e1;
  transition: color 0.15s ease;
}

.breadcrumb-nav a:hover {
  color: #f6c867;
}

.breadcrumb-nav span {
  color: #64748b;
}

/* ==================== INFINITE MARQUEE (CHẠY TỰ ĐỘNG TỪ PHẢI SANG TRÁI) ==================== */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  margin: 0 10px;
  background: rgba(13, 23, 56, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 9999px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: all 0.2s ease;
  backdrop-blur: 4px;
}

.marquee-item:hover {
  border-color: rgba(229, 169, 59, 0.8);
  color: #fef08a;
  background: rgba(26, 39, 76, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #070d1e;
}
::-webkit-scrollbar-thumb {
  background: #1e2c56;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4af37;
}

/* ==================== CATEGORY VISUAL HUB CARDS ==================== */
.category-hub-card {
  position: relative;
  background: linear-gradient(135deg, rgba(13, 23, 56, 0.95), rgba(7, 13, 30, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 169, 59, 0.7);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.15);
}

.category-hub-card.active {
  background: linear-gradient(135deg, rgba(26, 39, 76, 0.95), rgba(13, 23, 56, 1));
  border: 2px solid #e5a93b;
  box-shadow: 0 10px 30px -5px rgba(229, 169, 59, 0.25), 0 0 20px rgba(229, 169, 59, 0.2);
}

.category-hub-card.active .hub-badge {
  background-color: #e5a93b !important;
  color: #070d1e !important;
  font-weight: 700;
}

/* ==================== LIGHTBOX MODAL ==================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

/* ==================== GOLD BUTTON GRADIENT & ADMIN UTILITIES ==================== */
.bg-gold-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%) !important;
  color: #020617 !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.bg-gold-gradient:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #fef08a 50%, #f59e0b 100%) !important;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.6) !important;
  transform: translateY(-1px);
}


