* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Outfit, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root {
  --terracotta: #c1440e;
  --terracotta-light: #e2703a;
  --mustard: #e0a832;
  --brass: #b5891a;
  --cream: #fdf6ec;
  --bg-dark: #1a120a;
  --bg-card: #241a10;
  --border-subtle: rgba(224, 168, 50, 0.18);
  --text-primary: #f2e6d4;
  --text-secondary: #b8a688;
}

body {
  background: radial-gradient(circle at top, #241a10 0%, #1a120a 55%, #120c06 100%);
  min-height: 100vh;
  color: var(--text-primary);
}

/* ---------- Navbar ---------- */
.cdh-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 30px;
  background: rgba(26, 18, 10, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--mustard); }

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
}
.nav-brand .saffron { color: #ff6f00; }
.nav-brand .gold { color: #ffab00; }
.nav-brand .green { color: #4caf50; }

/* ---------- Hero ---------- */
.hero-section {
  text-align: center;
  padding: 50px 20px 30px;
  background: linear-gradient(180deg, rgba(193, 68, 14, 0.12), transparent);
}

.section-badge {
  display: inline-block;
  color: var(--mustard);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--terracotta-light), var(--mustard));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Container ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

/* ---------- Control Bar ---------- */
.control-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 16px;
}

.search-icon { font-size: 1rem; opacity: 0.7; }

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.search-box input::placeholder { color: var(--text-secondary); }

.filter-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--mustard);
  color: var(--text-primary);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--terracotta), var(--brass));
  border-color: transparent;
  color: #fff;
}

.results-count {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* ---------- Dish Grid ---------- */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.dish-card {
  background: linear-gradient(160deg, var(--bg-card), #1c1409);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px 18px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dish-card::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(224,168,50,0.1) 0%, transparent 70%);
}

.dish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
  border-color: var(--mustard);
}

.dish-card-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
  display: block;
}

.dish-card-region {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mustard);
  background: rgba(224, 168, 50, 0.1);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-weight: 700;
}

.dish-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.dish-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish-card-type {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--terracotta-light);
  font-weight: 600;
}

/* ---------- No Results ---------- */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.hidden {
  display: none;
}
.no-results-icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }

/* ---------- Modal ---------- */
.dish-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 3, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dish-modal-overlay.active {
  display: flex;
}

.dish-modal {
  background: linear-gradient(160deg, var(--bg-card), #1c1409);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 34px 30px;
  position: relative;
  animation: modal-pop 0.25s ease;
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.modal-close-btn:hover { background: rgba(255,255,255,0.15); }

.modal-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.modal-region-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mustard);
  background: rgba(224, 168, 50, 0.1);
  padding: 4px 12px;
  border-radius: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.modal-section {
  margin-bottom: 18px;
}

.modal-section h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

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

.ingredient-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.8rem;
}

.fact-section {
  background: rgba(193, 68, 14, 0.08);
  border: 1px solid rgba(193, 68, 14, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
}

.fact-section p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.cdh-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  border-top: 1px solid var(--border-subtle);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero-section h1 { font-size: 1.6rem; }
  .dish-grid { grid-template-columns: 1fr 1fr; }
  .filter-row { gap: 12px; }
}

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