/* Wings & Burgers Hub - Custom Modern Warm Palette */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --brand-orange: #ff5722;
  --brand-amber: #f59e0b;
  --bg-main: #18181b;     /* Warm Zinc/Stone en lugar de negro puro */
  --bg-card: #27272a;     /* Superficie elevada con textura */
  --bg-elevated: #323238; /* Contraste interactivo */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: #f4f4f5;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Custom Smooth Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #18181b;
}
::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

/* Scrollbar Utility para categorías */
.scrollbar-none::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.scrollbar-none {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

/* Glow & Warm Accent Effects */
.brand-glow {
  box-shadow: 0 0 25px rgba(255, 87, 34, 0.35);
}
.brand-glow-subtle {
  box-shadow: 0 4px 20px rgba(255, 87, 34, 0.18);
}

.text-gradient-fire {
  background: linear-gradient(135deg, #ff7844 0%, #ff5722 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Classes con tono cálido & Safe Area Support */
.glass-panel {
  background: rgba(39, 39, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

header.glass-nav {
  background: rgba(24, 24, 27, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  padding-left: max(0.75rem, env(safe-area-inset-left, 0.75rem));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0.75rem));
}

nav.glass-nav {
  background: rgba(24, 24, 27, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(1rem, env(safe-area-inset-left, 1rem));
  padding-right: max(1rem, env(safe-area-inset-right, 1rem));
}

.card-warm {
  background-color: #27272a;
  border: 1px solid #3f3f46;
}
.card-warm:hover {
  border-color: #f59e0b;
}

/* Live Pulse Animation */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.pulse-ring {
  animation: pulse-ring 2s infinite ease-in-out;
}

/* Splash Screen Animations */
@keyframes splash-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes splash-float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-8px) scale(1.03); }
}

@keyframes splash-glow {
  0%, 100% { box-shadow: 0 0 35px rgba(255, 87, 34, 0.4), 0 0 70px rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 55px rgba(255, 87, 34, 0.7), 0 0 90px rgba(245, 158, 11, 0.4); }
}

@keyframes ember-drift {
  0% { transform: translateY(0) scale(0.6); opacity: 0.2; }
  50% { opacity: 0.9; }
  100% { transform: translateY(-80px) scale(1.1); opacity: 0; }
}

.splash-spin-slow {
  animation: splash-spin 9s linear infinite;
}

.splash-float {
  animation: splash-float 2.4s ease-in-out infinite;
}

.splash-glow {
  animation: splash-glow 2.2s ease-in-out infinite;
}


/* Ticket Receipt Realistic Styling */
.ticket-paper {
  font-family: var(--font-mono);
  background-color: #ffffff;
  color: #111827;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
}

.ticket-paper::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: radial-gradient(circle, transparent, transparent 50%, #ffffff 50%, #ffffff 100%);
  background-size: 16px 16px;
}

.ticket-cutline {
  border-top: 2px dashed #9ca3af;
  position: relative;
  margin: 1rem 0;
}

.ticket-58mm {
  max-width: 280px !important;
  font-size: 11px !important;
}

.ticket-80mm {
  max-width: 360px !important;
  font-size: 12px !important;
}

/* Print Optimization */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-ticket, #printable-ticket *, #printable-report, #printable-report * {
    visibility: visible;
  }
  #printable-ticket, #printable-report {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 5px !important;
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  .no-print {
    display: none !important;
  }
}
