/* Görkem Hınçer kişisel site: tek dosya, dış servis yok.
   Renkler Türk bayrağından: kırmızı #E30A17 ve beyaz. Tüm renkler aşağıdaki değişkenlerden gelir. */

@font-face {
  font-family: "Atkinson";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --ink: #14171c;
  --muted: #545b66;
  --rule: #e1e4e8;
  --line: #c4cad2;
  --red: #e30a17;          /* bayrak kırmızısı: düğme, çizgiler */
  --red-hover: #b80812;
  --red-text: #c2000e;     /* beyaz zeminde okunaklı kırmızı metin */
  --on-red: #ffffff;
  --font: "Atkinson", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 68rem;
  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1014;
    --bg-soft: #161920;
    --ink: #f2f3f5;
    --muted: #a5abb5;
    --rule: #262a33;
    --line: #3a404b;
    --red-text: #ff5a63;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1014;
  --bg-soft: #161920;
  --ink: #f2f3f5;
  --muted: #a5abb5;
  --rule: #262a33;
  --line: #3a404b;
  --red-text: #ff5a63;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font);
  font-feature-settings: "zero" 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--red-text); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--bg); color: var(--ink); padding: 0.5rem 1rem; border: 2px solid var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Üst bilgi ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.bar {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand tools" "nav nav";
  align-items: center;
  gap: 0.25rem 1rem;
  padding-block: 0.9rem;
}
.brand {
  grid-area: brand;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 1.05em;
  margin-right: 0.6rem;
  background: var(--red);
  vertical-align: -0.12em;
}
.brand:hover { color: var(--ink); }
.nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 0 0.25rem; margin-inline: -0.5rem; }
.nav a {
  padding: 0.5rem 0.5rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.02rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--red-text); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); font-weight: 700; }
.theme {
  grid-area: tools;
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  font: 500 0.92rem/1.2 var(--font);
  cursor: pointer;
}
.theme:hover { border-color: var(--red); }
.theme[hidden] { display: none; }

@media (max-width: 51.99rem) {
  .nav { gap: 0; }
  .nav a { padding-inline: 0.25rem; font-size: 0.9rem; }
}
@media (max-width: 30rem) {
  .actions .btn { flex: 1 1 12rem; text-align: center; }
}

@media (min-width: 52rem) {
  .bar { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav tools"; gap: 2rem; }
  .nav { justify-content: flex-end; margin-inline: 0; }
  .nav a { padding-inline: 0.75rem; }
}

/* ---------- Düğmeler ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  border: 2px solid var(--red);
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
}
.btn-primary { background: var(--red); color: var(--on-red); }
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); color: var(--on-red); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { border-color: var(--red); color: var(--red-text); }

/* ---------- Ana sayfa: tanıtım ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.name {
  margin: 0 0 1rem;
  font-size: clamp(2.9rem, 9vw, 5.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.role { margin: 0 0 1.25rem; font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 600; line-height: 1.3; }
.intro { max-width: 34rem; margin: 0; font-size: 1.2rem; }
.portrait {
  margin: 0;
  width: min(100%, 24rem);
  justify-self: center;
  background: #ffffff;
  border-bottom: 6px solid var(--red);
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}
.portrait img { display: block; width: 100%; height: auto; }

@media (min-width: 52rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 4rem; }
  .portrait { justify-self: end; }
}

/* ---------- Ana sayfa: içerik haritası ---------- */
.hub { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--rule); background: var(--bg-soft); }
.hub h2 { margin: 0 0 0.5rem; font-size: clamp(1.7rem, 4vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.15; }
.hub-note { margin: 0; max-width: var(--measure); color: var(--muted); }

.topo { list-style: none; margin: 2.5rem 0 0; padding: 0; --gap: 1.25rem; --drop: 2.25rem; position: relative; }
.node {
  display: block;
  height: 100%;
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
}
.node h3 { margin: 0 0 0.35rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.node p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.node:hover { border-color: var(--red); color: var(--ink); }
.node:hover h3 { color: var(--red-text); }

@media (max-width: 55.99rem) {
  .topo li { position: relative; padding: 0 0 1.25rem 2.25rem; }
  .topo li::before { content: ""; position: absolute; left: 0.5rem; top: 0; bottom: 0; width: 2px; background: var(--red); }
  .topo li:first-child::before { top: -0.5rem; }
  .topo li:last-child { padding-bottom: 0; }
  .topo li:last-child::before { bottom: auto; height: 1.9rem; }
  .topo li::after { content: ""; position: absolute; left: 0.5rem; top: 1.9rem; width: 1.5rem; height: 2px; background: var(--red); }
}
@media (min-width: 56rem) {
  .topo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding-top: var(--drop); }
  .topo::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc((100% - 3 * var(--gap)) / 8);
    right: calc((100% - 3 * var(--gap)) / 8);
    height: 2px;
    background: var(--red);
  }
  .topo li { position: relative; }
  .topo li::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--drop));
    left: 50%;
    width: 2px;
    height: var(--drop);
    margin-left: -1px;
    background: var(--red);
  }
}
.hub-more { margin: 2rem 0 0; }

