/* Menu Theme Variations */

/* ============================================
   THEME: Modern Minimal (Default)
   Clean lines, lots of whitespace, subtle shadows
   ============================================ */
.theme-modern-minimal {
  --theme-bg: #f9fafb;
  --theme-card-bg: #ffffff;
  --theme-text: #1f2937;
  --theme-text-light: #6b7280;
  --theme-primary: #355E3B;
  --theme-primary-light: #4a7a52;
  --theme-accent: #D4AF37;
  --theme-border: #e5e7eb;
  --theme-header-bg: linear-gradient(135deg, #355E3B 0%, #4a7a52 100%);
  --theme-header-text: #ffffff;
  --theme-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --theme-card-radius: 12px;
  --theme-font-heading: 'Playfair Display', Georgia, serif;
  --theme-font-body: 'Inter', -apple-system, sans-serif;
}

/* ============================================
   THEME: Classic Elegant
   Serif fonts, cream backgrounds, gold accents
   ============================================ */
.theme-classic-elegant {
  --theme-bg: #faf8f5;
  --theme-card-bg: #ffffff;
  --theme-text: #2d2926;
  --theme-text-light: #6b6560;
  --theme-primary: #8B4513;
  --theme-primary-light: #a0522d;
  --theme-accent: #c9a959;
  --theme-border: #e8e4de;
  --theme-header-bg: linear-gradient(135deg, #2d2926 0%, #4a4541 100%);
  --theme-header-text: #f5f0e8;
  --theme-card-shadow: 0 2px 8px rgba(45, 41, 38, 0.08);
  --theme-card-radius: 4px;
  --theme-font-heading: 'Playfair Display', Georgia, serif;
  --theme-font-body: Georgia, 'Times New Roman', serif;
}

.theme-classic-elegant .restaurant-header {
  background: var(--theme-header-bg);
  border-bottom: 3px solid var(--theme-accent);
}

.theme-classic-elegant .menu-item {
  border: 1px solid var(--theme-border);
  border-top: 3px solid var(--theme-accent);
}

.theme-classic-elegant .category-title {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
}

.theme-classic-elegant .category-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--theme-accent);
}

.theme-classic-elegant .item-name {
  font-family: var(--theme-font-heading);
  font-style: italic;
}

.theme-classic-elegant .item-price {
  font-family: var(--theme-font-heading);
}

/* ============================================
   THEME: Bold & Vibrant
   Strong colors, modern sans-serif, energetic
   ============================================ */
.theme-bold-vibrant {
  --theme-bg: #fef2f2;
  --theme-card-bg: #ffffff;
  --theme-text: #1a1a2e;
  --theme-text-light: #4a4a68;
  --theme-primary: #e11d48;
  --theme-primary-light: #f43f5e;
  --theme-accent: #fbbf24;
  --theme-border: #fecdd3;
  --theme-header-bg: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  --theme-header-text: #ffffff;
  --theme-card-shadow: 0 4px 14px rgba(225, 29, 72, 0.15);
  --theme-card-radius: 16px;
  --theme-font-heading: 'Inter', -apple-system, sans-serif;
  --theme-font-body: 'Inter', -apple-system, sans-serif;
}

.theme-bold-vibrant .restaurant-header {
  background: var(--theme-header-bg);
}

