/*
Theme Name: Lumy Food Premium
Theme URI: https://rotaresculuminita.ro
Author: RotaTech
Description: Temă WordPress culinară editorială, rapidă și responsivă pentru Lumy Food (Din Bucătăria Familiei).
Version: 1.0.0
Text Domain: lumy-food-premium
*/

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --olive: #65744D;
  --olive-dark: #4E5B3B;
  --terracotta: #B96846;
  --terracotta-dark: #9B5234;
  --text: #292722;
  --muted: #666159;
  --border: #E8E1D5;
  --shadow: 0 8px 28px rgba(41, 39, 34, 0.06);
  --radius: 16px;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Staging banner */
.staging-notice {
  background: var(--olive-dark);
  color: #FFFFFF;
  text-align: center;
  font-size: 0.85rem;
  padding: 6px 16px;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand-link:hover { text-decoration: none; }
.brand-logo {
  height: 52px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
}
.brand-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.2;
}
.brand-text span {
  font-size: 0.8rem;
  color: var(--olive);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 4px;
}
.main-nav a:hover { color: var(--terracotta); text-decoration: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
}
.search-form input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  width: 170px;
  outline: none;
}
.search-form button {
  background: var(--olive);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.search-form button:hover { background: var(--olive-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #FFFFFF; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-olive { background: var(--olive); color: #FFFFFF; }
.btn-olive:hover { background: var(--olive-dark); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }

/* Hero */
.hero-section {
  padding: 36px 0 24px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media {
  min-height: 360px;
  background: #EDE6DA;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--olive);
}
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.2;
  margin: 0;
}
.hero-excerpt { color: var(--muted); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* Ce gatim astazi bar */
.cook-today-bar {
  margin: 24px 0;
  background: linear-gradient(135deg, #F3EDE2 0%, #FFFFFF 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cook-today-bar h2 {
  font-family: var(--font-serif);
  margin: 0 0 4px 0;
  font-size: 1.3rem;
}
.cook-today-bar p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Sections & Grids */
.section-block { padding: 28px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(41,39,34,0.04);
  transition: transform 0.15s ease;
}
.cat-card:hover { transform: translateY(-2px); text-decoration: none; }
.cat-card img { width: 100%; height: 125px; object-fit: cover; background: #EDE6DA; }
.cat-card-body { padding: 12px; }
.cat-card-body strong { display: block; font-size: 0.98rem; }
.cat-card-body span { font-size: 0.8rem; color: var(--muted); }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.recipe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(41,39,34,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.recipe-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.recipe-card-img {
  display: block;
  height: 205px;
  background: #EDE6DA;
  overflow: hidden;
}
.recipe-card-img img { width: 100%; height: 100%; object-fit: cover; }
.recipe-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.recipe-cat-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--olive-dark);
  background: #EEF1E8;
  padding: 3px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.recipe-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}
.recipe-card-title a { color: var(--text); }
.recipe-card-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #F3EFE7;
}

/* Video & About */
.two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 14px rgba(41,39,34,0.04);
}
.panel-card h2 { font-family: var(--font-serif); margin-top: 0; }
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #1C1A17;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.provisional-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: #FFF3E0;
  color: #8A4B08;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Single Recipe */
.recipe-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin: 28px 0;
  box-shadow: var(--shadow);
}
.recipe-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 10px 0;
}
.recipe-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.recipe-hero-photo {
  border-radius: 16px;
  overflow: hidden;
  max-height: 500px;
  margin-bottom: 22px;
  background: #EDE6DA;
}
.recipe-hero-photo img { width: 100%; max-height: 500px; object-fit: cover; }

.recipe-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 24px;
  align-items: center;
}
.wake-status { font-size: 0.85rem; color: var(--olive-dark); font-weight: 600; }

.recipe-tools-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}
.ingredients-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.ingredients-box h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 12px 0;
}
.portion-calc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.portion-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}
.portion-btn.active {
  background: var(--olive);
  color: #FFFFFF;
  border-color: var(--olive);
}
.ing-list { list-style: none; padding: 0; margin: 0; }
.ing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.ing-list li.checked span { text-decoration: line-through; color: var(--muted); }

.recipe-body-content {
  font-size: 1.03rem;
  line-height: 1.75;
}
.recipe-body-content img {
  border-radius: 12px;
  margin: 14px auto;
}

.recipe-gallery {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.tag-chip {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

.post-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.post-nav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: block;
}

/* Cooking Mode */
body.cooking-mode {
  background: #1B1916;
  color: #FAF7F2;
}
body.cooking-mode .recipe-article {
  background: #25221E;
  border-color: #3D3831;
  color: #FAF7F2;
}
body.cooking-mode .ingredients-box {
  background: #1B1916;
  border-color: #3D3831;
}

/* Favorites Modal */
.fav-modal {
  position: fixed;
  inset: 0;
  background: rgba(41, 39, 34, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.fav-modal.open { display: flex; }
.fav-dialog {
  background: var(--surface);
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
}

/* Footer */
.site-footer {
  background: #292722;
  color: #EDE6DA;
  padding: 36px 0;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer a { color: #F2C4AE; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .two-col-section { grid-template-columns: 1fr; }
  .recipe-tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .recipe-article { padding: 18px; }
  .search-form input { width: 130px; }
  .post-nav-links { grid-template-columns: 1fr; }
}

/* Print */
@media print {
  .staging-notice, .site-header, .recipe-toolbar, .portion-calc, .post-nav-links, .comments-area, .related-recipes, .site-footer {
    display: none !important;
  }
  body { background: #FFFFFF; color: #000000; }
  .recipe-article { border: none; box-shadow: none; padding: 0; }
}

/* Cooking mode contrast fixes */
body.cooking-mode .fav-dialog { color: #292722; }
body.cooking-mode .ingredients-box,
body.cooking-mode .ingredients-box h2,
body.cooking-mode .ingredients-box label,
body.cooking-mode .ingredients-box span { color: #FAF7F2; }
body.cooking-mode .ingredients-box .portion-calc span { color: #D8D0C5 !important; }
body.cooking-mode .ing-list li.checked span { color: #B8B0A4; }