/* ---------- İç sayfalar ---------- */
.page-head { padding-block: clamp(2rem, 6vw, 4rem) 0.5rem; }
.page-head h1 { margin: 0 0 0.75rem; font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
.lead { max-width: var(--measure); margin: 0; font-size: 1.25rem; line-height: 1.5; }

.page-body { padding-block: 1rem clamp(2rem, 6vw, 4rem); }
.prose { max-width: var(--measure); }
.prose h2, .section h2 { margin: 2.75rem 0 0.75rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.prose h2:first-child, .section:first-child h2 { margin-top: 0; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--red); }

.about-grid { display: grid; gap: 2rem; }
.about-grid .portrait { width: 11rem; justify-self: start; }
@media (min-width: 52rem) {
  .about-grid { grid-template-columns: minmax(0, 1fr) 17rem; gap: 4rem; align-items: start; }
  .about-grid .portrait { order: 2; width: 100%; position: sticky; top: 1.5rem; }
  .about-grid .prose { order: 1; }
}

.certs { display: grid; gap: 0.25rem 2rem; margin: 0 0 1rem; max-width: 46rem; }
.certs dt { font-weight: 700; margin-top: 0.75rem; }
.certs dd { margin: 0; color: var(--muted); }
@media (min-width: 40rem) {
  .certs { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0.75rem 2rem; }
  .certs dt { margin-top: 0; }
}

/* Bağlantı satırları: eğitim, kitap, podcast */
.section { max-width: 46rem; scroll-margin-top: 1rem; }
.section > p { max-width: var(--measure); margin: 0 0 1rem; }
.rows { list-style: none; margin: 1.25rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { border-bottom: 1px solid var(--rule); }
.rows a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
}
.rows .t { display: block; font-weight: 700; }
.rows .d { display: block; margin-top: 0.15rem; font-size: 0.98rem; color: var(--muted); }
.rows .src { font-size: 0.95rem; color: var(--muted); white-space: nowrap; }
.rows.with-ic a { grid-template-columns: 1.75rem minmax(0, 1fr) auto; }
.rows .ic { width: 1.75rem; height: 1.75rem; align-self: center; color: var(--muted); }
.rows a:hover .ic { color: var(--red-text); }
.rows a:hover .t { color: var(--red-text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }

/* Haberler sayfası */
.haber-durum, .haber-aciklama, .haber-guncelleme { max-width: var(--measure); margin: 0 0 1rem; color: var(--muted); }
.haber-durum[hidden], .haber-guncelleme[hidden] { display: none; }
#haber-listesi > .section { margin-top: 2.75rem; }
#haber-listesi > .section:first-of-type { margin-top: 1.5rem; }
#haber-listesi h2 { margin-top: 0; }
.haberler .d { font-size: 0.95rem; }
.rows .d { overflow-wrap: anywhere; }
.haber-guncelleme { font-size: 0.97rem; margin-top: 1.5rem; }

/* Canlı tehdit haritası kartı (Haberler sayfası) */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.map-card { max-width: 46rem; margin: 1.5rem 0 2.5rem; border: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; }
.map-art { display: block; width: 100%; height: clamp(6.5rem, 22vw, 9.5rem); border-bottom: 4px solid var(--red); }
.map-body { padding: 1.25rem 1.25rem 1.5rem; }
.map-card h2 { margin: 0 0 0.6rem; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.map-card p { margin: 0 0 0.9rem; max-width: var(--measure); }
.map-card .map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 1.25rem 0 0; }
.map-card .map-note { font-size: 0.98rem; color: var(--muted); }
.map-src { font-size: 0.95rem; color: var(--muted); }
.map-art .pulse { transform-box: fill-box; transform-origin: center; opacity: 0.35; }
@media (min-width: 40rem) { .map-body { padding: 1.5rem 1.75rem 1.75rem; } }
@media (max-width: 30rem) { .map-card .btn { flex: 1 1 100%; text-align: center; } }
@media (prefers-reduced-motion: no-preference) {
  .map-art .arc { stroke-dasharray: 3 8; animation: map-flow 2.6s linear infinite; }
  .map-art .a2 { animation-duration: 3.2s; }
  .map-art .a3 { animation-duration: 2.2s; animation-direction: reverse; }
  .map-art .a4 { animation-duration: 3.8s; }
  .map-art .pulse { animation: map-pulse 2.2s ease-out infinite; }
}
@keyframes map-flow { to { stroke-dashoffset: -22; } }
@keyframes map-pulse { 0% { transform: scale(0.8); opacity: 0.55; } 100% { transform: scale(3.2); opacity: 0; } }

.note { max-width: var(--measure); margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 1rem; }

/* ---------- Alt bilgi ---------- */
.site-footer { margin-top: 2rem; border-top: 1px solid var(--rule); padding-block: 1.75rem; color: var(--muted); font-size: 0.97rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.foot p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--red-text); }

@media (prefers-reduced-motion: no-preference) {
  a, .btn, .node, .theme { transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease; }
}
