/* ==========================================
   🍷 Belong Bar & Bistro - Custom Styles & Responsive Rules
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Prompt:wght@300;400;500;600;700;800&family=Space+Mono:wght@700&display=swap');

:root {
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --neon-gold: #fbbf24;
  --neon-pink: #ec4899;
  --neon-purple: #a855f7;
  --dark-bg: #090a0f;
  --dark-card: #12151e;
  --dark-border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Prompt', 'Plus Jakarta Sans', sans-serif;
  background-color: var(--dark-bg);
  color: #f3f4f6;
  overflow-x: hidden;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); /* Space for mobile floating nav */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #090a0f;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Hide scrollbar for horizontal category filter on mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(18, 21, 30, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dark-border);
}

.glass-nav {
  background: rgba(9, 10, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
}

.glass-card {
  background: rgba(24, 28, 40, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(30, 36, 52, 0.85);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6), 0 0 20px 0 rgba(245, 158, 11, 0.12);
}

/* Glow Effects */
.glow-gold {
  box-shadow: 0 0 25px -5px rgba(245, 158, 11, 0.4);
}
.glow-pink {
  box-shadow: 0 0 25px -5px rgba(236, 72, 153, 0.4);
}
.text-glow-gold {
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

/* Hero Gradient Overlay */
.hero-gradient {
  background: linear-gradient(180deg, rgba(9, 10, 15, 0.25) 0%, rgba(9, 10, 15, 0.88) 70%, #090a0f 100%);
}

.ambient-blob {
  position: absolute;
  filter: blur(100px);
  border-radius: 9999px;
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
}

/* Custom Interactive Floor Map Styling */
.floor-table-spot {
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (min-width: 640px) {
  .floor-table-spot {
    min-height: 52px;
  }
}

.floor-table-spot:hover {
  transform: scale(1.04);
  border-color: #f59e0b;
}

.floor-table-spot.selected {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #000 !important;
  border: 2px solid #fff !important;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.95), inset 0 0 8px rgba(255, 255, 255, 0.5) !important;
  transform: scale(1.04);
}

.floor-table-spot.selected * {
  color: #000 !important;
  font-weight: 800 !important;
}

/* Occupied (Booked) Table Spot */
.floor-table-spot.occupied {
  background: rgba(24, 24, 27, 0.7) !important;
  border: 1px dashed rgba(239, 68, 68, 0.5) !important;
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
}
.floor-table-spot.occupied * {
  color: #71717a !important;
}
.floor-table-spot.occupied .occ-badge {
  display: block !important;
  color: #ef4444 !important;
  font-weight: 700 !important;
  font-size: 8px !important;
}

/* Multi-Table Selection Chips */
.table-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.6);
  border-radius: 9999px;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s ease;
  animation: fadeInScale 0.2s ease-out;
}

@media (min-width: 640px) {
  .table-badge-chip {
    padding: 5px 12px;
    font-size: 12px;
    gap: 6px;
  }
}

.table-badge-chip:hover {
  background: rgba(245, 158, 11, 0.35);
  border-color: #f59e0b;
}

.table-badge-chip .remove-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fbbf24;
  font-size: 9px;
  transition: background 0.15s;
}

.table-badge-chip .remove-btn:hover {
  background: #ef4444;
  color: #fff;
}

/* Direct Touch Table Buttons */
.touch-table-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid rgba(63, 63, 70, 0.85);
  border-radius: 12px;
  color: #e4e4e7;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 48px;
}

@media (min-width: 640px) {
  .touch-table-btn {
    padding: 8px 6px;
    min-height: 52px;
  }
}

.touch-table-btn:hover {
  background: rgba(39, 39, 42, 1);
  border-color: #f59e0b;
  transform: translateY(-2px);
}

.touch-table-btn.active {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #000 !important;
  border: 2px solid #fff !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.6);
  transform: scale(1.04);
  font-weight: 800;
}

.touch-table-btn.active * {
  color: #000 !important;
}

.touch-table-btn.occupied {
  background: rgba(24, 24, 27, 0.6) !important;
  border: 1px dashed rgba(239, 68, 68, 0.4) !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
}
.touch-table-btn.occupied * {
  color: #71717a !important;
}

.touch-table-btn .check-mark {
  display: none;
}

.touch-table-btn.active .check-mark {
  display: inline-block;
}

/* Wizard Step Transition */
.step-pane {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.step-pane.hidden {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}
.step-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.06); }
}

.animate-pulse-glow {
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Custom Form Styles */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(100%) saturate(500%) hue-rotate(350deg);
  cursor: pointer;
}

/* Mobile Bottom Sticky Navigation with Safe Area */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(10, 12, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: max(6px, env(safe-area-inset-bottom, 6px));
}

/* Mobile Print / Receipt Specific Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #printableReceipt, #printableReceipt * {
    visibility: visible;
  }
  #printableReceipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white !important;
    color: black !important;
  }
}
