/* Mama Analiz — Modern light tema, kullanıcı dostu */
:root {
  /* Renkler */
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-focus: #94a3b8;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-muted-2: #94a3b8;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-light: #e0f2fe;
  --success: #10b981;
  --success-bg: #d1fae5;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --danger: #ef4444;
  --footer-bg: #0f172a;
  --footer-text: #cbd5e1;
  --footer-muted: #94a3b8;
  /* Tipografi */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.8125rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.25rem;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  /* Boşluk & boyut */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --container: 1140px;
  --header-h: 72px;
  /* Gölge */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-4);
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: var(--text-xl);
}
.site-logo:hover { color: var(--accent) !important; text-decoration: none !important; }
.site-logo-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, #06b6d4 100%);
  color: #fff;
  border-radius: var(--radius);
  font-size: 1.25rem;
}
.site-logo-text { letter-spacing: -0.02em; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--bg); }

.site-nav { display: flex; align-items: center; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-item,
.nav-item-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-item:hover,
.nav-item-trigger:hover { color: var(--text); background: var(--bg); }
.nav-item-trigger i { font-size: 0.7rem; transition: transform .2s; }
.nav-item-trigger.is-open i { transform: rotate(180deg); }
.nav-item-admin { color: var(--warning) !important; }
.nav-item-admin:hover { color: var(--warning) !important; }

.nav-item-dropdown { position: relative; }
.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: var(--space-1);
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--text) !important;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
}
.nav-dropdown-link:hover { background: var(--bg); text-decoration: none !important; }

.nav-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: color .15s, border-color .15s, background .15s;
}
.nav-lang:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); text-decoration: none; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4);
    display: none;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: var(--space-1); }
  .nav-item-dropdown { position: static; }
  .nav-dropdown-panel {
    position: static;
    margin-top: var(--space-2);
    margin-bottom: var(--space-2);
    box-shadow: none;
    border: 1px solid var(--border);
    background: var(--bg);
  }
  .nav-dropdown-panel.is-open { opacity: 1; visibility: visible; transform: none; }
}

/* ========== MAIN ========== */
.site-main { min-height: calc(100vh - var(--header-h) - 320px); padding: var(--space-10) 0 var(--space-16); }

/* ========== HERO ========== */
.hero {
  text-align: center;
  padding: var(--space-16) 0 var(--space-12);
}
.hero-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-light);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  margin-bottom: var(--space-4);
}
.hero h1 {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  font-weight: 700;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.03em;
  line-height: var(--leading-tight);
  color: var(--text);
}
.lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: var(--leading-snug);
}

/* ========== SECTIONS ========== */
.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0 0 var(--space-6);
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Goals intro */
.goals-intro { margin-bottom: var(--space-10); }
.goals-intro-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}
.goals-intro-card h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 var(--space-3);
  color: var(--text);
}
.goals-intro-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

/* Goals Top 10 */
.goals-top10 { margin-bottom: var(--space-12); }
.goal-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow);
}
.goal-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.goal-block-header h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.goal-block-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent) !important;
  text-decoration: none !important;
}
.goal-block-link:hover { text-decoration: underline !important; }
.goal-empty { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }
.goal-top-list { list-style: none; margin: 0; padding: 0; }
.goal-top-list li { margin: 0; border-bottom: 1px solid var(--border); }
.goal-top-list li:last-child { border-bottom: none; }
.goal-product-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  color: var(--text);
  text-decoration: none !important;
  transition: background .15s;
  border-radius: var(--radius-sm);
}
.goal-product-row:hover { background: var(--bg); text-decoration: none !important; }
.goal-rank {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
}
.goal-product-name { flex: 1; min-width: 0; font-weight: 500; }
.goal-score {
  flex-shrink: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--success);
  font-size: var(--text-base);
}

/* Goals grid (kartlar) */
.goals-grid { margin-bottom: var(--space-12); }
.goals-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
}
.goal-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  text-decoration: none !important;
  font-weight: 600;
  font-size: var(--text-base);
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.goal-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none !important;
}

