/* ============================================
   BESTFOODSTOEAT.COM — Shared Stylesheet
   ============================================ */

:root {
  --primary: #2D5A3D;
  --primary-light: #3d7a52;
  --primary-dark: #1f3f2a;
  --secondary: #E8A838;
  --secondary-light: #f0c060;
  --accent: #7CB342;
  --bg: #FAF9F6;
  --bg-warm: #f5f3ee;
  --text: #2C2C2C;
  --text-light: #6B7280;
  --white: #ffffff;
  --border: #e8e5df;
  --card-bg: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}

.nav-cta:hover { background: var(--primary-dark); }

.nav-cta-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
  padding: 7px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.nav-cta-outline:hover { background: var(--primary); color: var(--white) !important; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.search-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.search-icon:hover { background: var(--border); }

/* ===== PAGE HERO (compact) ===== */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 60px 24px 50px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,179,66,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  line-height: 1.6;
}

.page-hero-meta {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.page-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover { text-decoration: underline; }

/* ===== MAIN CONTENT ===== */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

.content-wrapper.full-width {
  grid-template-columns: 1fr;
  max-width: 900px;
}

.content-wrapper.narrow {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.main-content { min-width: 0; }

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: 84px;
  height: fit-content;
}

.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 16px;
  font-weight: 600;
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.toc-list a:hover {
  background: var(--bg-warm);
  color: var(--primary);
}

.toc-list a::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-light);
  flex-shrink: 0;
}

.sidebar-cta {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.sidebar-cta h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.sidebar-cta p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* ===== ARTICLE STYLES ===== */
.article h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.article h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
}

.article p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text);
}

.article ul, .article ol {
  margin: 16px 0 16px 24px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.article li {
  margin-bottom: 8px;
}

.article strong {
  font-weight: 700;
  color: var(--primary-dark);
}

/* ===== QUICK ANSWER BOX ===== */
.quick-answer {
  background: var(--bg-warm);
  border-left: 4px solid var(--primary);
  padding: 24px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0 32px;
}

.quick-answer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.quick-answer p {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0;
  color: var(--text);
}

/* ===== FOOD LIST ===== */
.food-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}

.food-list-item {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.2s;
}

.food-list-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.food-list-rank {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.food-list-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.food-list-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.5;
}

.food-list-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.food-list-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== CITATIONS ===== */
.citations {
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 48px;
}

.citations h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.citations ol {
  margin: 0;
  padding-left: 20px;
}

.citations li {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.5;
}

.citations a {
  color: var(--primary);
  text-decoration: none;
}

.citations a:hover { text-decoration: underline; }

/* ===== CITATION BADGE ===== */
.cite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: super;
  margin-left: 2px;
  text-decoration: none;
  cursor: pointer;
}

/* ===== TABLE STYLES ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.comparison-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  border-bottom: 2px solid var(--border);
  background: var(--bg-warm);
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--bg-warm);
}

.winner {
  color: var(--accent);
  font-weight: 700;
}

/* ===== MEAL PLAN ===== */
.meal-plan-day {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 20px;
}

.meal-plan-day h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--primary);
}

.meal-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.meal-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.meal-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 6px;
}

.meal-card-food {
  font-weight: 600;
  font-size: 0.95rem;
}

.meal-card-cal {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ===== NEWSLETTER INLINE ===== */
.newsletter-inline {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  margin: 48px 0;
}

.newsletter-inline h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: var(--white);
}

.newsletter-inline p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

/* ===== RELATED ARTICLES ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.related-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.related-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-light);
}

.related-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.related-card span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  cursor: pointer;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== NUTRITION CARD ===== */
.nutrition-card {
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}

.nutrition-card h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.nutrient {
  text-align: center;
}

.nutrient-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.nutrient-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-disclaimer {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 32px;
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.85rem;
}

/* ===== SECTIONS (shared) ===== */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== GRIDS ===== */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.guide-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.guide-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.guide-card:hover::before { transform: scaleX(1); }

/* Guide icon badges (shared across landing pages; index.html overrides inline) */
.guide-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.guide-icon.inflammation { background: #fef3e2; }
.guide-icon.bloodsugar { background: #e8f5e9; }
.guide-icon.heart { background: #ffebee; }
.guide-icon.brain { background: #e3f2fd; }
.guide-icon.gut { background: #f3e5f5; }
.guide-icon.sleep { background: #e0f7fa; }
.guide-icon.greens { background: #e8f5e9; }
.guide-icon.fats { background: #f9fbe7; }
.guide-icon.research { background: #e8eaf6; }
.guide-icon.nutrients { background: #e0f2f1; }
.guide-icon.safety { background: #ede7f6; }
.guide-icon.practical { background: #fff3e0; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .content-wrapper {
    grid-template-columns: 1fr;
    padding: 24px 20px 60px;
  }
  .sidebar { display: none; }
  .page-hero h1 { font-size: 1.9rem; }
  .page-hero { padding: 40px 20px 36px; }
  .section { padding: 60px 20px; }
  .section-header h2 { font-size: 1.7rem; }
  .guides-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
  .food-list-item { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .nutrition-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== NEWSLETTER CAPTURE HIDDEN (no email provider connected yet) =====
   Delete this block to restore all newsletter forms, download CTAs,
   sidebar cards, and the nav "Get the Food Fix" button. */
.nav-right { display: none !important; }
.newsletter-inline { display: none !important; }
section.newsletter { display: none !important; }
.sidebar-cta { display: none !important; }
/* ===== END NEWSLETTER HIDDEN BLOCK ===== */
