/* ==========================================================================
   🎨 PARLOUE LUXE - LUXURY BEAUTY-TECH DESIGN SYSTEM
   ========================================================================== */

/* ── 📚 IMPORT GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── 📐 CUSTOM THEME VARIABLES ── */
:root {
  /* Premium Dark Theme Core (Default) */
  --bg-obsidian: #080510;
  --bg-velvet: #110A20;
  --bg-glass: rgba(22, 14, 38, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.18);
  
  /* Rose Gold & Luxury Accents */
  --rose-gold-start: #E6C594;
  --rose-gold-mid: #D49B9F;
  --rose-gold-end: #B77A82;
  --plum-accent: #6C2B72;
  --plum-glow: rgba(108, 43, 114, 0.3);
  
  /* Text colors */
  --text-primary: #FAF7F5;
  --text-secondary: #C0B7CD;
  --text-muted: #847996;
  
  /* Light Theme Overrides */
  --light-bg-silk: #FAF7F5;
  --light-bg-cashmere: #F4EFEB;
  --light-bg-glass: rgba(245, 239, 235, 0.75);
  --light-border-glass: rgba(22, 14, 38, 0.08);
  --light-border-glass-hover: rgba(22, 14, 38, 0.16);
  --light-text-primary: #1F152E;
  --light-text-secondary: #56476E;
  --light-text-muted: #9587AA;
}

/* Apply premium font smoothing */
body {
  font-family: 'Outfit', 'Inter', 'Poppins', sans-serif;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  overflow-x: hidden;
  scrollbar-gutter: stable;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ── 🌟 ELEGANT TYPOGRAPHY CLASSES ── */
.font-editorial {
  font-family: 'Playfair Display', serif;
}
.font-sans-serif {
  font-family: 'Inter', sans-serif;
}
.font-poppins {
  font-family: 'Poppins', sans-serif;
}

/* ── ✨ PREMIUM SHADOWS & DECORATIONS ── */
.shadow-luxury {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}
.shadow-gold-glow {
  box-shadow: 0 0 25px rgba(212, 155, 159, 0.15);
}

/* ── 💎 GLASSMORPHISM PRESETS ── */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel-hover:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

/* Light Mode Overrides */
.light-mode {
  --bg-obsidian: var(--light-bg-silk);
  --bg-velvet: var(--light-bg-cashmere);
  --bg-glass: var(--light-bg-glass);
  --border-glass: var(--light-border-glass);
  --border-glass-hover: var(--light-border-glass-hover);
  --text-primary: var(--light-text-primary);
  --text-secondary: var(--light-text-secondary);
  --text-muted: var(--light-text-muted);
}
.light-mode .glass-panel {
  box-shadow: 0 8px 32px 0 rgba(31, 21, 46, 0.06);
}

/* ── ☄️ ROSE GOLD GRADIENT CLASS ── */
.rose-gold-gradient {
  background: linear-gradient(135deg, var(--rose-gold-start) 0%, var(--rose-gold-mid) 50%, var(--rose-gold-end) 100%);
}
.rose-gold-text {
  background: linear-gradient(135deg, var(--rose-gold-start) 0%, var(--rose-gold-mid) 50%, var(--rose-gold-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rose-gold-border {
  border-image: linear-gradient(135deg, var(--rose-gold-start), var(--rose-gold-mid), var(--rose-gold-end)) 1;
}

/* ── ☄️ ANGLE GRID BACKGROUND FOR LUXURY PORTAL ── */
.luxury-grid-bg {
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}
.light-mode .luxury-grid-bg {
  background-image: 
    linear-gradient(to right, rgba(31, 21, 46, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 21, 46, 0.015) 1px, transparent 1px);
}

/* ── 🚀 GLOWING ORBS ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}
.light-mode .glow-orb {
  opacity: 0.08;
}

/* ── 📥 CUSTOM BEAUTIFUL SCROLLBAR ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--rose-gold-start) 0%, var(--rose-gold-end) 100%);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--rose-gold-mid);
}

/* ── ⏳ SKELETON SHIMMER EFFECT ── */
.shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.8s infinite;
}
.light-mode .shimmer {
  background: linear-gradient(90deg, rgba(31, 21, 46, 0.03) 25%, rgba(31, 21, 46, 0.08) 50%, rgba(31, 21, 46, 0.03) 75%);
}
@keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── ⚡ CUSTOM SLIDER STYLING (BEFORE/AFTER) ── */
.slider-container {
  position: relative;
  overflow: hidden;
  user-select: none;
}
.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--rose-gold-start), var(--rose-gold-end));
  cursor: ew-resize;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.slider-handle::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--bg-velvet);
  border: 2px solid var(--rose-gold-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-gold-start);
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ── 📅 SMART APPOINTMENT CALENDAR ELEMENTS ── */
.calendar-grid {
  display: grid;
  grid-template-columns: 80px repeat(4, minmax(180px, 1fr)); /* Roster of stylists */
  position: relative;
}
.calendar-time-cell {
  height: 70px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
}
.calendar-slot-cell {
  height: 70px;
  border-bottom: 1px solid var(--border-glass);
  border-right: 1px solid var(--border-glass);
  position: relative;
  transition: background-color 0.2s ease;
}
.calendar-slot-cell:hover {
  background-color: rgba(255, 255, 255, 0.02);
}
.light-mode .calendar-slot-cell:hover {
  background-color: rgba(31, 21, 46, 0.02);
}

/* Floating Appointment Cards */
.booking-card {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  border-left: 3px solid;
  cursor: grab;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.booking-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.booking-card:active {
  cursor: grabbing;
}

/* ── 🧾 THERMAL RECEIPT LAYOUT ── */
.thermal-receipt {
  font-family: 'Courier New', Courier, monospace;
  background: white;
  color: black !important;
  width: 100%;
  max-width: 320px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px dashed #ccc;
}
.thermal-receipt * {
  color: black !important;
}

/* ── ⚡ MICRO INTERACTION TRANSITIONS ── */
.transition-luxury {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Ripple effect mock */
.luxury-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.luxury-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.luxury-btn:active::after {
  width: 300px;
  height: 300px;
}
