/* NeKadarBeklerim — Yön A (Sakin & güven veren) görsel dili */
:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #15233b;
  --muted: #5b6b86;
  --muted2: #8493a8;
  --faint: #97a6bd;
  --line: #eef1f6;
  --line2: #e3e9f1;
  --accent: #2b6fe0;
  --accent-soft: #eaf1fc;
  --good: #1f9e63;
  --bad: #dc2626;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 2px 10px rgba(20,40,80,.05);
  --shadow-soft: 0 1px 3px rgba(20,40,80,.06);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }

/* header */
.site-header {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
.logo { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(150deg, #3b82f6, #1d4fc4);
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-word { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.logo-word em { color: var(--accent); font-style: normal; }

/* layout */
main { max-width: 760px; margin: 0 auto; padding: 12px 20px 60px; }
.loading, .error { padding: 48px; text-align: center; color: var(--muted2); }
.muted { color: var(--muted); }
.crumbs { font-size: 13px; color: var(--muted2); margin-bottom: 10px; }
.crumbs a:hover { color: var(--accent); }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 6px; }
h2 { font-size: 17px; font-weight: 700; margin: 0 0 14px; }

/* ---------------- hero (arama öncelikli) ---------------- */
.hero { text-align: center; padding: 30px 0 26px; }
.hero h1 { font-size: 34px; line-height: 1.12; margin-bottom: 8px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { color: var(--muted); max-width: 380px; margin: 0 auto 22px; font-size: 15px; }
.hero-search { position: relative; max-width: 520px; margin: 0 auto; }
.hero-search input {
  width: 100%; padding: 16px 20px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--line2); border-radius: var(--r);
  background: var(--card); box-shadow: var(--shadow); color: var(--ink);
}
.hero-search input::placeholder { color: var(--faint); }
.hero-search input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero-results {
  position: absolute; top: 110%; left: 0; right: 0; background: var(--card); text-align: left;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden; z-index: 20;
}
.hero-results a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600;
}
.hero-results a:last-child { border-bottom: 0; }
.hero-results a:hover, .hero-results a.active { background: var(--accent-soft); }
.hero-results small { color: var(--muted2); font-weight: 500; }
.hero-results .empty { padding: 16px 18px; color: var(--muted2); }
.hero-suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }

/* chip */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--card); border: 1px solid var(--line2); border-radius: 999px;
  padding: 8px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ink);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- popüler işlemler (satır listesi) ---------------- */
