/* luxury-custom.css - Master Design System for Stanley Simon Official Platform */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #FBF9F5;
  --bg-surface: #FFFFFF;
  --bg-secondary: #F3EFEA;
  --text-dark: #0B1325;
  --text-muted: #576579;
  --gold-primary: #D4AF37;
  --gold-dark: #B8860B;
  --gold-light: #F7EFC8;
  --gold-subtle: rgba(212, 175, 55, 0.14);
  --navy-deep: #080E1E;
  --border-gold: rgba(212, 175, 55, 0.28);
  --card-shadow: 0 20px 40px -15px rgba(11, 19, 37, 0.08);
  --card-shadow-hover: 0 30px 60px -15px rgba(212, 175, 55, 0.2);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-primary);
}

h1, h2, h3, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-sans-display {
  font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f1ede5;
}
::-webkit-scrollbar-thumb {
  background: #c5a059;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b8860b;
}

/* Scrollbar Suppression & Utilities */
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

@media (max-width: 1023px) {
  #luxury-notification-pulse,
  #luxury-notification-pulse * {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }
  #luxury-notification-pulse *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}

/* Bulletproof text clamp fallbacks */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Luxury Gold Text Gradient */
.text-gold-gradient {
  background: linear-gradient(135deg, #b8860b 0%, #D4AF37 40%, #f3e5ab 70%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #D4AF37 0%, #E6CA65 50%, #B8860B 100%);
}

.gold-border-glow {
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

/* Luxury Navigation System */
.lux-nav-item {
  position: relative;
  font-size: 0.96875rem;
  font-weight: 600;
  color: #000000;
  padding: 0.5rem 0.55rem;
  letter-spacing: -0.01em;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1280px) {
  .lux-nav-item {
    font-size: 1rem; /* 16px - slightly more bigger, highly crisp and readable */
    padding: 0.5rem 0.55rem;
  }
}

@media (min-width: 1536px) {
  .lux-nav-item {
    font-size: 1.0625rem; /* 17px - expansive luxury styling */
    padding: 0.5rem 0.75rem;
  }
}

.lux-nav-item:hover {
  color: #b45309;
}

.lux-nav-item.active {
  color: #92400e;
  font-weight: 700;
}

.lux-nav-item.active::after,
.lux-nav-item:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.55rem;
  right: 0.55rem;
  height: 2.5px;
  background: linear-gradient(90deg, #D4AF37, #B8860B);
  border-radius: 9999px;
  box-shadow: 0 1px 4px rgba(212, 175, 55, 0.4);
}

@media (min-width: 1280px) {
  .lux-nav-item.active::after,
  .lux-nav-item:hover::after {
    left: 0.55rem;
    right: 0.55rem;
  }
}

@media (min-width: 1536px) {
  .lux-nav-item.active::after,
  .lux-nav-item:hover::after {
    left: 0.75rem;
    right: 0.75rem;
  }
}

.luxury-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 2px 8px rgba(11, 19, 37, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.luxury-cart-btn:hover {
  border-color: #D4AF37;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.brand-logo-nav {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.03));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.brand-logo-nav:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.15));
}

.brand-logo-footer {
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.25));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.brand-logo-footer:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.4));
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: var(--card-shadow);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(212, 175, 55, 0.5);
}

