/* ============================================================
   Premium Pet Raw-Diet Planner
   Theme: Organic Earth (Forest Green, Bark, Linen)
============================================================ */

:root {
  --bg-main: #f9f7f1; /* Soft Linen */
  --bg-card: #ffffff;
  
  --primary: #2d5a27; /* Forest Green */
  --primary-hover: #1e3f1a;
  --primary-light: #e6f0e5;
  
  --accent: #8b5a2b; /* Bark Brown */
  
  --text-main: #2c2a29;
  --text-muted: #6b6661;
  --border-light: #e5e0d8;
  --danger: #d9453b;

  --font-sans: 'Outfit', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 75px;
}

/* ── NAV BAR ───────────── */
.site-nav {
  position: fixed; top: 0; left: 0; width: 100%; height: 75px;
  background: white; border-bottom: 1px solid var(--border-light);
  z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-main); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.5px;
}
.nav-logo-icon { color: var(--primary); font-size: 1.8rem; }

/* ── LAYOUT ────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.hero { text-align: center; margin-bottom: 50px; }
.hero h1 { font-size: 3rem; font-weight: 800; color: var(--primary); margin-bottom: 15px; letter-spacing: -1px; }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 650px; margin: 0 auto; }

.hybrid-layout {
  display: grid; grid-template-columns: 350px 1fr; gap: 30px; align-items: start;
}
@media (max-width: 900px) { .hybrid-layout { grid-template-columns: 1fr; } }

/* ── CALCULATOR BOX ────── */
.calc-box {
  background: var(--bg-card); padding: 30px; border-radius: 16px;
  border: 1px solid var(--border-light); box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}
.calc-box h2 { font-size: 1.4rem; color: var(--primary); margin-bottom: 20px; border-bottom: 2px solid var(--primary-light); padding-bottom: 10px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.form-control {
  width: 100%; padding: 12px 15px; border: 1px solid #ccc;
  border-radius: 8px; font-family: var(--font-sans); font-size: 1rem;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

.calc-btn {
  width: 100%; background: var(--primary); color: white; border: none;
  padding: 15px; border-radius: 8px; font-size: 1.1rem; font-weight: 700;
  cursor: pointer; transition: 0.2s; font-family: var(--font-sans); margin-top: 10px;
}
.calc-btn:hover { background: var(--primary-hover); }

.macro-results {
  margin-top: 25px; padding: 20px; background: var(--primary-light);
  border-radius: 8px; border: 1px solid #c3e0c0; display: none;
}
.macro-results.active { display: block; }
.macro-results h3 { font-size: 1.1rem; color: var(--primary-hover); margin-bottom: 15px; text-align: center;}
.macro-item { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 600; font-size: 1.05rem;}
.macro-item span:last-child { color: var(--primary); font-weight: 800; font-size: 1.1rem;}
.macro-total { border-top: 1px solid #a3cca0; padding-top: 10px; margin-top: 10px; font-size: 1.2rem; }

/* ── ALLERGY FILTER ARRAY ── */
.filter-section {
  background: var(--bg-card); padding: 25px 30px; border-radius: 16px;
  border: 1px solid var(--border-light); margin-bottom: 30px;
}
.filter-section h3 { margin-bottom: 15px; font-size: 1.1rem; color: var(--text-main); }
.tag-toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-btn {
  background: white; border: 2px solid var(--border-light);
  color: var(--text-muted); padding: 8px 16px; border-radius: 30px;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: 0.2s; user-select: none;
}
.tag-btn:hover { border-color: var(--danger); color: var(--danger); }
.tag-btn.active {
  background: var(--danger); border-color: var(--danger); color: white;
}

/* ── RECIPE GRID ───────── */
.results-count { font-weight: 700; color: var(--text-main); font-size: 1.2rem; margin-bottom: 20px; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.recipe-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit;
  transition: all 0.2s; display: flex; flex-direction: column;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.06); border-color: var(--primary); }
.recipe-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.recipe-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--text-main); line-height: 1.3;}
.recipe-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 15px; flex-grow: 1; }

.recipe-badging { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px;}
.badge-tag { background: #fbf0f0; color: var(--danger); padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }

/* ── INDIVIDUAL RECIPE PAGE ── */
.recipe-hero { background: white; padding: 60px 20px; border-bottom: 1px solid var(--border-light); text-align:center; }
.recipe-hero h1 { font-size: 2.5rem; margin-bottom: 15px; color: var(--primary); }
.recipe-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-top: 40px; }
@media (max-width: 768px) { .recipe-layout { grid-template-columns: 1fr; } }

.ingredients-card { background: white; border: 1px solid var(--border-light); padding: 30px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.02);}
.ingredients-list { list-style: none; }
.ingredients-list li { padding: 10px 0; border-bottom: 1px solid var(--border-light); font-weight: 500;}
.instructions-list { margin-left: 20px; }
.instructions-list li { margin-bottom: 15px; padding-left: 10px; font-size: 1.05rem; }

/* ── ADS & FOOTER ───────── */
.ad-slot { background: white; border: 2px dashed #d1d5db; color: #9ca3af; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.ad-leaderboard { width: 100%; max-width: 970px; height: 90px; margin: 30px auto; }
.ad-square { width: 100%; height: 250px; margin-top: 30px; }

.site-footer { text-align: center; padding: 40px 20px; background: white; border-top: 1px solid var(--border-light); margin-top: 60px; color: var(--text-muted); font-size: 0.9rem; }
