/* St. Lucie Draft House — Custom Styles */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  --color-primary: #7895E9;
  --color-primary-light: #9DB3F0;
  --color-primary-dark: #4A6ABF;
  --color-dark: #1A1D21;
  --color-dark-surface: #242830;
  --color-dark-elevated: #2E333A;
  --color-light: #FAF6F0;
  --color-light-muted: #EDE8E0;
  --color-accent: #D4443B;
  --color-accent-hover: #B83830;
}

/* ============================================
   Base Styles
   ============================================ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: #1A1D21;
  background-color: #FAF6F0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Keyframe Animations
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================
   Animation Utilities
   ============================================ */
.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.animate-bounce-gentle {
  animation: bounce 2s ease-in-out infinite;
}

/* Stagger delays for sequential reveals */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ============================================
   Scroll-triggered animation (hidden until visible)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Navigation
   ============================================ */
.nav-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================================
   Placeholder Images (gradient backgrounds)
   ============================================ */
.placeholder-food {
  background: linear-gradient(135deg, #2E333A 0%, #1A1D21 100%);
}

.placeholder-appetizers {
  background: linear-gradient(135deg, #7895E9 0%, #4A6ABF 100%);
}

.placeholder-burgers {
  background: linear-gradient(135deg, #D4443B 0%, #4A6ABF 100%);
}

.placeholder-wings {
  background: linear-gradient(135deg, #9DB3F0 0%, #7895E9 100%);
}

.placeholder-dinners {
  background: linear-gradient(135deg, #242830 0%, #7895E9 100%);
}

/* ============================================
   Reviews Carousel
   ============================================ */
.reviews-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1rem;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ============================================
   Mobile Bottom Nav
   ============================================ */
.mobile-bottom-nav {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ============================================
   Hero down arrow
   ============================================ */
.hero-arrow {
  animation: bounce 2s ease-in-out infinite;
}

/* ============================================
   Card hover effects
   ============================================ */
.card-hover {
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.card-hover:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

/* ============================================
   Star rating display
   ============================================ */
.star-filled {
  color: #F59E0B;
}

.star-empty {
  color: #D1D5DB;
}

/* ============================================
   Happy Hour Countdown Timer
   ============================================ */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(120, 149, 233, 0.3); }
  50% { box-shadow: 0 0 30px rgba(120, 149, 233, 0.6), 0 0 60px rgba(120, 149, 233, 0.2); }
}

.happy-hour-active {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.happy-hour-shimmer {
  background: linear-gradient(90deg, #7895E9 0%, #9DB3F0 25%, #7895E9 50%, #9DB3F0 75%, #7895E9 100%);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-digit {
  font-variant-numeric: tabular-nums;
}

/* ============================================
   Cart & Ordering System
   ============================================ */
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.cart-bounce {
  animation: cartBounce 0.3s ease-out;
}

/* Cart drawer slide animation */
.cart-drawer-enter {
  animation: slideInRight 0.3s ease-out;
}

/* Floating cart button pulse */
@keyframes cartPulse {
  0%, 100% { box-shadow: 0 10px 25px rgba(212, 68, 59, 0.3); }
  50% { box-shadow: 0 10px 40px rgba(212, 68, 59, 0.5); }
}

.cart-float-pulse {
  animation: cartPulse 2s ease-in-out infinite;
}

/* ============================================
   Admin Panel Styles
   ============================================ */

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #374151;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toggle-switch.active {
  background: #7895E9;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.toggle-switch.active::after {
  transform: translateX(20px);
}

/* Admin status badges */
.status-badge-new {
  background-color: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}

.status-badge-confirmed {
  background-color: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

.status-badge-ready {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22C55E;
}

.status-badge-completed {
  background-color: rgba(107, 114, 128, 0.1);
  color: #6B7280;
}

.status-badge-cancelled {
  background-color: rgba(156, 163, 175, 0.1);
  color: #9CA3AF;
}

/* Drag-and-drop upload zone */
.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: #7895E9;
  background-color: rgba(120, 149, 233, 0.05);
}

/* Admin order notification sound indicator */
@keyframes notificationPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

.notification-pulse {
  animation: notificationPulse 1s ease-out;
}

/* Toast notification */
@keyframes toastSlideIn {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-100%); opacity: 0; }
}

.toast-enter {
  animation: toastSlideIn 0.3s ease-out forwards;
}

.toast-leave {
  animation: toastSlideOut 0.2s ease-in forwards;
}

/* Upload progress bar */
.upload-progress-bar {
  background: linear-gradient(90deg, #7895E9, #9DB3F0);
  transition: width 0.3s ease;
}

/* Admin panel scrollbar (dark theme) */
.admin-scroll::-webkit-scrollbar {
  width: 6px;
}

.admin-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.admin-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.admin-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Live Activity Feed (Admin)
   ============================================ */
@keyframes activitySlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 80px;
  }
}

.activity-new {
  animation: activitySlideIn 0.35s ease-out forwards;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.live-dot {
  animation: livePulse 2s ease-in-out infinite;
}

/* Hero image preview in admin */
.hero-preview {
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.hero-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}