.glass-card-dark {
  background: rgba(11, 19, 37, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* Section Background Cinematic Overlays */
.hero-overlay-dark {
  background: linear-gradient(180deg, rgba(8, 14, 30, 0.85) 0%, rgba(8, 14, 30, 0.72) 50%, rgba(8, 14, 30, 0.92) 100%);
}

.hero-overlay-light {
  background: linear-gradient(135deg, rgba(251, 249, 245, 0.94) 0%, rgba(243, 239, 234, 0.88) 100%);
}

.section-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Dedicated responsive positioning for hero arena crowd background */
.hero-speaker-bg {
  background-size: cover !important;
  background-repeat: no-repeat;
  position: relative;
  background-position: center 30% !important;
}

@media (min-width: 640px) {
  .hero-speaker-bg {
    background-size: cover !important;
    background-position: center 35% !important;
  }
}

@media (min-width: 1024px) {
  .hero-speaker-bg {
    background-size: cover !important;
    background-position: center 38% !important;
  }
}

/* Interactive Elements */
.luxury-btn-primary {
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  color: #080E1E;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.luxury-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 30px -5px rgba(212, 175, 55, 0.6);
  background: linear-gradient(135deg, #f0cf65 0%, #c49216 100%);
}

.luxury-btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid #D4AF37;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.luxury-btn-outline:hover {
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-2px);
  border-color: #B8860B;
}

.luxury-btn-dark {
  background: #080E1E;
  color: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-weight: 600;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.luxury-btn-dark:hover {
  background: #111e3b;
  border-color: #D4AF37;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(11, 19, 37, 0.3);
}

/* Book 3D Mockup Styling */
.book-cover-card {
  perspective: 1000px;
}
.book-cover-inner {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
  box-shadow: -15px 20px 30px -10px rgba(0, 0, 0, 0.25), 0 0 10px rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  overflow: hidden;
}
.book-cover-card:hover .book-cover-inner {
  transform: rotateY(-8deg) scale(1.03);
}

/* Timeline Components */
.timeline-stem {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.8) 50%, rgba(212, 175, 55, 0.2) 100%);
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline-stem {
    left: 28px;
  }
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #D4AF37;
  border: 4px solid #FFFFFF;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

/* 60-Day Calendar Admin Grid */
.calendar-grid-cell {
  min-height: 110px;
  border: 1px solid #e7dfd5;
  transition: all 0.2s ease;
  background: #ffffff;
  position: relative;
  cursor: pointer;
}

.calendar-grid-cell:hover {
  background: #faf7f2;
  border-color: #D4AF37;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.calendar-tag-red {
  background-color: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}

.calendar-tag-green {
  background-color: #ECFDF5;
  color: #047857;
  border: 1px solid #6EE7B7;
}

.calendar-tag-gold {
  background: linear-gradient(135deg, #FEF9C3 0%, #FDE047 100%);
  color: #854D0E;
  border: 1px solid #EAB308;
  font-weight: 700;
}

/* Revealing Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide Drawer */
.cart-drawer-backdrop {
  background: rgba(8, 14, 30, 0.6);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

.cart-drawer {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Audio Player Animation */
.audio-bar {
  width: 3px;
  background: #D4AF37;
  animation: audioPulse 1.2s infinite ease-in-out alternate;
}
@keyframes audioPulse {
  0% { height: 4px; }
  100% { height: 24px; }
}

/* Toast styling */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast-msg {
  background: #080E1E;
  color: #FFFFFF;
  border-left: 4px solid #D4AF37;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInToast 0.3s ease forwards;
}
@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Luxury Cover Upload Dropzone & 3D Mockup Enhancement */
.lux-upload-dropzone {
  border: 2px dashed rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, rgba(251, 249, 245, 0.8), rgba(245, 239, 228, 0.5));
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 14px;
}
.lux-upload-dropzone:hover,
.lux-upload-dropzone.dragover {
  border-color: #B8860B;
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.22);
  transform: translateY(-2px);
}
.book-spine-effect {
  position: relative;
  overflow: hidden;
  box-shadow: -12px 18px 25px -8px rgba(0, 0, 0, 0.32), 0 0 12px rgba(212, 175, 55, 0.25);
  border-radius: 6px;
}
.book-spine-effect::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 14px;
  background: linear-gradient(to right, rgba(0,0,0,0.38) 0%, rgba(255,255,255,0.2) 35%, rgba(0,0,0,0.14) 70%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

/* Luxury Interactive Notification Pulse */
#luxury-notification-pulse {
  will-change: transform, opacity;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.lux-step-pane {
  min-height: auto;
}

#lux-notification-card {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.75), 0 0 20px rgba(245, 158, 11, 0.22);
}

@media (max-width: 640px) {
  #luxury-notification-pulse {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}


