/* nigde.* shared design system — light, calm, mobile first */
:root {
  --bg: #faf8f4;          /* warm paper white: softer on the eyes than pure white */
  --surface: #ffffff;
  --ink: #1b2330;         /* near-black navy, not pure black */
  --ink-2: #4a5563;
  --muted: #6b7684;
  --line: #ebe7e0;
  --apple: #c8343f;       /* Niğde apple red: brand mark only, never for text */
  --accent: #1f4f8a;      /* overridden per site */
  --accent-soft: #e9f0f8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27, 35, 48, .04), 0 4px 16px rgba(27, 35, 48, .05);
  --max: 1040px;
  font-size: 16px;
}
body.site-news { --accent: #1f4f8a; --accent-soft: #e9f0f8; }   /* trust, seriousness */
body.site-day  { --accent: #9a5a0c; --accent-soft: #fdf2e3; }   /* warmth, optimism (AA contrast on white) */
body.site-link { --accent: #0e7268; --accent-soft: #e4f3f1; }   /* calm, reliability */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.top { padding: 22px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand b { color: var(--accent); font-weight: 700; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .92rem; padding: 6px 10px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { background: var(--accent-soft); color: var(--accent); }

/* hero */
.hero { padding: 28px 0 8px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 750; max-width: 18ch; }
.hero .lead { margin-top: 12px; font-size: clamp(1.02rem, 1.8vw, 1.15rem); color: var(--ink-2); max-width: 56ch; }

/* cards & grid */
main { flex: 1; padding-bottom: 48px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); margin-top: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.card h2 { font-size: .82rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 860px) { .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; } }

.muted { color: var(--muted); }
.small { font-size: .88rem; }
.note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 11px 18px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; padding-top: 0; }
.mail { font-weight: 600; word-break: break-all; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 22px 0 28px; font-size: .88rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top { padding: 16px 0; }
  .card { padding: 18px; }
  .nav a { padding: 6px 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise .45s ease both; }
  .grid > .card:nth-child(2) { animation-delay: .05s; } .grid > .card:nth-child(3) { animation-delay: .1s; }
  .grid > .card:nth-child(4) { animation-delay: .15s; } .grid > .card:nth-child(5) { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- components ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero .actions { margin-top: 22px; }

/* nigde.news */
.value h2 { color: var(--accent); }
.value p { color: var(--ink-2); }
.links li a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); width: 100%; }
.links li a:hover b { color: var(--accent); }

/* nigde.link */
.code-sample { font: 600 1.15rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin: 10px 0 18px; color: var(--ink-2); }
.code-sample span { color: var(--muted); font-weight: 400; }
.code-sample b { color: var(--accent); }
.peek .row { display: flex; align-items: center; gap: 8px; margin-top: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 16px; }
.peek .row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.peek .prefix { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }
.peek input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 1rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); padding: 8px 0; outline: none; }
.peek .btn { padding: 9px 16px; }
.dest { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }

/* nigde.day */
.wi { display: inline-flex; width: 28px; height: 28px; color: var(--accent); }
.wi.big { width: 64px; height: 64px; }
.weather .now { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.weather .temp { font-size: clamp(3rem, 8vw, 4.2rem); font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 6px 22px; margin: 0 0 0 auto; }
.facts div { display: flex; flex-direction: column; }
.facts dt { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 0; font-weight: 650; }
.days { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.days li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 4px; justify-items: center; text-align: center; }
.days .d { font-weight: 650; font-size: .9rem; }
.days .t { font-size: .92rem; color: var(--muted); }
.days .t b { color: var(--ink); }
.days .p { font-size: .78rem; }
.times li { justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); border-top-color: transparent; }
.times li + li { border-top: 1px solid var(--line); }
.times li b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.times li.next { background: var(--accent-soft); color: var(--accent); border-top-color: transparent; }
.times li.next + li { border-top-color: transparent; }
.events li { align-items: flex-start; }
.events .when { min-width: 92px; display: flex; flex-direction: column; }
.events .when b { color: var(--accent); }
.events .when span { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.events .et { font-weight: 650; }
@media (max-width: 560px) {
  .facts { margin: 6px 0 0; width: 100%; grid-template-columns: repeat(2, 1fr); }
  .wi.big { width: 52px; height: 52px; }
  .days { gap: 8px; }
  .days li { padding: 10px 6px; }
}

/* ---------- v2 components ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; white-space: nowrap; }
.mono b { color: var(--accent); }
.stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (max-width: 860px) { .stack { grid-column: span 12; } }

/* shortener */
.shorten { padding: 26px; }
.row.big { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 20px; }
.row.big:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.row.big input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: inherit; font-size: 1.05rem; color: var(--ink); padding: 10px 0; }
.row.big .btn { padding: 12px 22px; }
.form-error { margin-top: 12px; color: #a1262f; background: #fdecec; border-radius: var(--radius-sm); padding: 10px 14px; font-size: .95rem; }
.result { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
.short { font: 700 clamp(1.2rem, 3.4vw, 1.6rem)/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--accent); text-decoration: none; word-break: break-all; }
.dest-line { margin-top: 8px; word-break: break-all; }
@media (max-width: 560px) {
  .row.big { flex-direction: column; align-items: stretch; border-radius: var(--radius); padding: 8px; }
  .row.big input { padding: 10px 8px; }
  .row.big .btn { justify-content: center; }
  .shorten { padding: 18px; }
}

/* live strip (nigde.news) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; }
.stat:hover { border-color: var(--accent); }
.stat .wi { width: 34px; height: 34px; flex: none; }
.stat .num { font: 750 1.35rem/1 ui-sans-serif, system-ui, sans-serif; color: var(--accent); font-variant-numeric: tabular-nums; flex: none; }
.stat b { display: block; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { display: block; color: var(--muted); font-size: .8rem; }
.stat > span:last-child { min-width: 0; }

.places .pl-name { font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .92rem; }
.numbers li { padding: 0; border-top: 0; }
.numbers li + li { margin-top: 6px; }
.call { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.call:hover { background: var(--accent-soft); }
.call b { display: block; }
.call small { color: var(--muted); font-size: .82rem; }
.big-num { font: 750 1.3rem/1 ui-sans-serif, system-ui, sans-serif; color: var(--accent); min-width: 48px; font-variant-numeric: tabular-nums; }
.tip { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--accent-soft); border-color: transparent; }
.tip h2 { color: var(--accent); }
.tip p { max-width: 60ch; }

/* pharmacies (nigde.day) */
.pharm .ph { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.ph-main { min-width: 0; flex: 1 1 280px; }
.ph-name { font-weight: 650; }
.ph-note { color: #a1262f; font-size: .85rem; font-weight: 600; }
.ph-act { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 4px 0; }
.more .pharm { margin-top: 10px; }
