/* ═══════════════════════════════════════════════════════════
   NUTRITION PAGE STYLES
   Companion to styles.css
═══════════════════════════════════════════════════════════ */

/* ── HERO ────────────────────────────────────────────────── */
.nu-hero {
  background: linear-gradient(135deg, #0f172a 0%, #3b1f05 100%);
  padding: 130px 0 80px;
  text-align: center;
  color: #fff;
}
.nu-hero .container { max-width: 820px; margin: 0 auto; }
.nu-hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.nu-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-highlight { color: #fbbf24; }
.nu-hero p {
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.nu-hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.nu-pill {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.nu-pill:hover { background: #f59e0b; color: #fff; border-color: #f59e0b; }

/* ── TOXIC FOODS ─────────────────────────────────────────── */
.toxic-section {
  padding: 72px 0;
  background: #fffbeb;
  border-top: 3px solid #f59e0b;
  border-bottom: 3px solid #f59e0b;
}
.toxic-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.toxic-icon { font-size: 2.5rem; flex-shrink: 0; }
.toxic-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: #92400e;
  margin: 0 0 8px;
  line-height: 1.3;
}
.toxic-header p { color: #78350f; font-size: .95rem; margin: 0; }
.toxic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.toxic-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toxic-card.danger { border: 1px solid #fca5a5; }
.toxic-card.caution { border: 1px solid #fcd34d; }
.toxic-emoji { font-size: 2rem; }
.toxic-card h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 0; }
.toxic-card p { font-size: .85rem; color: var(--soft); line-height: 1.6; margin: 0; flex: 1; }
.danger-level {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}
.danger-level.high { background: #fee2e2; color: #991b1b; }
.danger-level.med  { background: #fef9c3; color: #854d0e; }
.toxic-footer-note {
  background: #fff;
  border: 2px solid #f59e0b;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: .9rem;
  color: var(--dark);
  text-align: center;
}
.toxic-footer-note strong { color: #92400e; }

/* ── FEEDING GUIDE ───────────────────────────────────────── */
.feeding-guide {
  padding: 80px 0;
  background: #fff;
}
.feed-table-wrap { overflow-x: auto; }
.feed-table {
  width: 100%;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 16px;
  min-width: 600px;
}
.feed-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 2fr 1.2fr 1fr;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  font-size: .88rem;
  gap: 12px;
  transition: background .15s;
}
.feed-row:last-child { border-bottom: none; }
.feed-row:hover:not(.feed-header) { background: #f8fafc; }
.feed-header {
  background: var(--dark, #0f172a);
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.size-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.size-badge.xs { background: #ede9fe; color: #5b21b6; }
.size-badge.sm { background: #dcfce7; color: #166534; }
.size-badge.md { background: #dbeafe; color: #1e40af; }
.size-badge.lg { background: #ccfbf1; color: #0f766e; }
.size-badge.xl { background: #fee2e2; color: #991b1b; }
.feed-note { font-size: .82rem; color: var(--soft); margin: 0; line-height: 1.6; }

/* ── FOOD TYPES ──────────────────────────────────────────── */
.food-types {
  padding: 80px 0;
  background: var(--light, #f8fafc);
}
.food-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.food-type-card {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.food-type-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(15,23,42,.1); }
.food-type-card.featured-food {
  border: 2px solid var(--teal);
  background: linear-gradient(135deg, #f0fdf9 0%, #fff 100%);
}
.food-type-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.food-type-icon { font-size: 2.2rem; }
.food-type-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin: 0; }
.food-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.food-pros h5, .food-cons h5 {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 8px;
}
.food-pros h5 { color: #166534; }
.food-cons h5 { color: #991b1b; }
.food-pros ul, .food-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.food-pros li, .food-cons li { font-size: .8rem; color: var(--soft); line-height: 1.4; padding-left: 14px; position: relative; }
.food-pros li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.food-cons li::before { content: '✗'; position: absolute; left: 0; color: #dc2626; font-weight: 700; }
.food-type-verdict {
  font-size: .82rem;
  font-weight: 600;
  color: var(--teal-dark, #0f766e);
  background: var(--teal-light, #ccfbf1);
  padding: 10px 14px;
  border-radius: 10px;
  line-height: 1.5;
}

/* ── NUTRITION ARTICLES ──────────────────────────────────── */
.nu-guides {
  padding: 80px 0;
  background: #fff;
}
.nu-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.nu-card {
  background: var(--light, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.nu-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.09); transform: translateY(-3px); }
.nu-card.priority {
  border: 2px solid var(--teal);
  background: linear-gradient(135deg, #f0fdf9 0%, #fff 100%);
}
.nu-card-badge {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}
.nu-card-icon { font-size: 1.8rem; }
.nu-card h4 { font-size: .98rem; font-weight: 700; color: var(--dark); margin: 0; line-height: 1.3; }
.nu-card p { font-size: .86rem; color: var(--soft); line-height: 1.55; flex: 1; margin: 0; }
.nu-link {
  display: inline-block;
  color: var(--teal);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
}
.nu-link:hover { text-decoration: underline; }

/* ── SAFE FOODS ──────────────────────────────────────────── */
.safe-foods-section {
  padding: 80px 0;
  background: var(--light, #f8fafc);
}
.safe-foods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.safe-food {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.safe-food:hover { border-color: var(--teal); box-shadow: 0 4px 16px rgba(13,148,136,.12); transform: translateY(-2px); }
.sf-emoji { font-size: 2rem; }
.safe-food strong { font-size: .88rem; font-weight: 700; color: var(--dark); }
.safe-food span { font-size: .78rem; color: var(--soft); line-height: 1.4; }

/* ── NUTRITION FACTS ─────────────────────────────────────── */
.nu-facts {
  padding: 80px 0;
  background: var(--dark, #0f172a);
}
.nu-facts .section-header h2 { color: #fff; }
.nu-facts .section-tag { background: rgba(255,255,255,.1); color: rgba(255,255,255,.92); }
.nu-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.nu-fact-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
}
.nu-fact-num { display: block; font-size: 2rem; font-weight: 800; color: #fbbf24; margin-bottom: 12px; }
.nu-fact-card p { font-size: .87rem; color: rgba(255,255,255,.88); line-height: 1.6; margin: 0; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nu-facts-grid { grid-template-columns: repeat(2, 1fr); }
  .food-pros-cons { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nu-hero { padding: 110px 0 60px; }
  .toxic-header { flex-direction: column; }
  .nu-facts-grid { grid-template-columns: 1fr 1fr; }
  .safe-foods-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .nu-facts-grid { grid-template-columns: 1fr; }
  .safe-foods-grid { grid-template-columns: 1fr 1fr; }
}
