/* ==========================================================================
   Quán Cà Phê & Cocktail Đêm: "Em Không Phải Khóc"
   Styles & Romantic Night Date Atmosphere (100% Vietnamese Font Support)
   Ultra-Polished UI/UX Edition
   ========================================================================== */

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

:root {
  --bg-deep: #08090e;
  --bg-surface: #0e1017;
  --bg-card: rgba(18, 20, 30, 0.78);
  --bg-card-hover: rgba(28, 31, 46, 0.88);
  --border-subtle: rgba(212, 163, 115, 0.16);
  --border-highlight: rgba(245, 158, 11, 0.45);
  --border-active: rgba(251, 191, 36, 0.8);
  --gold-warm: #d4a373;
  --gold-light: #faedcd;
  --amber-glow: #f59e0b;
  --amber-light: #fef3c7;
  --rose-mood: #e11d48;
  --rose-light: #fda4af;
  --text-primary: #f8f9fa;
  --text-secondary: #c7cbd4;
  --text-muted: #8b92a2;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll progress bar at top of page */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #e11d48, #fbbf24);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.font-serif, [class*="font-serif"] {
  font-family: 'Lora', Georgia, 'Times New Roman', serif !important;
}

.font-cursive, .font-hand {
  font-family: 'Dancing Script', cursive !important;
}

/* Ambient Atmosphere & Floating Glows */
.ambient-glow-1 {
  position: fixed;
  top: -10%;
  left: 15%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.12) 0%, rgba(8, 9, 14, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.ambient-glow-2 {
  position: fixed;
  bottom: 5%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, rgba(8, 9, 14, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
}

/* Glassmorphism Cards */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 14px 35px -10px rgba(245, 158, 11, 0.15);
}

.glass-card-interactive {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card-interactive:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.15);
}

/* Candle flame glow simulation */
.candle-glow {
  position: relative;
  display: inline-block;
}

.candle-glow::after {
  content: '';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 10px;
  height: 10px;
  background: #ffb703;
  border-radius: 50%;
  box-shadow: 0 0 14px 4px rgba(255, 183, 3, 0.8);
  animation: flicker 2s infinite ease-in-out;
}

@keyframes flicker {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  25% { opacity: 0.7; transform: scale(0.9) translateY(-1px); }
  50% { opacity: 1; transform: scale(1.15) translateY(1px); }
  75% { opacity: 0.8; transform: scale(0.95); }
}

/* Neon subtle title */
.neon-glow {
  text-shadow: 0 0 18px rgba(245, 158, 11, 0.45), 0 0 35px rgba(225, 29, 72, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #090a0f;
}
::-webkit-scrollbar-thumb {
  background: #25293a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--amber-glow);
}

/* Food & Drink image overlay */
.menu-img-wrap {
  position: relative;
  overflow: hidden;
}

.menu-img-wrap img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.menu-card:hover .menu-img-wrap img {
  transform: scale(1.08);
}

/* Love note aesthetic */
.love-note-card {
  background: linear-gradient(135deg, rgba(28, 25, 34, 0.95) 0%, rgba(18, 20, 30, 0.95) 100%);
  border-left: 3px solid var(--amber-glow);
  transition: all 0.3s ease;
}

.love-note-card:hover {
  transform: translateY(-3px);
  border-color: #fbbf24;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.1);
}

/* Floating Like Heart Animation */
@keyframes flyHeart {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-25px) scale(1.4) rotate(-15deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-50px) scale(0.8) rotate(15deg);
  }
}

.floating-heart {
  position: absolute;
  pointer-events: none;
  animation: flyHeart 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  color: #fb7185;
  font-size: 1.25rem;
  z-index: 50;
}

/* Subtle Rain texture overlay */
.rain-subtle {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* ==========================================================================
   Interactive Button Effects & UI Elements
   ========================================================================== */
.btn-compact {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem;
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
  vertical-align: middle;
}

.btn-compact svg, .btn-compact i {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  margin: 0;
}

.btn-compact span {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

/* Nút Đặt Bàn Viền Vàng Nổi Bật */
.btn-primary-action {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(225, 29, 72, 0.15) 100%) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.55) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18) !important;
}