/* Recent products */
.recent-products { margin-bottom: var(--space-12); }
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}
.product-card {
  display: block;
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  text-decoration: none !important;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  text-decoration: none !important;
}
.product-name { font-weight: 500; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: var(--space-16);
}
.footer-top { padding: var(--space-12) 0; }
.footer-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.footer-wrap .footer-wrap { padding: 0; }
.footer-top .footer-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 768px) {
  .footer-top .footer-wrap { grid-template-columns: 1fr; }
}
.footer-brand { max-width: 280px; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}
.footer-name {
  display: block;
  font-weight: 700;
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: var(--space-2);
}
.footer-tagline {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--footer-muted);
  line-height: 1.5;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
@media (max-width: 640px) {
  .footer-links { grid-template-columns: 1fr 1fr; }
}
.footer-col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  margin: 0 0 var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a {
  color: var(--footer-text);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--space-4) 0;
}
.footer-bottom .footer-wrap { display: block; }
.footer-copy {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--footer-muted);
}

/* ========== DISCLAIMER ========== */
.disclaimer-box {
  background: var(--warning-bg);
  border: 1px solid rgba(245, 158, 11, .3);
  padding: var(--space-5) 0;
  margin-top: 0;
}
.disclaimer-box .container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
.disclaimer-title { font-weight: 600; margin: 0 0 var(--space-2); color: #b45309; font-size: var(--text-sm); }
.disclaimer-box ul { margin: 0; padding-left: var(--space-5); color: var(--text); font-size: var(--text-sm); line-height: 1.6; }

/* ========== PRODUCT PAGE ========== */
.breadcrumb {
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted) !important; }
.breadcrumb a:hover { color: var(--accent) !important; }
.meta { color: var(--text-muted); margin: 0 0 var(--space-4); font-size: var(--text-sm); }
.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow);
}
.score-total { font-size: 2.5rem; font-weight: 700; margin-bottom: var(--space-4); color: var(--text); }
.score-max { color: var(--text-muted); font-size: var(--text-xl); }
.score-row {
  margin: var(--space-3) 0;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.score-row:last-child { border-bottom: none; }
.score-category { font-weight: 600; display: block; margin-bottom: var(--space-1); color: var(--text); }
.reasons { margin: var(--space-1) 0 0; padding-left: var(--space-5); font-size: var(--text-sm); color: var(--text-muted); }
.data-used { font-size: var(--text-xs); color: var(--text-muted-2); margin-top: var(--space-1); }
.warnings .warning { color: #b45309; margin: var(--space-2) 0; }
.ingredients .raw-text, .nutrition ul { margin: var(--space-2) 0; }

/* ========== COMPARE ========== */
.compare-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: var(--space-4) 0;
  align-items: flex-end;
}
.compare-form label { display: flex; flex-direction: column; gap: var(--space-1); font-weight: 500; font-size: var(--text-sm); }
.compare-form input {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: var(--text-base);
  min-width: 200px;
}
.compare-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.compare-form button,
.btn-primary {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.compare-form button:hover,
.btn-primary:hover { background: var(--accent-hover); }
.side-by-side { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); margin: var(--space-6) 0; }
@media (max-width: 640px) { .side-by-side { grid-template-columns: 1fr; } }
.compare-result .winner { font-weight: 600; margin-top: var(--space-4); }

/* ========== GOAL SHOW ========== */
.page-goal .goal-desc { color: var(--text-muted); margin-bottom: var(--space-6); }
.page-goal .goal-products { list-style: none; padding: 0; margin: 0; }
.page-goal .goal-products li { margin-bottom: var(--space-2); }
.page-goal .goal-products a { font-weight: 500; }
.page-goal .goal-products .score { margin-left: var(--space-2); color: var(--success); font-variant-numeric: tabular-nums; }
.page-goal .faq-item { margin-bottom: var(--space-4); }
.page-goal .faq-item h3 { font-size: var(--text-base); margin: 0 0 var(--space-1); }

/* ========== LOADER & TOAST ========== */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(248, 250, 252, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loader-overlay[hidden] { display: none !important; }
.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--footer-bg);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  max-width: 360px;
  font-size: var(--text-sm);
}
.toast:empty { display: none; }
