/* Dijetopedija — Paleta A (zemljano) */
:root {
  --bg: #FAF6EF;
  --text: #2A2420;
  --text-muted: #6B625A;
  --border: #E5DDD0;
  --keto: #C1622D;
  --autofagija: #5B7553;
  --kalorijski: #B8863A;
  --card-bg: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
  font-size: 17px;
}
a { color: var(--keto); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; color: var(--keto); margin: 2rem 0 0.75rem; border-bottom: 2px solid var(--border); padding-bottom: 0.4rem; }
.pillar-autofagija h2 { color: var(--autofagija); }
img { max-width: 100%; height: auto; border-radius: 10px; }

/* Header */
.site-header { background: var(--card-bg); border-bottom: 1px solid var(--border); }
.site-header__inner { max-width: 960px; margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-header__logo { font-weight: bold; font-size: 1.3rem; color: var(--text); letter-spacing: 0.5px; }
.site-header__nav a { margin-left: 20px; color: var(--text); font-size: 0.95rem; }
.site-header__nav a:first-child { margin-left: 0; }

/* Dropdown nav */
.site-header__nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.nav-dropdown { position: relative; margin-left: 16px; }
.nav-dropdown:first-child { margin-left: 0; }
.nav-dropdown__trigger {
  background: none; border: none; font-family: inherit; font-size: 0.95rem; color: var(--text);
  cursor: pointer; padding: 8px 4px; display: flex; align-items: center; gap: 4px;
}
.nav-dropdown__trigger::after { content: "▾"; font-size: 0.7rem; color: var(--text-muted); }
.nav-dropdown__menu {
  display: none; position: absolute; top: 100%; left: 0; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 8px; min-width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08); z-index: 20;
}
.nav-dropdown__trigger[aria-expanded="true"] + .nav-dropdown__menu,
.nav-dropdown:hover .nav-dropdown__menu { display: block; }
.nav-dropdown__menu a { display: block; margin: 0; padding: 8px 10px; border-radius: 6px; font-size: 0.9rem; }
.nav-dropdown__menu a:hover { background: var(--bg); text-decoration: none; }

@media (max-width: 700px) {
  .site-header__nav { width: 100%; justify-content: space-between; }
  .nav-dropdown { margin-left: 0; }
  .nav-dropdown__menu { position: static; box-shadow: none; border: none; padding-left: 12px; }
}

/* Layout wrap */
.page-wrap { max-width: 720px; margin: 0 auto; padding: 32px 24px 64px; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb__sep { margin: 0 6px; }
.breadcrumb__current { color: var(--text); }

/* Pillar hero */
.pillar-hero { width: 100%; margin-bottom: 24px; }

/* Content */
.content p { margin: 0 0 1rem; }
.content ul, .content ol { padding-left: 1.4rem; }
.content strong { color: var(--text); }
.byline { font-size: 0.85rem; color: var(--text-muted); margin: -0.5rem 0 1.5rem; }
.byline a { color: var(--text-muted); text-decoration: underline; }
.download-button {
  display: inline-block; background: var(--keto); color: #FAF6EF; padding: 14px 28px;
  border-radius: 8px; font-weight: bold; margin: 8px 0 16px;
}
.download-button:hover { background: #A85226; text-decoration: none; }

/* Ad slots */
.ad-slot {
  margin: 2rem 0;
  padding: 12px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1EAE0;
  border: 1px dashed #D9CFC0;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: sans-serif;
}
.ad-slot::before { content: "Google Ads oglas"; }

/* FAQ */
.faq-box { margin-top: 2.5rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq-item__q { font-weight: bold; margin-bottom: 6px; }
.faq-item__a { color: var(--text); }

/* Sources */
.sources-box { margin-top: 2rem; font-size: 0.9rem; color: var(--text-muted); }
.sources-box a { color: var(--text-muted); text-decoration: underline; }
.sources-box ol { padding-left: 1.2rem; }

/* Related articles */
.related-box { margin-top: 2rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
.related-box h2 { border: none; margin-top: 0; font-size: 1.1rem; }
.related-box ul { list-style: none; padding: 0; margin: 0; }
.related-box li { padding: 6px 0; }

/* Back links */
.back-links { margin-top: 2rem; display: flex; gap: 20px; font-size: 0.9rem; flex-wrap: wrap; }

/* All topics grid (pillar page) */
.all-topics-box { margin-top: 2.5rem; }
.all-topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.all-topics-item {
  display: block; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; color: var(--text); font-size: 0.95rem;
}
.all-topics-item:hover { border-color: var(--keto); text-decoration: none; }
.pillar-autofagija .all-topics-item:hover { border-color: var(--autofagija); }
.all-topics-item__section { display: block; font-size: 0.75rem; color: var(--keto); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.pillar-autofagija .all-topics-item__section { color: var(--autofagija); }

/* Footer */
.site-footer { background: var(--card-bg); border-top: 1px solid var(--border); margin-top: 48px; }
.site-footer__inner { max-width: 960px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.site-footer__heading { font-weight: bold; margin-bottom: 10px; }
.site-footer__col a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 3px 0; }
.site-footer__bottom { text-align: center; font-size: 0.8rem; color: var(--text-muted); padding: 16px; border-top: 1px solid var(--border); }

/* Homepage */
.home-hero { max-width: 720px; margin: 0 auto; padding: 48px 24px 24px; text-align: center; }
.home-hero h1 { font-size: 2.3rem; }
.home-hero p { color: var(--text-muted); font-size: 1.1rem; }
.pillar-cards { max-width: 900px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pillar-card { display: block; background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 28px; color: var(--text); }
.pillar-card:hover { text-decoration: none; border-color: var(--keto); }
.pillar-card--autofagija:hover { border-color: var(--autofagija); }
.pillar-card h2 { margin-top: 0; border: none; padding: 0; }
.pillar-card__meta { font-size: 0.85rem; color: var(--text-muted); }
.home-section { max-width: 900px; margin: 32px auto; padding: 0 24px; }
.home-section h2 { border: none; }
.tool-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tool-card { display: block; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; color: var(--text); }
.tool-card:hover { border-color: var(--kalorijski); text-decoration: none; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
}
