/*
 * Chef Ahmad Website - Black & Orange Theme
 * Overrides site.css to enforce black background, orange text, and vertical menu.
 * Loaded AFTER site.css.
 */

/* -------------------------------------------------------------------------- */
/* 1. TOKENS & THEME (Force Black/Orange, Ignore System Preference)           */
/* -------------------------------------------------------------------------- */

:root {
  /* Colors */
  --bg: #000000;
  --card: #111111;
  --line: #5a3410;
  --ink: #ff9a2e;
  --muted: #c9761c;
  --accent: #ff9a2e;
  --accent-dark: #c9761c;
  --gold: #ffc46b;

  /* Spacing & Shape */
  --radius: 16px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Force theme on Light Mode */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #000000;
    --card: #111111;
    --line: #5a3410;
    --ink: #ff9a2e;
    --muted: #c9761c;
    --accent: #ff9a2e;
    --accent-dark: #c9761c;
    --gold: #ffc46b;
  }
}

/* Force theme on Dark Mode (redundant but explicit) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #111111;
    --line: #5a3410;
    --ink: #ff9a2e;
    --muted: #c9761c;
    --accent: #ff9a2e;
    --accent-dark: #c9761c;
    --gold: #ffc46b;
  }
}

/* -------------------------------------------------------------------------- */
/* 2. LAYOUT & BODY                                                           */
/* -------------------------------------------------------------------------- */

body {
  background: #000000 !important;
  color: #ff9a2e !important;
}

/* -------------------------------------------------------------------------- */
/* 3. HERO SECTION                                                            */
/* -------------------------------------------------------------------------- */

.hero {
  background: #000000 !important;
  background-image: none !important;
  border-bottom: 2px solid #ff9a2e;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  color: #ff9a2e !important;
}

.hero-name {
  color: #ff9a2e !important;
}

.hero-tagline {
  color: #c9761c !important;
}

/* -------------------------------------------------------------------------- */
/* 4. BUTTONS                                                                 */
/* -------------------------------------------------------------------------- */

.btn-order {
  background-color: #ff9a2e !important;
  color: #000000 !important;
  border: none !important;
}

#lang-toggle {
  background: transparent !important;
  color: #ff9a2e !important;
  border: 1px solid #ff9a2e !important;
}

/* -------------------------------------------------------------------------- */
/* 5. CATEGORY NAVIGATION (VERTICAL MENU)                                     */
/* -------------------------------------------------------------------------- */

/* Wrapper for Nav + Main */
.layout {
  display: block;
  padding: 16px;
}

/* Reset horizontal behavior */
.cat-nav {
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
  white-space: normal !important;
  position: static !important;
  padding: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 0 !important;
  gap: 6px !important;
  margin-bottom: 20px !important;
}

.cat-nav a {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  min-height: 44px !important;
  background: #111111 !important;
  border: 1px solid #5a3410 !important;
  color: #ff9a2e !important;
  text-align: start !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  transition: none !important;
}

.cat-nav a:hover {
  border-color: #ff9a2e !important;
}

.cat-nav a.active {
  background: #ff9a2e !important;
  color: #000000 !important;
  border-color: #ff9a2e !important;
}

/* Wide Screens (>= 900px) */
@media (min-width: 900px) {
  .layout {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) !important;
    gap: 32px !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 24px !important;
    align-items: start !important;
  }

  .cat-nav {
    position: sticky !important;
    top: 16px !important;
    margin-bottom: 0 !important;
  }
}

/* -------------------------------------------------------------------------- */
/* 6. MAIN MENU LAYOUT                                                        */
/* -------------------------------------------------------------------------- */

.layout > main#menu {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-self: stretch !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 8px 0 24px !important;
}

.cat {
  scroll-margin-top: 16px !important;
}

.menu-heading {
  color: #ff9a2e !important;
}

.cat-title {
  color: #ff9a2e !important;
}

/* -------------------------------------------------------------------------- */
/* 7. GRID & DISH CARDS (VERTICAL LIST)                                       */
/* -------------------------------------------------------------------------- */

/* Force single column grid for dishes on all widths */
.cat .grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  max-width: 760px !important;
  margin-inline: 0 !important;
}

/* Override site.css media queries that change columns */
@media (min-width: 720px) {
  .cat .grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 1020px) {
  .cat .grid {
    grid-template-columns: 1fr !important;
  }
}

.dish {
  background-color: #111111 !important;
  border: 1px solid #5a3410 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  flex-direction: row !important;
}

/* Dish Photo Area - Fixed width 120px */
.dish-photo {
  flex: none !important;
  width: 120px !important;
  height: auto !important;
  min-height: 120px !important;
  aspect-ratio: 1 / 1 !important;
  background-color: #1a1a1a !important;
  overflow: hidden !important;
  position: relative !important;
  cursor: zoom-in !important;
}

.dish-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* No Photo Placeholder */
.no-photo {
  flex: none !important;
  width: 120px !important;
  min-height: 120px !important;
  aspect-ratio: 1 / 1 !important;
  background: #1a1a1a !important;
  display: grid !important;
  place-items: center !important;
}

.no-photo span {
  color: #ff9a2e !important;
}

/* Dish Body Content */
.dish-body {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 10px 14px !important;
  gap: 4px !important;
}

.dish-name {
  color: #ff9a2e !important;
  font-family: var(--font-head) !important;
  font-size: 1.02rem !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  font-weight: 700 !important;
}

.dish-desc {
  color: #c9761c !important;
  margin: 0 !important;
  font-size: 0.88rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.dish-price {
  color: #ff9a2e !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  margin: 6px 0 0 !important;
  margin-top: auto !important;
}

.dish-price .amount {
  font-size: 1.2rem !important;
}

/* -------------------------------------------------------------------------- */
/* 8. INFO SECTION                                                            */
/* -------------------------------------------------------------------------- */

.info-block {
  background-color: #111111 !important;
  border: 1px solid #5a3410 !important;
}

.info-block h3 {
  color: #ff9a2e !important;
}

.tel {
  color: #ff9a2e !important;
}

.hours {
  color: #ff9a2e !important;
}

.social a {
  color: #ff9a2e !important;
  border: 1px solid #5a3410 !important;
  background-color: #111111 !important;
}

.social a:hover {
  background-color: #5a3410 !important;
}

/* -------------------------------------------------------------------------- */
/* 9. FOOTER                                                                  */
/* -------------------------------------------------------------------------- */

.foot {
  color: #c9761c !important;
}

/* -------------------------------------------------------------------------- */
/* 10. LIGHTBOX                                                               */
/* -------------------------------------------------------------------------- */

#lightbox {
  background-color: rgba(0, 0, 0, 0.95) !important;
}

.lb-caption {
  color: #ff9a2e !important;
}

.lb-close, .lb-prev, .lb-next {
  background-color: rgba(255, 154, 46, 0.2) !important;
  color: #ff9a2e !important;
  border: 1px solid #ff9a2e !important;
}

/* -------------------------------------------------------------------------- */
/* 11. ACCESSIBILITY                                                          */
/* -------------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid #ffd08a !important;
  outline-offset: 2px !important;
}