.popular { margin-top: 22px; background: var(--card); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.popular .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.popular .head span:first-child { font-size: 14px; font-weight: 700; }
.popular .head a { font-size: 13px; color: var(--accent); font-weight: 600; }
.svc-row, .service-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r);
  margin-bottom: 10px;
}
.svc-row:hover, .service-list a:hover { border-color: var(--accent); }
.svc-tile {
  width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px;
}
.svc-main { flex: 1; min-width: 0; }
.svc-main .name { font-size: 15px; font-weight: 700; }
.svc-main .sub { font-size: 12.5px; color: var(--muted2); }
.svc-val { text-align: right; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.svc-val small { font-size: 12px; color: var(--muted2); font-weight: 600; }
.svc-val.empty { font-size: 12.5px; color: var(--muted2); font-weight: 600; }

/* kategori çipleri */
.cat-chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cat-chips .muted { font-size: 13.5px; margin-right: 4px; }

/* ---------------- işlem detay: mavi hero ---------------- */
.detail-hero {
  background: var(--accent); color: #fff; border-radius: var(--r-lg);
  padding: 24px 24px 26px; margin: 4px 0 18px;
}
.detail-hero .label { font-size: 13px; font-weight: 600; opacity: .85; margin-bottom: 6px; }
.detail-hero .big {
  display: flex; align-items: flex-end; gap: 8px;
}
.detail-hero .big .num { font-size: 60px; line-height: .9; font-weight: 800; letter-spacing: -0.04em; }
.detail-hero .big .unit { font-size: 20px; font-weight: 700; margin-bottom: 8px; opacity: .85; }
.detail-hero .pill {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.15); padding: 7px 12px; border-radius: 20px;
  font-size: 12.5px; font-weight: 600;
}
.detail-hero .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #7dffc0; }
.detail-hero .range { margin-top: 12px; font-size: 13px; opacity: .9; }
.hero-city {
  margin: 4px 0 10px; padding: 8px 14px; font-size: 14px; font-weight: 600; font-family: inherit;
  color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 5l3 3 3-3' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.hero-city option { color: #15233b; }
.detail-hero.muted-hero { background: #e9eef6; color: var(--muted); }
.detail-hero.muted-hero .big .num { color: var(--ink); }

/* tıbbi/uyarı bandı */
.disclaimer {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: var(--r); padding: 11px 15px; font-size: 13px; line-height: 1.45; margin: -4px 0 14px;
}

/* son güncelleme satırı */
.updated { font-size: 12.5px; color: var(--muted2); font-family: var(--mono); margin: -6px 2px 14px; }

/* blok kart */
.block {
  background: var(--card); border-radius: var(--r-lg);
  padding: 22px; margin: 14px 0; box-shadow: var(--shadow);
}
.block .sub { font-size: 12.5px; color: var(--muted2); margin: -8px 0 16px; }

/* histogram */
.histogram { display: flex; align-items: flex-end; gap: 7px; height: 120px; }
.histogram .bar { flex: 1; background: #c2d6f2; border-radius: 6px 6px 0 0; min-height: 4px; transition: background .15s; }
.histogram .bar.peak { background: var(--accent); }
.hist-axis { display: flex; justify-content: space-between; margin-top: 9px; font-size: 11px; color: var(--faint); font-family: var(--mono); }

/* trend */
.trend-card { background: var(--bg); border-radius: var(--r); padding: 18px; }
.trend-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.trend-card .head span:first-child { font-size: 13px; font-weight: 700; }
.trend-label { font-size: 12px; font-weight: 700; }
.trend-label.good { color: var(--good); }
.trend-label.bad { color: var(--bad); }
.trend-label.neutral { color: var(--muted2); }
.trend-card svg { width: 100%; height: 56px; display: block; }

/* il tablosu */
.prov-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prov-table th, .prov-table td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); }
.prov-table th { color: var(--muted2); font-weight: 600; font-size: 12.5px; }
.prov-table td:first-child { font-weight: 600; }

/* topluluk deneyimleri */
.exp-list { display: flex; flex-direction: column; gap: 12px; }
.exp-card { border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; }
.exp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.exp-who { display: flex; align-items: center; gap: 9px; }
.exp-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--accent);
}
.exp-name { font-size: 13.5px; font-weight: 700; }
.exp-badge { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 9px; border-radius: 10px; white-space: nowrap; }
.exp-note { font-size: 13.5px; line-height: 1.5; color: #48566d; margin: 0; }
.exp-src { font-size: 11px; color: var(--faint); font-family: var(--mono); margin-top: 6px; }

/* form */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-block form { display: flex; flex-direction: column; gap: 12px; }
.form-block label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 700; }
.form-block input, .form-block select {
  padding: 12px 14px; border: 1px solid var(--line2); border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; font-family: inherit; background: var(--card); color: var(--ink);
}
.form-block input:focus, .form-block select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-block button {
  align-self: flex-start; background: var(--accent); color: #fff; border: 0;
  padding: 12px 24px; border-radius: var(--r-sm); font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.form-block button:hover { background: #1f5fce; }
.form-msg { margin: 0; font-size: 14px; font-weight: 600; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: var(--bad); }

/* footer */
.site-footer { text-align: center; padding: 28px 20px; color: var(--muted2); font-size: 12.5px; }

@media (max-width: 560px) {
  .hero h1 { font-size: 28px; }
  .detail-hero .big .num { font-size: 50px; }
}