.btn-primary-action:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28) 0%, rgba(225, 29, 72, 0.28) 100%) !important;
  color: #fef08a !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
  transform: translateY(-2px);
}

.btn-primary-action:active {
  transform: translateY(0) scale(0.96);
}

/* Nút Solid Vàng (Nổi Bật Nhất Cho Action Chính) */
.btn-gold-solid {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border: 1px solid #fbbf24 !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4) !important;
}

.btn-gold-solid:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.6) !important;
  transform: translateY(-2px);
}

.btn-gold-solid:active {
  transform: translateY(0) scale(0.96);
}

/* Nút Thứ Cấp */
.btn-secondary-action {
  background: rgba(22, 25, 36, 0.85);
  color: #e5e7eb;
  border: 1px solid rgba(212, 163, 115, 0.25);
  backdrop-filter: blur(12px);
}

.btn-secondary-action:hover {
  background: rgba(33, 37, 54, 0.95);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.5);
}

.btn-secondary-action:active {
  transform: translateY(0.5px) scale(0.96);
}

/* Shimmer Light Reflection Sweep on Hover */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
}

.btn-shimmer:hover::before {
  left: 140%;
  transition: all 0.75s ease-in-out;
}

/* Nav Link Hover Pill Effect (ScrollSpy Friendly) */
.nav-link-pill {
  position: relative;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.775rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #a8b0c0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-pill::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #e11d48);
  border-radius: 9999px;
  transform: translateX(-50%);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

.nav-link-pill:hover, .nav-link-pill.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px -2px rgba(245, 158, 11, 0.25);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.nav-link-pill:hover::after, .nav-link-pill.active::after {
  width: 70%;
  opacity: 1;
}

/* Menu Filter Category Buttons */
.menu-filter-btn {
  font-size: 0.775rem !important;
  padding: 0.45rem 0.95rem !important;
  border-radius: 9999px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.menu-filter-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px -2px rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.6) !important;
  color: #fef08a !important;
}

.menu-filter-btn.active {
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.5) !important;
}

/* Interactive Table Selection Radio Cards */
.table-space-card {
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(212, 163, 115, 0.2);
  border-radius: 1rem;
  padding: 0.9rem;
  background: rgba(18, 20, 29, 0.6);
  transition: all 0.25s ease;
}

.table-space-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(26, 30, 44, 0.8);
  transform: translateY(-2px);
}

.table-space-card.selected {
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.table-space-card.selected .check-indicator {
  opacity: 1;
  transform: scale(1);
}

/* Floating Action Tray (Khay Món Hẹn Hò) */
#floating-cart-btn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 45;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  #floating-cart-btn {
    bottom: 2rem;
    right: 2rem;
  }
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 5.5rem;
  left: 1.25rem;
  z-index: 40;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  #back-to-top {
    bottom: 2rem;
    left: 2rem;
  }
}

/* Mobile Sticky Bottom Bar (UX Essential for Mobile Date Booking) */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(12, 14, 20, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.mobile-bottom-bar.hidden-bar {
  transform: translateY(100%);
}

/* Pulse animation */
@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.85; }
}

.animate-pulse-subtle {
  animation: pulse-subtle 3s infinite ease-in-out;
}

/* Form inputs focus polish */
input:focus, select:focus, textarea:focus {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2) !important;
}

/* Badge counter badge */
.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* Ticket Boarding Pass Styled Reservation Pass */
.booking-ticket {
  background: linear-gradient(135deg, #131622 0%, #0d0f17 100%);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  position: relative;
}

.booking-ticket::before, .booking-ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  background-color: #08090e;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.booking-ticket::before {
  left: -12px;
  border-right: 1px dashed rgba(245, 158, 11, 0.5);
}

.booking-ticket::after {
  right: -12px;
  border-left: 1px dashed rgba(245, 158, 11, 0.5);
}
