/* ==========================================================================
   Boobar Barbershop - Modern Dark Luxury Stylesheet (SCSS / CSS)
   Enhanced for Peak UI/UX, Visual Comfort, and Frictionless Usability
   ========================================================================== */

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

:root {
  --bg-main: #07090e;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --gold-border: rgba(245, 158, 11, 0.22);

  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-gold: 0 10px 30px -5px rgba(245, 158, 11, 0.35);
  --shadow-card: 0 14px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.35);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Ambient Ambient Background Glow */
.bg-ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-ambient-glow::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 15%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(90px);
}

.bg-ambient-glow::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: 10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(100px);
}

/* Brand Fonts */
.font-brand {
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
}

/* Glassmorphism Card System */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
}

.glass-panel {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gold Gradient Text & Elements */
.text-gold-gradient {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

/* Modern Buttons */
.btn-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: #090d16;
  font-weight: 800;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.75rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.45);
  filter: brightness(1.08);
}

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

.btn-outline-gold {
  background: rgba(245, 158, 11, 0.06);
  color: var(--gold-light);
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline-gold:hover {
  background: rgba(245, 158, 11, 0.16);
  color: #ffffff;
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

/* Service & Barber Selection Cards */
.selection-card {
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-lg);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.selection-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-3px);
  background: rgba(30, 41, 59, 0.75);
}

.selection-card.active {
  border-color: var(--gold-primary);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.14) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.28);
}

.selection-card.active::before {
  content: '✓';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  background: var(--gold-primary);
  color: #090d16;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Time Slot Badges */
.slot-pill {
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.7);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
}

.slot-pill:hover:not(.booked):not(.expired) {
  border-color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

.slot-pill.active {
  border-color: var(--gold-light);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: #090d16 !important;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
  transform: scale(1.02);
}

.slot-pill.active .slot-text-time {
  color: #090d16 !important;
  font-weight: 900;
}

.slot-pill.active .slot-text-badge {
  background: #090d16;
  color: var(--gold-light);
}

.slot-pill.active .slot-text-arrival {
  color: #090d16 !important;
  font-weight: 800;
}

.slot-pill.booked {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(30, 41, 59, 0.35);
  border-color: rgba(255, 255, 255, 0.05);
}

.slot-pill.expired {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(255, 255, 255, 0.03);
}

/* Time Slot Filter Pills */
.slot-filter-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slot-filter-btn:hover {
  color: #ffffff;
  border-color: var(--gold-primary);
}

.slot-filter-btn.active {
  background: var(--gold-primary);
  color: #090d16;
  border-color: var(--gold-light);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Digital Boarding Pass Ticket */
.digital-ticket {
  background: linear-gradient(160deg, #111827 0%, #0b0f19 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.25);
}

.digital-ticket::before,
.digital-ticket::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--bg-main);
  border-radius: 50%;
  top: 70%;
  z-index: 10;
}

.digital-ticket::before {
  left: -15px;
  border-right: 2px solid var(--gold-primary);
}

.digital-ticket::after {
  right: -15px;
  border-left: 2px solid var(--gold-primary);
}

.ticket-perforation {
  position: absolute;
  top: 70%;
  left: 22px;
  right: 22px;
  border-top: 2px dashed rgba(245, 158, 11, 0.35);
  margin-top: 14px;
}

/* Pulsing Badge & Live Indicator */
.live-pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

.live-pulse-amber {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-ring-amber 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-ring-amber {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Queue Number Highlight Box */
.queue-number-box {
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.16) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 20px;
  box-shadow: inset 0 0 25px rgba(245, 158, 11, 0.22), 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Mobile Nav Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  z-index: 50;
  display: flex;
  justify-content: space-around;
  padding: 0.65rem 0;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.2s;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--gold-light);
  transform: translateY(-1px);
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 3px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
