/* ========================================================
   MenuZeno.com - Global Restaurant Discovery Platform
   Design System & Styling
   ======================================================== */

/* Font loaded via high-performance link preconnect in head */

:root {
  --primary: #FF6B1A;
  --primary-hover: #E55A0F;
  --primary-light: #FFF2EB;
  --primary-50: #FFF7ED;
  --secondary: #101B35;
  --secondary-light: #1A274E;
  --secondary-muted: #64748B;
  --bg-white: #FFFFFF;
  --bg-light: #F5F7FB;
  --border-light: #E2E8F0;
  --border-card: #EEF2F6;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-subtle: 0 4px 20px -2px rgba(16, 27, 53, 0.06);
  --shadow-hover: 0 20px 35px -5px rgba(16, 27, 53, 0.12);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.font-serif {
  font-family: var(--font-serif);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Brand Button Styles */
.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.4rem;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(255, 107, 26, 0.25);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 26, 0.35);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--secondary);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.4rem;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}
.btn-secondary:hover {
  background-color: var(--secondary-light);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--secondary);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.6rem 1.3rem;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

/* Card Styling */
.card-zeno {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.card-zeno:hover {
  border-color: rgba(255, 107, 26, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Navigation & Glass effects */
.nav-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

/* Dropdown Menu styling */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(16, 27, 53, 0.1);
  padding: 0.5rem 0;
  display: none;
  z-index: 60;
  animation: fadeInDown 0.18s ease-out forwards;
}
.dropdown-trigger:hover .nav-dropdown,
.dropdown-trigger:focus-within .nav-dropdown {
  display: block;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Badges & Tags */
.badge-category {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-status-approved {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-status-pending {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-status-rejected {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--secondary);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 420px;
  animation: slideInRight 0.25s ease-out forwards;
}
.toast-success { border-left: 4px solid #10B981; }
.toast-error { border-left: 4px solid #EF4444; }
.toast-info { border-left: 4px solid var(--primary); }

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

/* Interactive Tabs */
.tab-btn {
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}
.tab-btn:hover {
  color: var(--primary);
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Print menu stylesheet */
@media print {
  header, footer, .no-print, #toast-container, .btn-primary, .btn-secondary {
    display: none !important;
  }
  body, .print-container {
    background: #FFFFFF !important;
    color: #000000 !important;
    padding: 0 !important;
  }
  .menu-print-card {
    border: none !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
}
