/* hamzaozdemir.dev — sade, tek sütun, sakin */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
  --button: #0071e3;
  --button-hover: #0077ed;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --col: 680px;
}
html.koyu {
    --bg: #000000;
    --bg-soft: #161617;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --faint: #86868b;
    --line: #424245;
    --link: #2997ff;
    --button: #0071e3;
    --button-hover: #0077ed;
    --nav-bg: rgba(22, 22, 23, 0.8);
  }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.53;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }

.col { max-width: var(--col); margin: 0 auto; padding: 0 22px; }

/* Üst çubuk */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .col {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; max-width: 980px;
}
.nav .name { color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.nav .name:hover { text-decoration: none; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--text); opacity: 0.8; font-size: 13px; letter-spacing: -0.01em; }
.nav ul a:hover { opacity: 1; text-decoration: none; }
.nav ul a[aria-current="page"] { opacity: 1; font-weight: 600; }

/* Giriş */
.intro { text-align: center; padding: 88px 0 72px; }
.intro h1 {
  font-family: var(--display);
  font-size: 48px; line-height: 1.08; font-weight: 600; letter-spacing: -0.003em;
  margin: 0 0 12px;
}
.intro .sub {
  font-family: var(--display);
  font-size: 21px; line-height: 1.38; color: var(--muted); letter-spacing: 0.011em;
  max-width: 520px; margin: 0 auto 28px;
}
.actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pill {
  display: inline-block; font-size: 15px; line-height: 1.2; letter-spacing: -0.016em;
  padding: 11px 22px; border-radius: 980px;
  border: 1px solid var(--button); color: var(--button);
}
.pill:hover { text-decoration: none; background: var(--button); color: #fff; }
.pill.fill { background: var(--button); color: #fff; }
.pill.fill:hover { background: var(--button-hover); border-color: var(--button-hover); }

/* Sayfa başlığı (alt sayfalar) */
.page-head { padding: 72px 0 40px; }
.page-head h1 {
  font-family: var(--display);
  font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: 0;
  margin: 0 0 10px;
}
.page-head p { font-size: 19px; color: var(--muted); margin: 0; letter-spacing: 0.012em; }

/* Bölümler */
.block { padding: 0 0 64px; }
.block h2 {
  font-size: 13px; font-weight: 600; text-transform: none; color: var(--muted);
  letter-spacing: -0.01em; margin: 0 0 8px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* Blog tarzı liste */
.posts { list-style: none; margin: 0; padding: 0; }
.post { padding: 20px 0; border-bottom: 1px solid var(--line); }
.post time { display: block; font-size: 13px; color: var(--faint); margin-bottom: 4px; }
.post h3 { font-size: 19px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; letter-spacing: 0.012em; }
.post h3 a { color: var(--text); }
.post h3 a:hover { color: var(--link); text-decoration: none; }
.post p { color: var(--muted); font-size: 15px; line-height: 1.47; margin: 0; letter-spacing: -0.016em; }
.more { display: inline-block; margin-top: 16px; font-size: 15px; }
.more::after { content: " ›"; }

/* Gri kutu */
.panel {
  background: var(--bg-soft); border-radius: 18px;
  padding: 32px 32px 30px; margin: 0 0 20px;
}
.panel h3 {
  font-family: var(--display);
  font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: 0.009em; margin: 0 0 6px;
}
.panel .meta { font-size: 13px; color: var(--faint); margin: 0 0 14px; }
.panel p { font-size: 17px; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.panel ul { margin: 0 0 1em; padding-left: 20px; color: var(--text); }
.panel li { margin: 4px 0; }

/* Yayın listesi */
.refs { margin: 0; padding: 0 0 0 22px; }
.refs li { padding: 0 0 26px; }
.refs .t { font-weight: 600; letter-spacing: -0.01em; }
.refs .t a { color: var(--text); }
.refs .t a:hover { color: var(--link); text-decoration: none; }
.refs .i { font-size: 14px; color: var(--muted); margin-top: 4px; }
.refs details { margin-top: 8px; }
.refs summary { cursor: pointer; font-size: 14px; color: var(--link); list-style: none; }
.refs summary::-webkit-details-marker { display: none; }
.refs summary::after { content: " ›"; }
.refs details[open] summary::after { content: " ⌄"; }
.refs details p { font-size: 15px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }

.quiet { font-size: 15px; color: var(--muted); }

/* Alt bilgi */
.foot { background: var(--bg-soft); padding: 18px 0 26px; font-size: 12px; line-height: 1.33; color: var(--muted); letter-spacing: -0.01em; }
.foot .col { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: 980px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* Küçük yuvarlak görsel */
.thumb {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 14px; overflow: hidden;
  background: var(--tint, var(--bg-soft)); display: block;
}
.thumb img { width: 100%; height: 100%; display: block; }
.t-radar { --tint: #fff3ec; }
.t-gnss { --tint: #f2f0ff; }
.t-lte { --tint: #edf8f2; }
.t-ethernet { --tint: #fff7e4; }
html.koyu .t-radar, html.koyu .t-gnss, html.koyu .t-lte, html.koyu .t-ethernet { --tint: #1d1d1f; }
.post { display: flex; gap: 16px; align-items: flex-start; }
.post .text { min-width: 0; }
.panel-head { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.panel-head .thumb { width: 72px; height: 72px; border-radius: 16px; background: var(--bg); }
.panel-head h3 { margin: 0 0 2px; }
.panel-head h3 a { color: var(--text); }
.panel-head h3 a:hover { color: var(--link); text-decoration: none; }
.panel-head .meta { margin: 0; }

/* Proje sayfası */
.hero-art { width: 148px; height: 148px; margin: 0 0 22px; border-radius: 32px; overflow: hidden; background: var(--tint); }
.hero-art img { width: 100%; height: 100%; display: block; }
.article { padding-bottom: 56px; }
.article h2 { font-size: 24px; font-weight: 600; line-height: 1.17; letter-spacing: 0.009em; margin: 44px 0 12px; }
.article p, .article li { font-size: 17px; }
.article ul { padding-left: 20px; }
.article li { margin: 6px 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; padding: 22px 26px; background: var(--bg-soft); border-radius: 18px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.back { display: inline-block; font-size: 15px; margin-top: 8px; }
.back::before { content: "‹ "; }

/* Kenar görselleri: yalnız geniş ekranda, kaydırdıkça yumuşak geçiş */
.side-art { display: none; }
@media (min-width: 1180px) {
  main { position: relative; z-index: 1; }
  .side-art {
    --m: calc((100vw - 724px) / 2);
    --w: min(300px, calc(var(--m) - 40px));
    display: block; position: fixed; z-index: 0; pointer-events: none;
    width: var(--w); height: calc(var(--w) * 2); top: calc(50% - var(--w) + 24px);
  }
  .side-art.right { right: calc((var(--m) - var(--w)) / 2); }
  .side-art.left { left: calc((var(--m) - var(--w)) / 2); }
  .side-art { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
  .side-art .stack {
    position: absolute; inset: 0; animation: drift 14s ease-in-out infinite alternate;
  }
  .side-art.left .stack { animation-duration: 17s; animation-direction: alternate-reverse; }
  .side-art img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; transform: translateY(46px) scale(0.94) rotate(-1.5deg);
    transition: opacity 1.6s ease, transform 2.2s cubic-bezier(0.16, 0.8, 0.2, 1);
  }
  .side-art.left img { transform: translateY(46px) scale(0.94) rotate(1.5deg); }
  .side-art img.on { opacity: 1; transform: none; animation: breathe 9s ease-in-out 2.2s infinite alternate; }
  @keyframes drift { from { transform: translateY(-16px); } to { transform: translateY(16px); } }
  @keyframes breathe { from { transform: scale(1); } to { transform: scale(1.035); } }
  .has-side .hero-art { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .side-art img, .side-art.left img, .side-art img.on { transition: none; transform: none; animation: none; }
  .side-art .stack { animation: none; }
  .side-art { transform: none; }
}
/* Proje sayfası görselleri */
.fig { margin: 28px 0; }
.fig img { display: block; width: 100%; height: auto; border-radius: 18px; background: #fff; }
.fig.chart img { border: 1px solid var(--line); padding: 14px; }
.fig figcaption { font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 10px; padding: 0 4px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.fig.wide { margin-left: -60px; margin-right: -60px; }
@media (max-width: 860px) { .fig.wide { margin-left: 0; margin-right: 0; } }

@media (max-width: 600px) {
  .thumb { width: 56px; height: 56px; border-radius: 12px; }
  .panel-head .thumb { width: 60px; height: 60px; border-radius: 14px; }
  .hero-art { width: 112px; height: 112px; border-radius: 26px; }
  .facts { grid-template-columns: 1fr; gap: 2px; padding: 18px 20px; }
  .facts dd { margin-bottom: 10px; }
  .intro { padding: 60px 0 52px; }
  .intro h1 { font-size: 36px; }
  .intro .sub { font-size: 19px; }
  .page-head { padding: 48px 0 28px; }
  .page-head h1 { font-size: 32px; }
  .panel { padding: 24px 22px; border-radius: 16px; }
  .panel h3 { font-size: 21px; }
  .nav ul { gap: 18px; }
}

.article h3 { font-size: 19px; font-weight: 600; line-height: 1.25; margin: 30px 0 8px; }
.article .lead { font-size: 19px; line-height: 1.5; }


/* Kısa sayfalarda alt bilgi en altta kalsın; kenar görselleri alt bilginin altında kalsın */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
.foot { position: relative; z-index: 2; }
/* "Türkçe özet" satırı liste numarasını artırmasın */
.refs summary { display: block; }
/* Koyu kipte pastel zeminler gri leke gibi durmasın: renkleri koru, zemini koyulaştır */


html.koyu .hero-art img, html.koyu .thumb img { filter: none; }

/* ---- Fable incelemesi (05.12) ---- */
/* Windows/Android'de Segoe UI sıkışmasın: harf aralığı yalnız Apple yazı tipinde dar */
body { letter-spacing: -0.01em; }
@supports (font: -apple-system-body) { body { letter-spacing: -0.022em; } }
.article h2 { font-size: 28px; margin-top: 56px; }
.facts, .article ul, .kisaca { font-variant-numeric: tabular-nums; }
/* "Kısaca" kutusu: dört satır, ilk ekranda özet */
.kisaca { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 8px;
  padding: 20px 24px; border: 1px solid var(--line); border-radius: 18px; font-size: 15px; line-height: 1.45; }
.kisaca dt { font-weight: 600; }
.kisaca dd { margin: 0; color: var(--muted); }
.icindekiler { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.icindekiler a { color: var(--muted); }
.icindekiler a:hover { color: var(--link); }
/* Sonuç başında büyük sayılar */
.sayilar { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 8px 0 18px; }
.sayilar div { font-size: 13px; color: var(--muted); }
.sayilar b { display: block; font-size: 30px; line-height: 1.1; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
/* Şekiller: tıklayınca tam boy */
.fig a.tam { display: block; cursor: zoom-in; }
html.koyu .fig img { filter: brightness(0.92); }
/* Önceki / sonraki proje */
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.pager a { display: block; max-width: 48%; }
.pager span { display: block; font-size: 12px; color: var(--muted); }
.pager .sonraki { text-align: right; margin-left: auto; }
/* Klavye odağı */
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.gec { position: absolute; left: -9999px; }
.gec:focus { left: 12px; top: 12px; z-index: 100; background: var(--bg); padding: 8px 12px; }
@media (max-width: 600px) { .kisaca { grid-template-columns: 1fr; gap: 0; } .kisaca dd { margin-bottom: 8px; } .sayilar b { font-size: 24px; } }
.gallery img { height: auto; }
.article img { max-width: 100%; }

.article ul.kaynaklar { font-size: 14px; color: var(--muted); }
.article ul.kaynaklar li { margin-bottom: 8px; }

/* Tema düğmesi */
.nav .tema-dugme { background: none; border: 0; padding: 4px; margin: 0; cursor: pointer; color: var(--muted);
  display: inline-flex; align-items: center; border-radius: 8px; }
.nav .tema-dugme:hover { color: var(--text); }
.nav .tema-dugme svg { width: 16px; height: 16px; }
.tema-dugme .gunes { display: none; }
html.koyu .tema-dugme .gunes { display: block; }
html.koyu .tema-dugme .ay { display: none; }

/* ---- Proje sayfası: yazı boyunca akan desen ---- */
.akis { display: none; }
@media (min-width: 1180px) {
  .akis {
    --m: calc((100vw - 724px) / 2);
    --w: min(240px, calc(var(--m) - 70px));
    display: block; position: absolute; z-index: 0; pointer-events: none; width: var(--w);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 140px, #000 calc(var(--goster, 0px) - 220px), transparent var(--goster, 0px));
            mask-image: linear-gradient(180deg, transparent 0, #000 140px, #000 calc(var(--goster, 0px) - 220px), transparent var(--goster, 0px));
    opacity: 0; transition: opacity 1.2s ease;
  }
  .akis.hazir { opacity: 1; }
  .akis.left { left: calc((var(--m) - var(--w)) / 2); }
  .akis.right { right: calc((var(--m) - var(--w)) / 2); }
  .akis svg { display: block; }
  .akis .c { fill: none; stroke: var(--cizgi); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
  .akis .h { fill: none; stroke: var(--cizgi); stroke-width: 1.4; }
  .akis .hi { fill: none; stroke: var(--cizgi); stroke-width: 0.7; stroke-opacity: 0.45; }
  .akis .b { stroke: var(--cizgi); stroke-width: 7; stroke-linecap: round; }
  .akis .p { stroke: var(--cizgi); stroke-width: 5; stroke-linecap: round; }
  .akis .n { fill: var(--nokta); }
  .akis .v { fill: var(--vurgu); }
  .akis .r0 { fill: none; stroke: var(--cizgi); stroke-width: 0.8; stroke-opacity: 0.45; }
  .akis .r1 { fill: var(--cizgi); fill-opacity: 0.35; }
}
.a-radar    { --zemin: #fbe6dc; --cizgi: #d4754f; --nokta: #c4492e; --vurgu: #c4492e; }
.a-gnss     { --zemin: #ebe7fb; --cizgi: #7d70d8; --nokta: #3b2fa0; --vurgu: #3b2fa0; }
.a-lte      { --zemin: #e2f3eb; --cizgi: #4fb48a; --nokta: #2e8a63; --vurgu: #e2679a; }
.a-ethernet { --zemin: #fbf0d4; --cizgi: #cf9a2c; --nokta: #b07c12; --vurgu: #b07c12; }
html.koyu .a-radar    { --zemin: #241310; --cizgi: #ff9f7c; --nokta: #ffc2a8; --vurgu: #ffc2a8; }
html.koyu .a-gnss     { --zemin: #17142b; --cizgi: #a99cff; --nokta: #e4deff; --vurgu: #e4deff; }
html.koyu .a-lte      { --zemin: #0f2219; --cizgi: #6fe3b2; --nokta: #b8ffe0; --vurgu: #ff9cc4; }
html.koyu .a-ethernet { --zemin: #241c0b; --cizgi: #f0bf55; --nokta: #ffe1a0; --vurgu: #ffe1a0; }
.akis svg { opacity: 0.75; }
html.koyu .akis svg { opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .akis { transition: none; } }
/* ---- Görsellik: kahraman şekil, ikili şekil, ayrıntı açılırı, iki katmanlı altyazı ---- */
.fig.kahraman { margin: 28px 0 36px; }
.fig.kahraman img { width: 100%; max-width: 520px; margin: 0 auto; display: block; border-radius: 22px; }
.fig.kahraman figcaption { text-align: center; max-width: 560px; margin: 12px auto 0; }
.fig.kahraman.genis img { max-width: none; border-radius: 14px; }
@media (max-width: 640px) { .fig.kahraman.genis img { max-width: 420px; } }
.fig figcaption b { display: block; color: var(--text); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.ikili .fig { margin: 0; }
@media (max-width: 640px) { .ikili { grid-template-columns: 1fr; } }
details.ayrinti { margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
details.ayrinti summary { cursor: pointer; padding: 12px 0; font-size: 14px; color: var(--muted); list-style: none; }
details.ayrinti summary::-webkit-details-marker { display: none; }
details.ayrinti summary::before { content: "+"; display: inline-block; width: 18px; color: var(--link); font-weight: 600; }
details.ayrinti[open] summary::before { content: "−"; }
details.ayrinti .fig { margin: 4px 0 16px; }
/* Telefonda hiçbir görsel yatay kaydırma istemesin: hepsi ekran genişliğine sığar, ayrıntı için dokununca tam boy açılır */
@media (max-width: 640px) {
  .fig, .fig a.tam, .fig picture { max-width: 100%; overflow: hidden; }
  .fig img { max-width: 100% !important; height: auto; }
}
/* ---- Yayın öncesi düzeltmeler (06.12) ---- */
html.koyu .fig.chart img { filter: brightness(0.85) contrast(1.06); }
main:has(.fig.kahraman) .page-head .hero-art { display: none; }
html.koyu .pill:not(.fill) { color: var(--link); border-color: var(--link); }
.nav ul a { display: inline-block; padding: 8px 0; }
