/* Sabor & Tradición: Recetario Patrimonial Peruano (Editorial Anti-Slop System) */

:root {
  /* Paleta cromática natural inspirada en botánica, ajíes, cerámica y textiles andinos */
  --bg-primary: #121110;        /* Carbón orgánico cálido */
  --bg-secondary: #181614;      /* Superficie secundaria lino oscuro */
  --bg-card: #1f1c19;           /* Superficie editorial sólida mate */
  --bg-elevated: #282420;       /* Capa superior o popovers */
  --bg-modal: #151311;

  /* Bordes sobrios y estructurados */
  --border-subtle: rgba(230, 220, 205, 0.08);
  --border-medium: rgba(230, 220, 205, 0.16);
  --border-strong: rgba(230, 220, 205, 0.28);

  /* Acentos de tierra y especias auténticos */
  --color-accent: #c97a3e;       /* Terracota / Ají panca */
  --color-accent-soft: rgba(201, 122, 62, 0.14);
  --color-accent-hover: #db8a4c;
  --color-gold: #c29b38;         /* Ocre andino / Maíz */
  --color-culantro: #4e8061;     /* Culantro silvestre */
  --color-crimson: #a63d3d;      /* Rocoto profundo */

  /* Escala tipográfica y jerarquía legible */
  --text-primary: #f2ede4;      /* Crema hueso */
  --text-secondary: #b5aba0;    /* Tono piedra intermedio */
  --text-muted: #80776d;        /* Metadatos y notas */

  /* Radios refinados */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Tipografía editorial */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --header-height: 64px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  line-height: 1.55;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button, input, select {
  font-family: inherit;
}

/* Typography Primitives */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

/* Header Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 17, 16, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.25s ease;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.brand-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-accent);
}

.brand-text h1 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

/* Search Input */
.header-search {
  flex: 1;
  max-width: 440px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 2.2rem 0.5rem 2.4rem;
  color: var(--text-primary);
  font-size: 0.86rem;
  transition: border-color 0.15s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-kbd {
  position: absolute;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* Header Nav Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.nav-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-subtle);
  background: var(--bg-card);
}

.nav-btn.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border-medium);
}

