/* BakırçayCBS · #30DayMapChallenge 2026 */
:root {
  --bg: #f7f8f7;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --text: #1d2626;
  --muted: #5b6b6b;
  --line: #dbe3e2;
  --brand: #1f7f86;
  --brand-ink: #135a60;
  --brand-soft: #dff0f0;
  --accent: #e0832f;
  --easy: #2f8f5b;
  --mid: #b7841c;
  --hard: #c0473a;
  --group: #5a5fc4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(20,60,60,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111717;
    --surface: #182121;
    --surface-2: #1f2a2a;
    --text: #e6eeed;
    --muted: #9db0ae;
    --line: #2b3838;
    --brand: #4fb7bd;
    --brand-ink: #8fd6da;
    --brand-soft: #1d3436;
    --accent: #f0a159;
    --easy: #5cc58b;
    --mid: #e0b04a;
    --hard: #ef7d70;
    --group: #9da1f0;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin-top: 0; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: .93rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
.nav a.cta { background: var(--brand); color: #fff; }
.nav a.cta:hover { background: var(--brand-ink); color: #fff; }
@media (prefers-color-scheme: dark) { .nav a.cta { color: #0d1515; } .nav a.cta:hover { color: #0d1515; } }
@media (max-width: 640px) {
  .site-header { position: static; }
  .site-header .wrap { padding: 8px 0; gap: 8px; }
  .nav { margin-left: 0; width: 100%; }
  .nav a { padding: 6px 10px; font-size: .88rem; }
  .theme { scroll-margin-top: 12px; }
}

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .eyebrow { color: var(--brand); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }

.countdown {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); text-align: center;
}
.countdown .num { font-size: 3.2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.countdown .lbl { color: var(--muted); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--brand); color: #fff; font-weight: 700;
  padding: 12px 20px; border-radius: 999px; border: 0;
}
.btn:hover { background: var(--brand-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-ink); }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #0d1515; } }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Sections & cards */
section { padding: 36px 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
code { overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.note {
  border-left: 4px solid var(--accent); background: var(--surface);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 16px 0;
}

/* Calendar */
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.calendar > * { min-width: 0; overflow-wrap: anywhere; }
.calendar .dow { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); padding-bottom: 2px; }
.day {
  display: flex; flex-direction: column; gap: 2px; min-height: 92px;
  text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px;
  border-top: 4px solid var(--lvl, var(--line));
}
.day:hover { border-color: var(--brand); color: var(--text); }
.day .d { font-weight: 800; font-size: .85rem; color: var(--muted); }
.day .t { font-weight: 700; font-size: .86rem; line-height: 1.25; }
.day .tr { font-size: .76rem; color: var(--muted); line-height: 1.2; }
.day.empty { background: transparent; border: 0; }
.day.early { background: repeating-linear-gradient(-45deg, var(--surface), var(--surface) 8px, var(--surface-2) 8px, var(--surface-2) 16px); }
.day .tag { margin-top: auto; font-size: .72rem; font-weight: 700; color: var(--muted); }

/* Countdown grid */
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 10px; }
.cd-grid > div { background: var(--surface-2); border-radius: 10px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; }
.cd-grid .num { font-size: 2.3rem; font-variant-numeric: tabular-nums; }
.cd-grid span:last-child { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* Map anatomy */
.anatomy { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 28px; align-items: start; }
.anatomy svg { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.anatomy ol { padding-left: 0; list-style: none; counter-reset: a; margin: 0; display: grid; gap: 12px; }
.anatomy li { counter-increment: a; position: relative; padding-left: 42px; }
.anatomy li::before {
  content: counter(a); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem;
}
.anatomy li small { display: block; color: var(--muted); }
@media (max-width: 820px) { .anatomy { grid-template-columns: 1fr; } }

/* Deadline rule */
.rule-big { font-size: 1.6rem; font-weight: 800; color: var(--brand); line-height: 1.2; margin: 4px 0 8px; }

/* Resources */
.res-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.res-list li { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.res-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.res-list a { font-weight: 700; }
.res-list span { display: block; color: var(--muted); font-size: .9rem; }
.tips { display: grid; gap: 12px; margin-top: 16px; }
.tips details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.tips summary { cursor: pointer; font-weight: 700; }
.tips ol { margin: 10px 0 0; padding-left: 20px; }
@media (max-width: 700px) {
  .calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar .dow, .day.empty { display: none; }
  .day { min-height: 0; }
}

/* Levels */
.lvl-easy { --lvl: var(--easy); }
.lvl-mid { --lvl: var(--mid); }
.lvl-hard { --lvl: var(--hard); }
.lvl-group { --lvl: var(--group); }
.badge {
  display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  color: var(--lvl); border: 1.5px solid var(--lvl);
}
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin: 10px 0 16px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--lvl); margin-right: 6px; }

/* Theme cards */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 20px; }
.filters button {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
}
.filters button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (prefers-color-scheme: dark) { .filters button[aria-pressed="true"] { color: #0d1515; } }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.theme { border-top: 4px solid var(--lvl); scroll-margin-top: 90px; }
.theme .head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.theme .num { font-size: .82rem; font-weight: 800; color: var(--muted); }
.theme h3 { margin: 0; }
.theme .tr { color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.theme blockquote { margin: 0 0 10px; font-style: italic; color: var(--muted); font-size: .92rem; }
.theme dl { margin: 0; font-size: .9rem; }
.theme dt { font-weight: 700; margin-top: 8px; }
.theme dd { margin: 0; color: var(--text); }
.theme .flag { margin-top: 10px; font-size: .85rem; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; }
.theme:target { outline: 3px solid var(--brand); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 14px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}

/* Form embed */
.form-frame { width: 100%; min-height: 1400px; border: 0; border-radius: var(--radius); background: #fff; }

/* Collection */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.map-card { padding: 0; overflow: hidden; }
.map-card img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--surface-2); }
.map-card .body { padding: 14px 16px; }
.map-card .meta { font-size: .85rem; color: var(--muted); }
.empty-state { text-align: center; padding: 48px 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.site-footer .contact { display: flex; flex-direction: column; gap: 4px; }
.site-footer .contact strong { color: var(--text); }
.contact-box { margin-top: 20px; }
.contact-box h3 { margin-top: 0; }
.contact-box .btn { overflow-wrap: anywhere; }

/* Example maps */
.ornekler { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; font-size: .88rem; }
.ornekler summary { cursor: pointer; font-weight: 700; color: var(--brand-ink); }
.ornekler ul { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.ornekler li a { font-weight: 600; overflow-wrap: anywhere; }
.ornekler li span { display: block; color: var(--muted); font-size: .8rem; }
.ornekler small { color: var(--muted); }

/* İletişim ikonları */
.social { display: flex; gap: 10px; margin: 6px 0; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); border: 1px solid var(--line); text-decoration: none; }
.social a:hover, .social a:focus-visible { background: var(--brand); color: #fff; border-color: var(--brand); }