.theme-bold-vibrant .category-title {
  color: var(--theme-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.theme-bold-vibrant .menu-item {
  border-left: 4px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.theme-bold-vibrant .menu-item:hover {
  border-left-color: var(--theme-primary);
  transform: translateX(4px);
}

.theme-bold-vibrant .menu-item-featured {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border-left-color: var(--theme-primary);
}

.theme-bold-vibrant .item-price {
  background: var(--theme-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
}

.theme-bold-vibrant .tag-bestseller {
  background: var(--theme-primary);
  color: white;
}

.theme-bold-vibrant .tag-new {
  background: var(--theme-accent);
  color: #1a1a2e;
}

/* ============================================
   THEME: Dark Mode
   Dark backgrounds, light text, neon accents
   ============================================ */
.theme-dark-mode {
  --theme-bg: #0f0f0f;
  --theme-card-bg: #1a1a1a;
  --theme-text: #f5f5f5;
  --theme-text-light: #a3a3a3;
  --theme-primary: #22c55e;
  --theme-primary-light: #4ade80;
  --theme-accent: #f59e0b;
  --theme-border: #2d2d2d;
  --theme-header-bg: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
  --theme-header-text: #f5f5f5;
  --theme-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --theme-card-radius: 12px;
  --theme-font-heading: 'Inter', -apple-system, sans-serif;
  --theme-font-body: 'Inter', -apple-system, sans-serif;
}

.theme-dark-mode {
  background: var(--theme-bg);
  color: var(--theme-text);
}

.theme-dark-mode .restaurant-header {
  background: var(--theme-header-bg);
  border-bottom: 1px solid var(--theme-border);
}

.theme-dark-mode .info-bar {
  background: #1a1a1a;
  border-bottom-color: var(--theme-border);
}

.theme-dark-mode .info-item,
.theme-dark-mode .info-item a {
  color: var(--theme-text-light);
}

.theme-dark-mode .category-nav {
  background: #1a1a1a;
  border-bottom-color: var(--theme-border);
}

.theme-dark-mode .category-tab {
  color: var(--theme-text-light);
}

.theme-dark-mode .category-tab:hover {
  background: #2d2d2d;
  color: var(--theme-text);
}

.theme-dark-mode .category-tab.active {
  background: var(--theme-primary);
  color: #0f0f0f;
}

.theme-dark-mode .category-title {
  color: var(--theme-text);
}

.theme-dark-mode .category-description {
  color: var(--theme-text-light);
}

.theme-dark-mode .menu-item {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
}

.theme-dark-mode .menu-item:hover {
  border-color: var(--theme-primary);
}

.theme-dark-mode .menu-item-featured {
  background: linear-gradient(135deg, #1a2e1a 0%, #1a1a1a 100%);
  border-color: var(--theme-primary);
}

.theme-dark-mode .item-name {
  color: var(--theme-text);
}

.theme-dark-mode .item-description {
  color: var(--theme-text-light);
}

.theme-dark-mode .item-price {
  color: var(--theme-primary);
}

.theme-dark-mode .menu-footer {
  background: #1a1a1a;
  border: 1px solid var(--theme-border);
}

.theme-dark-mode .menu-footer p {
  color: var(--theme-text-light);
}

.theme-dark-mode .tag-new {
  background: var(--theme-primary);
  color: #0f0f0f;
}

.theme-dark-mode .tag-chef {
  background: var(--theme-accent);
  color: #0f0f0f;
}

.theme-dark-mode .tag-bestseller {
  background: #3b82f6;
  color: white;
}

/* ============================================
   THEME: Warm & Cozy
   Warm earth tones, soft shadows, inviting
   ============================================ */
.theme-warm-cozy {
  --theme-bg: #fdf6e9;
  --theme-card-bg: #fffbf5;
  --theme-text: #4a3728;
  --theme-text-light: #7a6555;
  --theme-primary: #b45309;
  --theme-primary-light: #d97706;
  --theme-accent: #059669;
  --theme-border: #e8dcc8;
  --theme-header-bg: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  --theme-header-text: #fffbf5;
  --theme-card-shadow: 0 2px 12px rgba(180, 83, 9, 0.1);
  --theme-card-radius: 20px;
  --theme-font-heading: 'Playfair Display', Georgia, serif;
  --theme-font-body: 'Inter', -apple-system, sans-serif;
}

.theme-warm-cozy {
  background: var(--theme-bg);
}

.theme-warm-cozy .restaurant-header {
  background: var(--theme-header-bg);
}

.theme-warm-cozy .info-bar {
  background: #fff8ee;
}

.theme-warm-cozy .category-nav {
  background: #fff8ee;
}

.theme-warm-cozy .category-tab.active {
  background: var(--theme-primary);
}

.theme-warm-cozy .menu-item {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
}

.theme-warm-cozy .menu-item-featured {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbf5 100%);
  border-color: var(--theme-primary);
}

.theme-warm-cozy .category-title {
  color: var(--theme-primary);
}

.theme-warm-cozy .item-price {
  color: var(--theme-primary);
}

.theme-warm-cozy .tag-bestseller {
  background: var(--theme-accent);
  color: white;
}

.theme-warm-cozy .tag-new {
  background: var(--theme-primary);
  color: white;
}

.theme-warm-cozy .tag-chef {
  background: #fbbf24;
  color: #4a3728;
}

/* ============================================
   THEME: Fresh & Light
   Bright, airy, blue accents, health-focused feel
   ============================================ */
.theme-fresh-light {
  --theme-bg: #f0f9ff;
  --theme-card-bg: #ffffff;
  --theme-text: #0f172a;
  --theme-text-light: #64748b;
  --theme-primary: #0ea5e9;
  --theme-primary-light: #38bdf8;
  --theme-accent: #10b981;
  --theme-border: #e0f2fe;
  --theme-header-bg: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  --theme-header-text: #ffffff;
  --theme-card-shadow: 0 1px 4px rgba(14, 165, 233, 0.1);
  --theme-card-radius: 16px;
  --theme-font-heading: 'Inter', -apple-system, sans-serif;
  --theme-font-body: 'Inter', -apple-system, sans-serif;
}

.theme-fresh-light {
  background: var(--theme-bg);
}

.theme-fresh-light .restaurant-header {
  background: var(--theme-header-bg);
}

.theme-fresh-light .info-bar {
  background: #ffffff;
}

.theme-fresh-light .category-nav {
  background: #ffffff;
}

.theme-fresh-light .category-tab.active {
  background: var(--theme-primary);
}

.theme-fresh-light .menu-item {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
}

.theme-fresh-light .menu-item-featured {
  background: linear-gradient(135deg, #ecfeff 0%, #ffffff 100%);
  border: 2px solid var(--theme-primary);
}

.theme-fresh-light .category-title {
  color: var(--theme-primary);
  font-weight: 700;
}

.theme-fresh-light .item-price {
  color: var(--theme-primary);
  font-weight: 700;
}

.theme-fresh-light .tag-vegetarian,
.theme-fresh-light .tag-vegan {
  background: #d1fae5;
  color: #065f46;
}

.theme-fresh-light .tag-gf {
  background: #fef3c7;
  color: #92400e;
}

.theme-fresh-light .tag-new {
  background: var(--theme-primary);
  color: white;
}

.theme-fresh-light .tag-chef {
  background: var(--theme-accent);
  color: white;
}

.theme-fresh-light .tag-bestseller {
  background: #8b5cf6;
  color: white;
}

/* ============================================
   STYLE SWITCHER COMPONENT
   ============================================ */
.style-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.style-switcher-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1f2937;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.style-switcher-toggle:hover {
  transform: scale(1.1);
}

.style-switcher-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 16px;
  min-width: 220px;
  display: none;
}

.style-switcher-panel.active {
  display: block;
}

.style-switcher-panel h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.style-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.style-option:hover {
  background: #f3f4f6;
}

.style-option.active {
  background: #ecfdf5;
}

.style-swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.style-option span {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

/* Swatches for each theme */
.swatch-modern-minimal {
  background: linear-gradient(135deg, #355E3B 50%, #f9fafb 50%);
}

.swatch-classic-elegant {
  background: linear-gradient(135deg, #2d2926 50%, #faf8f5 50%);
  border: 1px solid #c9a959;
}

.swatch-bold-vibrant {
  background: linear-gradient(135deg, #e11d48 50%, #fef2f2 50%);
}

.swatch-dark-mode {
  background: linear-gradient(135deg, #22c55e 50%, #0f0f0f 50%);
}

.swatch-warm-cozy {
  background: linear-gradient(135deg, #b45309 50%, #fdf6e9 50%);
}

.swatch-fresh-light {
  background: linear-gradient(135deg, #0ea5e9 50%, #f0f9ff 50%);
}

/* Dark mode switcher override */
.theme-dark-mode .style-switcher-panel {
  background: #1a1a1a;
  border: 1px solid #2d2d2d;
}

.theme-dark-mode .style-switcher-panel h4 {
  color: #a3a3a3;
}

.theme-dark-mode .style-option:hover {
  background: #2d2d2d;
}

.theme-dark-mode .style-option.active {
  background: #1a2e1a;
}

.theme-dark-mode .style-option span {
  color: #f5f5f5;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .style-switcher {
    bottom: 16px;
    right: 16px;
  }

  .style-switcher-toggle {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .style-switcher-panel {
    right: -8px;
    min-width: 200px;
  }
}
