/* ==========================================================================
   DOWNTOWN LUKA — DIGITAL MENU BRANDING SYSTEM (Vanilla CSS)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette (Warm Cream, Deep Orange/Rust & High Contrast Charcoal) */
  --bg-main: #fbf9f3;          /* Warm Cream/Ivory */
  --bg-card: #ffffff;          /* Pure White Card */
  --bg-card-hover: #faf8f2;
  --bg-nav: rgba(251, 249, 243, 0.85);
  
  --primary: #c2410c;          /* Deep Rust Orange */
  --primary-glow: rgba(194, 65, 12, 0.08);
  --primary-hover: #9a3412;
  
  --secondary: #1e3a8a;        /* Deep Blue Accent for Drinks Menu */
  --secondary-glow: rgba(30, 58, 138, 0.08);
  
  --text-main: #111827;        /* Charcoal Black */
  --text-muted: #4b5563;       /* Slate Grey */
  --text-light: #9ca3af;
  
  --border-color: rgba(17, 24, 39, 0.08);
  --border-hover: rgba(17, 24, 39, 0.15);
  
  --success: #15803d;          /* Green for Veg */
  --success-glow: rgba(21, 128, 61, 0.1);
  --error: #b91c1c;            /* Burgundy for Non-Veg */
  --error-glow: rgba(185, 28, 28, 0.1);
  --warning: #d97706;          /* Orange for Spicy */
  --warning-glow: rgba(217, 119, 6, 0.1);

  /* Layout Standards */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
  
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  color-scheme: light;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout Wrapper */
.menu-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
}

/* Header Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.navbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.brand-name {
  font-size: 20px;
  letter-spacing: -0.5px;
}

.brand-est {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary);
}

.hero-title {
  font-size: 36px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
}

/* Section Cards (Index page) */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 600px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.section-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.section-icon {
  font-size: 40px;
  color: var(--primary);
  width: 80px;
  height: 80px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 8px;
}

.section-card.section-drinks .section-icon {
  color: var(--secondary);
  background: var(--secondary-glow);
}

.section-card.section-drinks:hover {
  border-color: var(--secondary);
}

/* Sticky Category Tab Bar */
.category-tabs-wrapper {
  position: sticky;
  top: 72px;
  z-index: 99;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 16px;
  scrollbar-width: none; /* Firefox */
}

.category-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.tab-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.drinks-mode .tab-btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
}

/* Search Bar floating wrapper */
.search-wrapper {
  margin-bottom: 24px;
}

.search-inner {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px 12px;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.search-inner:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.search-input {
  border: none;
  background: transparent;
  padding: 12px 0;
  flex: 1;
  font-size: 15px;
  outline: none;
  color: var(--text-main);
}

.search-icon {
  color: var(--text-light);
  font-size: 18px;
}

/* Filter Chips */
.filter-wrapper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-chip {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-chip.active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

/* Menu Grid cards */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.item-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.item-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.item-prices {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-row-display {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.drinks-mode .price-row-display {
  color: var(--secondary);
}

.item-image-wrapper {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--border-color);
  flex-shrink: 0;
}

.item-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-badge-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* Category header blocks */
.category-block {
  margin-top: 32px;
  scroll-margin-top: 140px; /* aligns category scroll jump */
}

.category-title-header {
  font-size: 24px;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  display: inline-block;
}

.drinks-mode .category-title-header {
  border-bottom-color: var(--secondary);
}

/* Veg/Non-veg tags */
.tag-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-veg {
  background: var(--success-glow);
  color: var(--success);
}

.tag-nonveg {
  background: var(--error-glow);
  color: var(--error);
}

.tag-spicy {
  background: var(--warning-glow);
  color: var(--warning);
}

/* Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  width: 100%;
  max-width: 550px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: 10;
  font-size: 16px;
}

.modal-media-wrapper {
  width: 100%;
  height: 260px;
  background: var(--border-color);
  position: relative;
}

.modal-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  font-size: 24px;
}

.modal-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Price tables inside modal (FR-4) */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.price-table th, .price-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.price-table th {
  background: var(--bg-main);
  font-weight: 600;
  color: var(--text-muted);
}

.price-table td.price-val {
  font-weight: 700;
  text-align: right;
  color: var(--primary);
}

.drinks-mode .price-table td.price-val {
  color: var(--secondary);
}

/* Skeletons */
.skeleton-card {
  height: 130px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: loading-pulse 1.5s infinite;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

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

/* Footer Disclaimers (Assumptions) */
.footer-disclaimer {
  text-align: center;
  color: var(--text-light);
  font-size: 11px;
  margin-top: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
}

/* Admin Dashboard Interface Styles */
.admin-header {
  background: #111827;
  color: #ffffff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-sidebar {
  width: 240px;
  background: #1f2937;
  color: #fff;
  min-height: calc(100vh - 72px);
  padding: 20px;
}

.admin-content {
  flex: 1;
  padding: 24px;
  background: #f9fafb;
}

.admin-grid {
  display: flex;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}

.admin-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #4b5563;
}

/* Inputs & Form Controls */
.input-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 14px;
  background: #ffffff;
}

.input-control:focus {
  border-color: var(--primary);
}

.btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #e5e7eb;
  color: #4b5563;
}

.btn-secondary:hover {
  background: #d1d5db;
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
}

.btn-danger:hover {
  background: #dc2626;
}

/* Variant Row layouts */
.variant-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

/* Login Panel overlay (FR-11) */
.login-panel {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #111827;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.login-box {
  width: 100%;
  max-width: 380px;
  background: #1f2937;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
