/* ============================================
   GurmeClick POS - Dark Premium Design System
   Inspired by: Linear, Vercel, Raycast
   ============================================ */

/* === CSS Variables === */
:root {
  /* Dark Background Colors */
  --dark-bg-primary: #0a0a0f;
  --dark-bg-secondary: #12121a;
  --dark-bg-tertiary: #1a1a2e;
  --dark-bg-elevated: #1e1e2d;

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glass-blur: 12px;

  /* Accent Colors */
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #a78bfa;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --accent-gradient-hover: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  --accent-glow: 0 0 30px rgba(99, 102, 241, 0.3);
  --accent-glow-strong: 0 0 50px rgba(99, 102, 241, 0.5);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-subtle: #52525b;

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Compact Spacing */
  --section-padding: 3rem;
  --container-max: 1140px;
  --container-padding: 1.5rem;
  --card-padding: 1.25rem;
  --element-gap: 1rem;

  /* Compact Typography */
  --font-size-hero: 2.25rem;
  --font-size-section: 1.5rem;
  --font-size-card-title: 1.125rem;
  --font-size-body: 0.9375rem;
  --font-size-small: 0.8125rem;
  --line-height-tight: 1.5;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

/* === Base Styles for Public Pages === */
.dark-premium-page {
  background: var(--dark-bg-primary);
  color: var(--text-secondary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-tight);
  min-height: 100vh;
}

/* === Container === */
.premium-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* === Section Wrapper === */
.premium-section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* === Glass Card === */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.glass-card-static {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
}

/* === Glass Card Highlighted === */
.glass-card-highlight {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  box-shadow: var(--accent-glow);
  position: relative;
}

.glass-card-highlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--accent-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* === Gradient Text === */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* === Typography === */
.text-hero {
  font-size: var(--font-size-hero);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-section {
  font-size: var(--font-size-section);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.text-card-title {
  font-size: var(--font-size-card-title);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.text-body {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  line-height: var(--line-height-tight);
}

.text-muted {
  color: var(--text-muted);
}

.text-subtle {
  color: var(--text-subtle);
}

/* === Buttons === */
.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: var(--font-size-body);
  font-weight: 500;
  color: white;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--accent-glow);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-glow:hover {
  box-shadow: var(--accent-glow-strong);
  transform: translateY(-2px);
}

.btn-glow:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: var(--font-size-body);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
  background: var(--glass-bg);
}

/* === Badges === */
.badge-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
}

.badge-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--accent-tertiary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 9999px;
}

/* === QR Menu Badges === */
.qr-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 0.375rem;
  z-index: 10;
}

.qr-badge-popular {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.qr-badge-new {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
}

.qr-badge-out-of-stock {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
  top: auto;
  bottom: 0.5rem;
  left: auto;
  right: 0.5rem;
}

.qr-badge-low-stock {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: white;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.35);
  top: auto;
  bottom: 0.5rem;
  left: auto;
  right: 0.5rem;
}

/* === Icons with Glow === */
.icon-glow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  font-size: 1.125rem;
}

.icon-glow-lg {
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
}

/* === Grid Layouts === */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--element-gap);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--element-gap);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--element-gap);
}

@@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@@media (max-width: 768px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* === Background Patterns === */
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.bg-gradient-radial {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent);
}

/* === Form Inputs === */
.input-glass {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: var(--font-size-body);
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
}

.input-glass::placeholder {
  color: var(--text-muted);
}

.input-glass:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* === Toggle Switch === */
.toggle-container {
  display: inline-flex;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  padding: 0.25rem;
}

.toggle-option {
  padding: 0.375rem 0.875rem;
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toggle-option.active {
  color: var(--text-primary);
  background: var(--accent-gradient);
}

/* === Dividers === */
.divider {
  height: 1px;
  background: var(--glass-border);
  margin: 1.5rem 0;
}

.divider-vertical {
  width: 1px;
  height: 100%;
  background: var(--glass-border);
}

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

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

@@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.5); }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

/* Staggered animation delays */
.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; }
.delay-600 { animation-delay: 600ms; }

/* === Stat Counter === */
.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* === Feature List === */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-body);
  color: var(--text-secondary);
}

.feature-item i {
  color: var(--success);
  font-size: 0.875rem;
}

/* === Testimonial === */
.testimonial-text {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: var(--font-size-small);
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: var(--font-size-small);
  color: var(--text-muted);
}

/* === Star Rating === */
.star-rating {
  display: flex;
  gap: 0.125rem;
  color: #fbbf24;
  font-size: 0.875rem;
}

/* === Price Display === */
.price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.price-period {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  font-weight: 400;
}

/* === Navbar Styles === */
.navbar-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 0;
  background: transparent;
  transition: all var(--transition-base);
}

.navbar-glass.scrolled {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
}

.nav-link {
  font-size: var(--font-size-body);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.nav-link.active {
  color: var(--accent-primary);
}

/* === Footer Styles === */
.footer-dark {
  background: var(--dark-bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 1.5rem;
}

.footer-link {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
}

/* === Hero Section Specific === */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-visual {
  position: relative;
  z-index: 10;
}

/* === Responsive Adjustments === */
@@media (max-width: 768px) {
  :root {
    --font-size-hero: 1.75rem;
    --font-size-section: 1.25rem;
    --section-padding: 2rem;
  }

  .hero-section {
    min-height: auto;
    padding: 4rem 0 2rem;
  }
}

@@media (max-width: 480px) {
  :root {
    --font-size-hero: 1.5rem;
    --container-padding: 1rem;
    --card-padding: 1rem;
  }
}