.nav-badge {
  background: var(--color-accent);
  color: #121110;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Peruvian Cultural Accent Bar */
.peruvian-accent-bar {
  height: 4px;
  background: linear-gradient(90deg, #a63d3d 0%, #c97a3e 25%, #c29b38 50%, #4e8061 75%, #a63d3d 100%);
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 1.5rem 3rem;
  background: radial-gradient(circle at 15% 20%, rgba(201, 122, 62, 0.08) 0%, transparent 45%), linear-gradient(180deg, #171513 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
}

.hero-title {
  font-size: 2.85rem;
  line-height: 1.14;
  font-family: var(--font-serif);
  font-weight: 600;
  margin-bottom: 1.15rem;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: #f7d8b5;
}

.hero-desc {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 580px;
}

/* Gastronomic Pillar Stats Strip */
.hero-pillars-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pillar-stat {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.pillar-num {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-gold);
}

.pillar-txt {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pillar-sep {
  color: var(--border-medium);
  font-size: 0.8rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Despensa & Insumos Nativos Section */
.pantry-section {
  background: #151312;
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.75rem 0 3rem;
}

.pantry-header {
  margin-bottom: 1.75rem;
}

.pantry-kicker {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.pantry-title {
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}

.pantry-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 680px;
}

.pantry-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.85rem;
}

.pantry-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.pantry-chip:hover {
  border-color: var(--border-medium);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

.pantry-chip.active {
  background: var(--bg-elevated);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.pantry-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-amarillo { background: #e5a93b; box-shadow: 0 0 8px rgba(229, 169, 59, 0.4); }
.dot-panca { background: #ab4426; box-shadow: 0 0 8px rgba(171, 68, 38, 0.4); }
.dot-limon { background: #9bbd3a; box-shadow: 0 0 8px rgba(155, 189, 58, 0.4); }
.dot-marino { background: #3b82a6; box-shadow: 0 0 8px rgba(59, 130, 166, 0.4); }
.dot-papa { background: #b08d5b; box-shadow: 0 0 8px rgba(176, 141, 91, 0.4); }
.dot-hierbas { background: #4e8061; box-shadow: 0 0 8px rgba(78, 128, 97, 0.4); }
.dot-chifa { background: #8e3e4a; box-shadow: 0 0 8px rgba(142, 62, 74, 0.4); }
.dot-maiz { background: #88508a; box-shadow: 0 0 8px rgba(136, 80, 138, 0.4); }

.pantry-chip-info {
  display: flex;
  flex-direction: column;
}

.pantry-chip-info strong {
  font-size: 0.86rem;
  color: var(--text-primary);
  line-height: 1.25;
}

.pantry-chip-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.25;
}

/* Buttons */
.btn-primary {
  background: var(--color-accent);
  color: #121110;
  border: 1px solid transparent;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background-color 0.15s ease;
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--border-strong);
}

.btn-danger {
  background: transparent;
  border: 1px solid rgba(166, 61, 61, 0.4);
  color: #df7a7a;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-danger:hover {
  background: rgba(166, 61, 61, 0.15);
  border-color: var(--color-crimson);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

/* Hero Spotlight Card (Plato Destacado) */
.spotlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.spotlight-img-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #000;
}

.spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.spotlight-card:hover .spotlight-img {
  transform: scale(1.02);
}

.spotlight-overlay {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
}

.spotlight-tag {
  background: rgba(18, 17, 16, 0.88);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.spotlight-content {
  padding: 1.5rem;
}

.spotlight-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.spotlight-content h3 {
  font-size: 1.65rem;
  margin-bottom: 0.4rem;
}

.spotlight-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  line-height: 1.5;
}

.spotlight-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.spotlight-meta .sep {
  color: var(--border-medium);
}

/* Main Container & Category Tabs */
.main-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

.categories-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
}

.cat-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-card);
}

.cat-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
  font-weight: 600;
}

.cat-btn-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.05rem 0.35rem;
  border-radius: var(--radius-xs);
}

/* Filter Toolbar */
.filters-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.2rem;
}

.filter-pill {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.filter-pill.active {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.results-counter {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.results-counter b {
  color: var(--text-primary);
}

/* Recipes Grid */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Recipe Card */
.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.recipe-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.card-img-wrap {
  position: relative;
  height: 200px;
  background: #000;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.recipe-card:hover .card-img {
  transform: scale(1.03);
}

.card-badges {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.badge-category {
  background: rgba(18, 17, 16, 0.85);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-region {
  background: rgba(18, 17, 16, 0.85);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.68rem;
}

.card-fav-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: rgba(18, 17, 16, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.card-fav-btn:hover {
  background: rgba(18, 17, 16, 0.95);
  border-color: var(--border-medium);
}

.card-poster-tag {
  position: absolute;
  bottom: 0.5rem;
  left: 0.65rem;
  background: rgba(18, 17, 16, 0.8);
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.card-meta-row .sep {
  color: var(--border-medium);
}

.card-ingredients-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.ing-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
}

.ing-chip.more {
  color: var(--text-muted);
}

.card-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.card-btn-view {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.card-btn-view:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.card-btn-cook {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--color-accent);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.card-btn-cook:hover {
  background: var(--color-accent);
  color: #121110;
  border-color: transparent;
}

/* Mural de los 100 Section */
.mural-section {
  background: #161412;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4rem 0;
}

.section-header {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
  padding: 0 1.5rem;
}

.section-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.poster-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0 1.5rem;
  flex-wrap: wrap;
}

.poster-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.poster-tab-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.poster-tab-btn.active {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

.poster-display-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.poster-image-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #000;
  border: 1px solid var(--border-subtle);
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-zoom-hint {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(18, 17, 16, 0.88);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.poster-dishes-list {
  display: flex;
  flex-direction: column;
}

.poster-dishes-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.poster-dishes-header h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.poster-dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.poster-dish-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.15s ease;
}

.poster-dish-chip:hover {
  border-color: var(--border-medium);
  background: var(--bg-elevated);
}

.poster-chip-num {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: monospace;
}

.poster-chip-thumb {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  object-fit: cover;
}

.poster-chip-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
}

/* Modal Recipe Detail */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  background: var(--bg-modal);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(18, 17, 16, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(18, 17, 16, 0.95);
  border-color: var(--border-strong);
}

.modal-header-banner {
  position: relative;
  height: 320px;
  background: #000;
}

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

.modal-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 17, 16, 0.2) 0%, rgba(18, 17, 16, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.modal-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.modal-title {
  font-size: 2.3rem;
  margin-bottom: 0.4rem;
}

.modal-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 650px;
}

.modal-badges-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.modal-body-content {
  padding: 2rem;
}

/* Scaler Widget */
.servings-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.servings-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.servings-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.servings-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-btn:hover {
  border-color: var(--border-strong);
}

.servings-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 2ch;
  text-align: center;
}

.add-shop-btn {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.add-shop-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

/* Recipe Story Box */
.recipe-story-box {
  background: var(--bg-card);
  border-left: 2px solid var(--color-accent);
  padding: 1.15rem 1.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 2rem;
}

.story-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
}

.recipe-story-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Recipe Detail Grid */
.recipe-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.ingredients-panel, .steps-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.ingredients-panel h3, .steps-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* Mise en Place & Ingredients */
.ing-category-group {
  margin-bottom: 1.5rem;
}

.ing-category-group:last-child {
  margin-bottom: 0;
}

.ing-category-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ing-category-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
}

.ing-category-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
}

.ing-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ingredient-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.ingredient-item:hover {
  background: var(--bg-elevated);
  border-color: var(--border-subtle);
}

.ingredient-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

.ingredient-name {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.ingredient-amount {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gold);
  background: rgba(194, 155, 56, 0.1);
  border: 1px solid rgba(194, 155, 56, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  font-family: var(--font-sans);
}

.ingredient-item.checked {
  opacity: 0.45;
  background: transparent;
}

.ingredient-item.checked .ingredient-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.ingredient-item.checked .ingredient-amount {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

/* Step Cards */
.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 1.15rem;
  margin-bottom: 1rem;
  transition: border-color 0.15s ease;
}

.step-card.completed {
  opacity: 0.65;
}

.step-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.step-num-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.step-badge {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.step-instruction {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.step-highlight-box {
  background: rgba(201, 122, 62, 0.08);
  border-left: 2px solid var(--color-accent);
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  color: #dfcebe;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.highlight-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--color-accent);
}

.step-timer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

.timer-display {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.timer-display.running {
  color: var(--color-gold);
}

.timer-actions {
  display: flex;
  gap: 0.4rem;
}

.timer-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  cursor: pointer;
}

.timer-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* Chef Secrets */
.chef-secrets-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.chef-secrets-box h4 {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.chef-tips-list {
  list-style: square;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pairing-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Kitchen Focus Mode Overlay */
.kitchen-mode-overlay {
  position: fixed;
  inset: 0;
  background: #0f0e0d;
  z-index: 300;
  display: none;
  flex-direction: column;
  padding: 1.75rem;
}

.kitchen-mode-overlay.open {
  display: flex;
}

.kitchen-header {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.kitchen-step-indicator {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  font-weight: 600;
  display: block;
}

.kitchen-recipe-info h2 {
  font-size: 1.65rem;
}

.kitchen-speak-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.kitchen-speak-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.kitchen-speak-btn.speaking {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.kitchen-exit-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
}

.kitchen-exit-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.kitchen-body {
  max-width: 900px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 0;
}

.kitchen-step-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  max-width: 760px;
}

.kitchen-instruction-box {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 760px;
  margin-bottom: 2rem;
}

.kitchen-highlight {
  background: rgba(201, 122, 62, 0.1);
  border: 1px solid rgba(201, 122, 62, 0.25);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: #dfcebe;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.kitchen-timer-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.timer-big-digits {
  font-family: monospace;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.kitchen-nav-controls {
  display: flex;
  gap: 1.5rem;
}

.kitchen-nav-btn {
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.kitchen-nav-btn.prev {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}

.kitchen-nav-btn.prev:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.kitchen-nav-btn.prev:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.kitchen-nav-btn.next {
  background: var(--color-accent);
  color: #121110;
  border: 1px solid transparent;
}

.kitchen-nav-btn.next:hover {
  background: var(--color-accent-hover);
}

/* Shopping Drawer */
.shopping-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-subtle);
  z-index: 250;
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
  box-shadow: -8px 0 30px rgba(0,0,0,0.5);
}

.shopping-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-size: 1.15rem;
}

.drawer-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  overflow-y: auto;
}

.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Shopping Drawer Items */
.shopping-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: opacity 0.15s ease;
}

.shopping-item-row.checked {
  opacity: 0.45;
}

.shopping-item-row.checked .shop-item-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.shop-check-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  cursor: pointer;
}

.shop-check-label input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.shop-item-name {
  font-size: 0.86rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.shop-item-amount {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold);
  background: rgba(194, 155, 56, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.shop-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.35rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.shop-remove-btn:hover {
  color: #df7a7a;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(18, 17, 16, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-subtle);
  z-index: 90;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  cursor: pointer;
  position: relative;
  min-width: 60px;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--text-primary);
}

.mobile-badge {
  position: absolute;
  top: -2px;
  right: 12px;
  background: var(--color-accent);
  color: #121110;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-xs);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 500;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Scroll to Top */
.scroll-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 80;
}

.scroll-to-top-btn.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-to-top-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-elevated);
}

/* Site Footer */
.site-footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.footer-brand {
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .poster-display-wrap {
    grid-template-columns: 1fr;
  }
  .recipe-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .site-header {
    padding: 0;
  }
  .filters-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .kitchen-step-title {
    font-size: 1.65rem;
  }
  .kitchen-instruction-box {
    font-size: 1.15rem;
  }
}
