/* ==========================================================================
   İsmail Hakkı Aydın — pastel TUI
   ========================================================================== */

:root {
  --bg: #faf7f2;
  --bg-dot: rgba(56, 53, 74, 0.07);
  --surface: #ffffff;
  --surface-2: #f6f1ea;
  --surface-3: #efe8de;
  --line: #ebe4da;
  --line-strong: #dcd2c4;
  --ink: #38354a;
  --ink-2: #5a566d;
  --muted: #8a8699;
  --faint: #bcb7c6;

  --pink: #f6c3d0;
  --peach: #f8d4b2;
  --lemon: #f2e6a6;
  --mint: #bfe6d3;
  --sky: #c0dbf3;
  --lilac: #d9ccf7;

  --pink-ink: #bd5479;
  --peach-ink: #b56a2a;
  --lemon-ink: #8f7816;
  --mint-ink: #2b8660;
  --sky-ink: #3473ab;
  --lilac-ink: #7154c2;

  --shadow: 0 1px 2px rgba(60, 45, 90, 0.04), 0 14px 34px -18px rgba(70, 50, 110, 0.22);
  --shadow-lift: 0 2px 4px rgba(60, 45, 90, 0.05), 0 22px 44px -20px rgba(70, 50, 110, 0.32);
  --radius: 20px;
  --radius-sm: 12px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --tile-filter: sepia(0.25) saturate(1.25) hue-rotate(200deg) brightness(1.05) contrast(0.9);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1a26;
    --bg-dot: rgba(255, 255, 255, 0.045);
    --surface: #23222f;
    --surface-2: #2a2939;
    --surface-3: #333144;
    --line: #34324a;
    --line-strong: #45425e;
    --ink: #ece9f6;
    --ink-2: #c9c5d9;
    --muted: #9f9bb4;
    --faint: #67637f;
    --pink: #e8a9bb;
    --peach: #eebf98;
    --lemon: #e0d38e;
    --mint: #9fd4bb;
    --sky: #9fc2e4;
    --lilac: #bba9ea;
    --pink-ink: #f5b3c6;
    --peach-ink: #f4c39a;
    --lemon-ink: #ecdc8a;
    --mint-ink: #9fe0c0;
    --sky-ink: #a9cdf2;
    --lilac-ink: #c7b6f7;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px -20px rgba(0, 0, 0, 0.8);
    --tile-filter: saturate(0.6) hue-rotate(15deg) brightness(1.05);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1a26;
  --bg-dot: rgba(255, 255, 255, 0.045);
  --surface: #23222f;
  --surface-2: #2a2939;
  --surface-3: #333144;
  --line: #34324a;
  --line-strong: #45425e;
  --ink: #ece9f6;
  --ink-2: #c9c5d9;
  --muted: #9f9bb4;
  --faint: #67637f;
  --pink: #e8a9bb;
  --peach: #eebf98;
  --lemon: #e0d38e;
  --mint: #9fd4bb;
  --sky: #9fc2e4;
  --lilac: #bba9ea;
  --pink-ink: #f5b3c6;
  --peach-ink: #f4c39a;
  --lemon-ink: #ecdc8a;
  --mint-ink: #9fe0c0;
  --sky-ink: #a9cdf2;
  --lilac-ink: #c7b6f7;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px -20px rgba(0, 0, 0, 0.8);
  --tile-filter: saturate(0.6) hue-rotate(15deg) brightness(1.05);
  color-scheme: dark;
}

/* ─── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 44px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
kbd {
  font-family: var(--mono);
  font-size: 0.72em;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  background: var(--surface);
  color: var(--ink-2);
}
::selection { background: var(--lilac); color: #2a2640; }
:focus-visible { outline: 2px dashed var(--lilac-ink); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 6px 12px; border-radius: 8px; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.shell { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ─── Top bar ──────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar__inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand__glyph {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--lilac); color: #2e2a44; font-size: 13px; font-weight: 800;
}
.brand__dim { color: var(--muted); font-weight: 500; }

.tabs {
  display: flex; gap: 4px; margin-left: auto;
  padding: 4px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 10px;
  text-decoration: none; font-size: 13px; color: var(--muted); white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.tabs a kbd { border: 0; padding: 0; background: none; color: var(--faint); font-size: 11px; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tabs a.is-active kbd { color: var(--lilac-ink); }

.lang-btn {
  flex: none; display: inline-flex; gap: 2px; padding: 3px; height: 38px; align-items: stretch;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--muted);
}
.lang-btn span { display: grid; place-items: center; padding: 0 8px; border-radius: 9px; transition: background 0.2s, color 0.2s; }
.lang-btn:hover span:not(.is-on) { color: var(--ink); }
.lang-btn span.is-on { background: var(--lilac); color: #2e2a44; }

.theme-btn {
  flex: none; width: 38px; height: 38px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  display: grid; place-items: center;
}
.theme-btn:hover { background: var(--surface-3); }
.theme-btn__icon {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--lemon-ink);
  box-shadow: inset -5px -3px 0 0 var(--surface-2);
  transition: box-shadow 0.3s, background 0.3s;
}
:root[data-theme="dark"] .theme-btn__icon { box-shadow: inset 0 0 0 0 var(--surface-2); background: var(--lemon); }

/* ─── Window chrome ────────────────────────────────────── */
.win {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.win__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--pink); }
.dots i:nth-child(2) { background: var(--lemon); }
.dots i:nth-child(3) { background: var(--mint); }
.win__title { flex: 1; text-align: center; color: var(--ink-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__meta { color: var(--faint); }
h2.win__title { margin: 0; font-size: inherit; line-height: inherit; letter-spacing: inherit; }
.win__body { padding: 28px 32px 32px; }

.section { margin: 36px 0; }

/* ─── Prompt ───────────────────────────────────────────── */
.prompt { margin: 0 0 22px; font-size: 14px; color: var(--muted); word-break: break-word; }
.ps1 .u { color: var(--mint-ink); font-weight: 700; }
.ps1 .h { color: var(--sky-ink); font-weight: 700; }
.ps1 .p { color: var(--lilac-ink); font-weight: 700; }
.ps1 .d { color: var(--pink-ink); font-weight: 700; margin: 0 8px 0 4px; }
.cmd { color: var(--ink); }
.caret {
  display: inline-block; width: 0.6em; height: 1.15em; margin-left: 3px;
  vertical-align: -0.2em; background: var(--lilac-ink); border-radius: 2px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.prompt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.prompt-row .prompt { margin: 0; }

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
  min-height: calc(100vh - 140px); padding: 56px 0 40px;
}
.hero__name {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 800;
  text-wrap: balance;
}
.hero__name .hl {
  background: linear-gradient(100deg, var(--pink-ink), var(--lilac-ink) 55%, var(--sky-ink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__role {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 14px; color: var(--ink-2);
}
.hero__role .pill {
  padding: 3px 11px; border-radius: 999px; font-size: 12.5px;
  background: color-mix(in srgb, var(--mint) 60%, transparent); color: var(--mint-ink);
}
.hero__role .pill::before { content: "●"; margin-right: 6px; font-size: 9px; vertical-align: 2px; animation: blink 2s steps(1) infinite; }
.loc {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 12px 3px 10px; border-radius: 999px; font-size: 12.5px;
  background: color-mix(in srgb, var(--sky) 55%, transparent); color: var(--sky-ink); font-weight: 500;
}
.loc__dot {
  position: relative; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--sky-ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--surface) 70%, transparent);
  animation: locBlink 1.6s ease-in-out infinite;
}
.loc__dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--sky-ink); animation: ping 1.6s ease-out infinite;
}
@keyframes locBlink { 50% { opacity: 0.35; } }
.hero__role { flex-wrap: wrap; }
.hero__tagline { max-width: 52ch; margin: 0 0 30px; color: var(--ink-2); font-size: 16px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center;
  padding: 11px 18px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--surface);
  text-decoration: none; font-weight: 500; font-size: 14px; color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--solid { background: var(--lilac); border-color: transparent; color: #2e2a44; }

/* neofetch */
.neo { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: start; }
.neo__avatar {
  aspect-ratio: 1; border-radius: 22px; overflow: hidden; position: relative;
  background:
    radial-gradient(circle at 25% 20%, var(--pink) 0 30%, transparent 60%),
    radial-gradient(circle at 80% 30%, var(--sky) 0 25%, transparent 60%),
    radial-gradient(circle at 50% 90%, var(--mint) 0 30%, transparent 65%),
    var(--lilac);
  display: grid; place-items: center;
  font-size: 46px; font-weight: 800; letter-spacing: -0.05em; color: #2e2a44;
}
.neo__avatar img { width: 100%; height: 100%; object-fit: cover; }
/* fotoğraf yokken yer tutucu (content.js → profile.avatar boş) */
.neo__avatar:has(.ph-avatar) {
  background: var(--surface-2) radial-gradient(var(--line-strong) 1px, transparent 1.3px) 0 0 / 11px 11px;
  border: 1px solid var(--line);
}
.neo__avatar:has(.ph-avatar)::after {
  content: ""; position: absolute; inset: 8px; border: 1.5px dashed var(--line-strong); border-radius: 16px; pointer-events: none;
}
.ph-avatar { width: 60%; margin-bottom: 16px; fill: color-mix(in srgb, var(--lilac) 80%, var(--surface)); }
.ph-cam {
  position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); color: var(--lilac-ink);
}
.ph-cam svg { width: 14px; height: 14px; }
.neo__avatar:has(.ph-avatar) small {
  z-index: 1; bottom: 14px; padding: 2px 9px; border-radius: 999px; opacity: 1;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.neo__avatar small { position: absolute; bottom: 8px; font-size: 10px; font-weight: 500; letter-spacing: 0; opacity: 0.6; }
.neo__title { font-weight: 700; font-size: 15px; }
.neo__title .u { color: var(--mint-ink); }
.neo__title .h { color: var(--sky-ink); }
.neo__sep { height: 1px; margin: 8px 0 12px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 10px); }
.neo__facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13.5px; }
.neo__facts dt { color: var(--lilac-ink); font-weight: 700; }
.neo__facts dd { margin: 0; color: var(--ink-2); }

/* Hero kartı alternatifleri (content.js → heroCard) */
.win__body.hc { padding: 20px 22px 22px; }
.hc-code { margin: 0; font: inherit; font-size: 12.5px; line-height: 1.75; color: var(--ink); overflow-x: auto; counter-reset: ln; scrollbar-width: thin; }
.hc-code .ln { display: block; position: relative; padding-left: 3em; white-space: pre; }
.hc-code .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 1.9em; text-align: right; color: var(--faint); }
.hc-code .k { color: var(--pink-ink); font-weight: 700; }
.hc-code .p { color: var(--sky-ink); }
.hc-code .s { color: var(--mint-ink); }
.hc-code .n { color: var(--peach-ink); }
.hc-code .ty { color: var(--lilac-ink); font-weight: 700; }
.hc-code .f { color: var(--lemon-ink); }
.hc-code .c { color: var(--muted); font-style: italic; }
.hc-code .o { color: var(--muted); }
.hc-run {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px dashed var(--line-strong); font-size: 12.5px; color: var(--ink-2);
}
.hc-ok { color: var(--mint-ink); font-weight: 800; }

.hc-droid { display: grid; grid-template-columns: 192px minmax(0, 1fr); gap: 22px; align-items: center; }
.phone { width: 192px; height: 356px; padding: 7px; border-radius: 30px; background: #1d2330; box-shadow: 0 22px 40px -24px rgba(20, 28, 45, 0.55); }
:root[data-theme="dark"] .phone { box-shadow: 0 0 0 1px var(--line-strong), 0 22px 40px -24px rgba(0, 0, 0, 0.7); }
.phone__screen { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; border-radius: 24px; background: var(--surface); overflow: hidden; text-align: center; }
.phone__sb { position: absolute; inset: 0 0 auto; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 8px 15px 0; font-size: 9.5px; font-weight: 700; color: #22293a; }
.phone__cam { width: 8px; height: 8px; border-radius: 50%; background: #1d2330; }
.phone__head { align-self: stretch; flex: none; height: 88px; background: linear-gradient(135deg, var(--lilac), var(--sky)); }
.phone__avatar {
  display: grid; place-items: center; width: 62px; height: 62px; margin-top: -31px; border-radius: 50%;
  border: 3px solid var(--surface); background: var(--peach); color: #2b3445; font-size: 19px; font-weight: 800; overflow: hidden;
}
.phone__avatar img { width: 100%; height: 100%; object-fit: cover; }
.phone__name { margin-top: 8px; padding: 0 10px; font-size: 12.5px; font-weight: 800; line-height: 1.3; }
.phone__role { margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.phone__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 10px 10px 0; }
.phone__chips span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 9.5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.phone__chips i { width: 5px; height: 5px; border-radius: 50%; background: var(--sky-ink); }
.phone__stats { display: grid; grid-template-columns: repeat(3, 1fr); align-self: stretch; margin: 12px 12px 0; padding: 8px 0; border-radius: 12px; background: var(--surface-2); }
.phone__stats b { display: block; font-size: 13px; }
.phone__stats small { font-size: 9px; color: var(--muted); }
.phone__btn { align-self: stretch; margin: 12px 14px 0; padding: 7px 0; border-radius: 999px; background: var(--lilac); color: #22293a; font-size: 10.5px; font-weight: 700; }
.phone__nav { margin-top: auto; padding: 10px 0 8px; }
.phone__nav i { display: block; width: 58px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.hc-log { margin: 0; font: inherit; font-size: 11.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.hc-log__cmd { display: block; margin-bottom: 6px; color: var(--muted); }
.hc-log__row { display: block; margin-bottom: 3px; }
.hc-log .lv { display: inline-block; width: 1.7em; margin-right: 7px; border-radius: 4px; text-align: center; font-weight: 800; }
.lv--I { background: color-mix(in srgb, var(--mint) 65%, transparent); color: var(--mint-ink); }
.lv--D { background: color-mix(in srgb, var(--sky) 65%, transparent); color: var(--sky-ink); }
.lv--W { background: color-mix(in srgb, var(--lemon) 70%, transparent); color: var(--lemon-ink); }
.hc-log .lt { color: var(--lilac-ink); font-weight: 700; }
@media (max-width: 640px) {
  .hc-droid { grid-template-columns: 1fr; justify-items: center; }
  .hc-log { justify-self: stretch; }
  .hc-code { font-size: 11.5px; }
  /* profile.json: telefonda yana kaydırma yok, uzun satırlar alta kayar */
  .hc--json .hc-code { overflow-x: visible; }
  .hc--json .hc-code .ln { white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 3.8em; text-indent: -1.2em; }
}

/* ─── About ────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.about__text p { margin: 0 0 14px; font-size: 15.5px; color: var(--ink-2); max-width: 62ch; }
.about__text p:first-child { font-size: 18px; color: var(--ink); font-weight: 500; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.stat {
  padding: 16px 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--c) 38%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 70%, transparent);
}
.stat b { display: block; font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; color: var(--ci); }
.stat span { font-size: 12.5px; color: var(--ink-2); }

/* ─── Git log timeline ─────────────────────────────────── */
.gitlog { list-style: none; margin: 0; padding: 0; position: relative; }
.gitlog::before {
  content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 11px);
}
.commit { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 22px; padding: 0 0 26px; }
.commit:last-child { padding-bottom: 0; }
.commit__node {
  position: relative; z-index: 1; margin-top: 18px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--ci);
  display: grid; place-items: center;
}
.commit__node::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.commit.is-current .commit__node::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--c); animation: ping 2.2s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(0.7); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.commit__card {
  padding: 18px 22px; border-radius: 18px;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.commit__card:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 80%, transparent); }
.commit__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.hash { color: var(--lemon-ink); font-weight: 700; }
.ref { color: var(--mint-ink); font-weight: 700; }
.ref b { color: var(--sky-ink); }
.commit__date { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 45%, transparent); color: var(--ink); }
.commit h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.commit h3 .at { color: var(--ci); font-weight: 500; }
.commit__place { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.commit__place a { color: var(--ci); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.commit ul { margin: 0 0 12px; padding: 0; list-style: none; }
.commit li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.commit li::before { content: "+"; position: absolute; left: 2px; color: var(--mint-ink); font-weight: 700; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}

/* ─── Projects ─────────────────────────────────────────── */
.filter { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.filter[hidden] { display: none; }
.filter button {
  font: inherit; font-size: 12.5px; border: 0; cursor: pointer;
  padding: 5px 12px; border-radius: 9px; background: transparent; color: var(--muted);
}
.filter button:hover { color: var(--ink); }
.filter button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proj {
  position: relative; display: flex; flex-direction: column;
  padding: 20px 20px 18px; border-radius: 18px;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, opacity 0.3s;
  overflow: hidden;
}
.proj::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c);
}
.proj:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--c) 80%, transparent); }
.proj.is-hidden { display: none; }
.proj__top { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--faint); margin-bottom: 12px; }
.status { padding: 2px 9px; border-radius: 999px; font-size: 11px; }
.status--active { background: color-mix(in srgb, var(--mint) 55%, transparent); color: var(--mint-ink); }
.status--live { background: color-mix(in srgb, var(--sky) 55%, transparent); color: var(--sky-ink); }
.status--archive { background: var(--surface-3); color: var(--muted); }
.status::before { content: "● "; font-size: 8px; vertical-align: 1px; }
.proj h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.02em; }
.proj h3 span { color: var(--ci); }
.proj p { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-2); flex: 1; }
.proj__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.proj__links { display: flex; gap: 14px; font-size: 13px; }
.proj__links a { text-decoration: none; color: var(--ci); font-weight: 500; }
.proj__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.proj__year { font-size: 12px; color: var(--faint); }

/* Projeler yer tutucusu (content.js → projectsPlaceholder) */
.soon {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: center;
  padding: 24px 26px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.soon::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.soon__ls {
  margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line-strong);
  font: inherit; font-size: 12.5px; line-height: 1.75; color: var(--ink-2); overflow-x: auto;
}
.soon__ls b { color: var(--ci); }
.soon__dim { color: var(--faint); }
.soon__body h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.soon__dots::after { content: "…"; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; animation: soonDots 1.4s steps(4, jump-none) infinite; }
@keyframes soonDots { from { width: 0; } to { width: 1.2em; } }
.soon__body p { margin: 0 0 16px; font-size: 14px; color: var(--ink-2); max-width: 52ch; }
.soon__build { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.soon__track { flex: 1; max-width: 280px; height: 12px; padding: 2px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line-strong); }
.soon__track i {
  display: block; height: 100%; width: 40%; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--c) 0 8px, transparent 8px 10px);
  animation: soonBuild 3.6s steps(12, end) infinite;
}
@keyframes soonBuild { 0% { width: 8%; } 85%, 100% { width: 96%; } }
.soon__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.proj--ghost { border-style: dashed; background: transparent; opacity: 0.85; }
.proj--ghost::before { opacity: 0.45; }
.proj--ghost:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
.status--soon { background: color-mix(in srgb, var(--c) 45%, transparent); color: var(--ci); }
.sk {
  display: block; height: 10px; margin-bottom: 10px; border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 50%, var(--surface-3) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.8s linear infinite;
}
.sk--title { height: 16px; width: 55%; margin-bottom: 16px; }
.sk--short { width: 60%; margin-bottom: 18px; }
.sk--tag { display: inline-block; width: 52px; height: 20px; margin: 0; border-radius: 999px; }
.proj--ghost .tags { margin-top: auto; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .sk, .soon__track i, .soon__dots::after { animation: none; }
  .soon__track i { width: 62%; }
}
@media (max-width: 900px) { .soon { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 640px) {
  .soon { padding: 20px 16px; }
  .soon__ls { padding: 12px 12px; font-size: 10.5px; }
  .proj--ghost ~ .proj--ghost { display: none; }
}

/* ─── Hobbies ──────────────────────────────────────────── */
.hobbies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hobby {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
  padding: 18px; border-radius: 18px;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
}
.hobby:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hobby__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--c); color: #2e2a44; font-size: 22px;
}
.hobby__icon { position: relative; overflow: hidden; box-shadow: inset 0 -10px 18px -12px rgba(46, 42, 68, 0.25); }
.hobby__icon .art { width: 32px; height: 32px; color: #2e2a44; overflow: visible; }
.art .fill { fill: rgba(255, 255, 255, 0.6); }
.art .lens { fill: color-mix(in srgb, var(--ci) 35%, white); }
.art .dot { fill: currentColor; }
.art .steam, .art .trail { opacity: 0.55; transition: transform 0.6s ease, opacity 0.6s ease; }
.art .fly { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hobby:hover .art .steam { transform: translateY(-1.5px); opacity: 1; animation: steam 1.6s ease-in-out infinite; }
.hobby:hover .art .fly { transform: translate(1.5px, -1.5px); }
.hobby:hover .art .trail { opacity: 1; transform: translateX(-1px); }
.hobby:hover .art--camera .lens { animation: shutter 0.5s ease; }
.hobby:hover .art--knight, .hobby:hover .art--book, .hobby:hover .art--postcard, .hobby:hover .art--stamp { transform: rotate(-6deg); }
.art .cherry { transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
circle.cherry { fill: color-mix(in srgb, var(--ci) 55%, white); }
.hobby:hover .art--cake .cherry { transform: translateY(-1.8px); }
.art--bitcoin { transition: transform 0.8s cubic-bezier(0.3, 1.3, 0.5, 1); }
.hobby:hover .art--bitcoin { transform: rotateY(360deg); }
.art .blk { transform-box: fill-box; transform-origin: center; }
.hobby:hover .art--chain .blk { animation: blk 0.9s ease-in-out infinite; }
.hobby:hover .art--chain .blk:nth-of-type(2) { animation-delay: 0.15s; }
.hobby:hover .art--chain .blk:nth-of-type(3) { animation-delay: 0.3s; }
@keyframes blk { 40% { transform: translateY(-2px); } }
.art .node { transition: fill 0.3s; }
.hobby:hover .art--algo .node { fill: color-mix(in srgb, var(--ci) 45%, white); }
.hobby:hover .art--algo .node:nth-of-type(2) { transition-delay: 0.12s; }
.hobby:hover .art--algo .node:nth-of-type(3) { transition-delay: 0.24s; }
.hobby:hover .art--algo .node:nth-of-type(4) { transition-delay: 0.36s; }
.hobby:hover .art--algo .node:nth-of-type(5) { transition-delay: 0.48s; }
.art .lift, .art .sun { transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
.art .sun { fill: color-mix(in srgb, var(--ci) 35%, white); }
.hobby:hover .art--gym .lift { transform: translateY(-2px); }
.hobby:hover .art--hike .sun { transform: translateY(-1.8px); }
.art--knight, .art--book, .art--postcard, .art--stamp { transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.art .wheel { transform-box: fill-box; transform-origin: center; }
.hobby:hover .art--bike .wheel { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes steam { 50% { transform: translateY(-3px); opacity: 0.4; } }
@keyframes shutter { 50% { transform: scale(0.7); } }
.art .lens { transform-box: fill-box; transform-origin: center; }
.hobby h3 { margin: 0; font-size: 15.5px; display: flex; justify-content: space-between; gap: 8px; }
.hobby h3 small { font-weight: 500; color: var(--ci); font-size: 12px; }
.hobby p { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.bar { font-size: 12.5px; letter-spacing: 1px; color: var(--ci); white-space: nowrap; overflow: hidden; }
.bar .off { color: var(--line-strong); }

/* ─── Travel map ───────────────────────────────────────── */
.travel__summary { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.travel__summary span { padding: 4px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.travel__summary b { color: var(--lilac-ink); }
.travel__summary .km-chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: help;
  background: color-mix(in srgb, var(--sky) 50%, transparent); border-color: color-mix(in srgb, var(--sky) 80%, transparent);
}
.travel__summary .km-chip b { color: var(--sky-ink); }
.travel__summary .km-chip i { font-style: normal; color: var(--sky-ink); }

.travel {
  position: relative;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 236px;
  gap: 56px;
  align-items: stretch;
}
.travel__col { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; position: relative; z-index: 3; }
.travel__mapwrap { position: relative; min-height: 680px; }
.travel__map {
  position: absolute; inset: 0;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  isolation: isolate; z-index: 0;
}
.travel__map .leaflet-tile-pane { filter: var(--tile-filter); }
.travel__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.wire { fill: none; stroke: var(--ci); stroke-width: 1.6; stroke-dasharray: 5 5; opacity: 0.55; transition: opacity 0.25s, stroke-width 0.25s; }
.wire-end { fill: var(--ci); opacity: 0.7; }
.wire-start { fill: var(--surface); stroke: var(--ci); stroke-width: 1.6; }
.wire-g.is-active .wire { opacity: 1; stroke-width: 2.4; stroke-dasharray: none; }
.wire-g.is-dim { opacity: 0.25; }
.wire-g.is-off { display: none; }

.map-reset {
  position: absolute; z-index: 5; left: 50%; bottom: 16px; transform: translateX(-50%);
  font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap;
  padding: 7px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink);
  border: 1px solid var(--line); backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.map-reset:hover { background: var(--surface); }
.map-reset[hidden] { display: none; }

.map-regions {
  position: absolute; z-index: 5; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 3px; padding: 4px; border-radius: 14px; max-width: calc(100% - 24px);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.map-regions[hidden] { display: none; }
.map-regions button {
  font: inherit; font-size: 12.5px; border: 0; cursor: pointer; white-space: nowrap;
  padding: 6px 12px; border-radius: 10px; background: transparent; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.map-regions button small { font-size: 10.5px; margin-left: 4px; color: var(--faint); }
.map-regions button:hover { color: var(--ink); }
.map-regions button[aria-pressed="true"] { background: var(--lilac); color: #2e2a44; }
.map-regions button[aria-pressed="true"] small { color: #4a4460; }
@media (max-width: 640px) {
  .map-regions button { padding: 6px 9px; font-size: 12px; }
  .map-regions button small { display: none; }
}

/* City popup cards */
.city {
  --pad: 10px;
  display: flex; flex-direction: column;
  padding: var(--pad);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--c) 75%, var(--line));
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left; font: inherit; color: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.city:hover, .city.is-active { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--ci); }
.travel__col--left .city:hover, .travel__col--left .city.is-active { transform: translateX(4px); }
.travel__col--right .city:hover, .travel__col--right .city.is-active { transform: translateX(-4px); }
.city__photo {
  position: relative; height: 84px; border-radius: 15px; overflow: hidden;
  background:
    radial-gradient(circle at 18% 28%, color-mix(in srgb, var(--c) 100%, white 20%) 0 22%, transparent 55%),
    radial-gradient(circle at 85% 80%, var(--surface-3) 0 20%, transparent 55%),
    linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, var(--surface-2)));
  display: grid; place-items: center;
}
.city__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.city__photo svg { width: 26px; height: 26px; color: #2e2a44; opacity: 0.55; }
.city__photo .ph-label {
  position: absolute; right: 8px; bottom: 6px;
  font-size: 9.5px; padding: 1px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.55); color: #3b3650;
}
.city__info { padding: 9px 6px 3px; }
.city__name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.city__name b { font-size: 14.5px; letter-spacing: -0.01em; }
.city__name small { font-size: 11px; color: var(--ci); font-weight: 700; }
.city__meta { font-size: 11.5px; color: var(--muted); }
.city__note { margin: 4px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* Popup layout: wide map, card opens on the map */
.travel--popup { display: block; }
.travel--popup .travel__col, .travel--popup .travel__wires { display: none; }
.travel--popup .travel__mapwrap { min-height: 640px; }
.travel--popup .leaflet-marker-icon { cursor: pointer; }

.city-pop .leaflet-popup-content-wrapper {
  padding: 0; border-radius: 22px; background: none; box-shadow: none;
}
.city-pop .leaflet-popup-content { margin: 0; width: 250px !important; line-height: inherit; font-family: var(--mono); }
.city-pop .leaflet-popup-tip-container { margin-top: -1px; }
.city-pop .leaflet-popup-tip { background: var(--surface); box-shadow: none; border: 1px solid var(--line); }
.city-pop a.leaflet-popup-close-button {
  top: 16px; right: 16px; width: 26px; height: 26px; z-index: 2;
  display: grid; place-items: center; border-radius: 50%;
  font: 700 16px/1 var(--mono); color: #2e2a44;
  background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(6px);
}
.city-pop a.leaflet-popup-close-button:hover { background: #fff; color: #2e2a44; }
.city-pop.leaflet-zoom-animated { transition: opacity 0.2s; }
.city-pop .leaflet-popup-content-wrapper { animation: popIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2); transform-origin: 50% 100%; }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(0.94); } }

.city--popup { cursor: default; box-shadow: var(--shadow-lift); border-color: var(--ci); }
.city--popup:hover { transform: none; }
.city--popup .city__photo { height: 140px; }
.city--popup .city__photo svg { width: 34px; height: 34px; }
.city--popup .city__photo .ph-label { display: block; }
.city--popup .city__info { padding: 11px 6px 4px; }
.city--popup .city__name b { font-size: 16px; }
.city--popup .city__note { display: block; -webkit-line-clamp: unset; font-size: 12.5px; margin-top: 6px; }
.city__nav {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin-top: 10px; padding: 9px 4px 2px; border-top: 1px dashed var(--line-strong);
  font-size: 11px; color: var(--faint);
}
.city__nav button {
  font: inherit; font-size: 11px; border: 0; cursor: pointer; padding: 3px 8px; border-radius: 8px;
  background: transparent; color: var(--ci); max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.city__nav button:hover { background: color-mix(in srgb, var(--c) 40%, transparent); }

/* Pastel dummy photo (gallery + viewer) */
.ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle at 18% 28%, color-mix(in srgb, var(--c) 100%, white 25%) 0 22%, transparent 55%),
    radial-gradient(circle at 82% 78%, color-mix(in srgb, var(--c) 60%, var(--surface-2)) 0 22%, transparent 55%),
    linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 40%, var(--surface-2)));
}
.ph svg { width: 34px; height: 34px; color: #2e2a44; opacity: 0.55; }

/* Card gallery: swipe / arrows / dots */
.gal { background: var(--surface-2); display: block; }
.gal__track {
  position: absolute; inset: 0; display: flex;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide {
  position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center;
  border: 0; padding: 0; margin: 0; cursor: zoom-in; background: none; font: inherit;
}
.gal__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal__arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; font: 700 17px/1 var(--mono); color: #2e2a44;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.2s, background 0.2s;
}
.gal__arrow--prev { left: 8px; }
.gal__arrow--next { right: 8px; }
.gal:hover .gal__arrow, .gal__arrow:focus-visible { opacity: 1; }
.gal__arrow:hover { background: #fff; }
@media (hover: none) { .gal__arrow { opacity: 0.85; } }
.gal__dots, .lb__dots { display: flex; gap: 5px; justify-content: center; }
.gal__dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; pointer-events: none; }
.gal__dots i, .lb__dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(46, 42, 68, 0.28); transition: width 0.25s, background 0.25s; }
.gal__dots i.is-on { width: 16px; background: rgba(46, 42, 68, 0.75); }
.gal__zoom {
  position: absolute; left: 8px; top: 8px; z-index: 2; pointer-events: none;
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; color: #2e2a44; background: rgba(255, 255, 255, 0.6);
  opacity: 0; transition: opacity 0.2s;
}
.gal:hover .gal__zoom { opacity: 1; }
.city--popup .gal .ph-label { right: 8px; bottom: 6px; left: auto; }
.city--popup .gal:has(.gal__dots) .ph-label { bottom: auto; top: 8px; right: 40px; }

/* Full-screen viewer */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 28px; }
.lb[hidden] { display: none; }
.lb__backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  animation: fadeIn 0.25s ease;
}
.lb__frame {
  position: relative; margin: 0; width: min(1040px, 100%);
  padding: 12px; border-radius: 30px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 70%, var(--line));
  box-shadow: 0 30px 80px -30px rgba(40, 30, 70, 0.5);
  animation: popIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.lb__track {
  position: relative; display: flex; aspect-ratio: 3 / 2; max-height: calc(100vh - 170px); width: 100%;
  border-radius: 22px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  background: var(--surface-2);
}
.lb__track::-webkit-scrollbar { display: none; }
.lb__slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; }
.lb__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb__slide .ph svg { width: 64px; height: 64px; }
.lb__slide .ph-label {
  position: absolute; right: 16px; bottom: 14px; font-size: 12px; padding: 3px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6); color: #3b3650;
}
.lb__nav, .lb__close {
  position: absolute; z-index: 2; border: 0; cursor: pointer; border-radius: 50%;
  display: grid; place-items: center; font: 700 22px/1 var(--mono); color: #2e2a44;
  background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -8px rgba(40, 30, 70, 0.45);
  transition: transform 0.2s, background 0.2s;
}
.lb__nav { top: calc(50% - 30px); width: 46px; height: 46px; }
.lb__nav--prev { left: 26px; }
.lb__nav--next { right: 26px; }
.lb__nav:hover { background: #fff; transform: scale(1.06); }
.lb__nav[hidden] { display: none; }
.lb__close { top: 24px; right: 24px; width: 38px; height: 38px; font-size: 20px; }
.lb__close:hover { background: #fff; transform: rotate(90deg); }
.lb__cap { display: flex; align-items: baseline; gap: 12px; padding: 12px 10px 4px; font-size: 13px; color: var(--muted); }
.lb__cap b { font-size: 16px; color: var(--ink); }
.lb__count { margin-left: auto; color: var(--ci); font-weight: 700; }
.lb__dotswrap { position: absolute; left: 0; right: 0; bottom: 60px; z-index: 2; pointer-events: none; }
.lb__dots i.is-on { width: 20px; background: rgba(46, 42, 68, 0.75); }
body.lb-open { overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } }
@media (max-width: 640px) {
  .lb { padding: 12px; }
  .lb__frame { padding: 8px; border-radius: 24px; }
  .lb__track { border-radius: 18px; aspect-ratio: 4 / 5; }
  .lb__nav { width: 38px; height: 38px; font-size: 18px; }
  .lb__nav--prev { left: 16px; }
  .lb__nav--next { right: 16px; }
  .lb__close { top: 16px; right: 16px; }
  .lb__dotswrap { bottom: 52px; }
}

.city__note:empty, .city__name small:empty { display: none; }

/* Many cities → smaller pins in the popup layout */
.travel--popup .pin { width: 16px; height: 16px; border-width: 2.5px; }
.travel--popup .pin::after { inset: -7px; }

/* Leaflet pins */
.pin-wrap { background: none !important; border: 0 !important; }
.pin {
  position: relative; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c); border: 3px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--ci), 0 6px 14px -4px rgba(40, 30, 70, 0.45);
  transition: transform 0.25s;
}
.pin::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 2px solid var(--ci); opacity: 0; animation: ping 2.4s ease-out infinite;
}
.pin.is-active { transform: scale(1.35); }
.pin.is-active::after { opacity: 1; }
.pin__label {
  position: absolute; left: 50%; top: -30px; transform: translateX(-50%);
  white-space: nowrap; font-family: var(--mono); font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 8px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, top 0.2s;
}
.pin.is-active .pin__label, .pin:hover .pin__label { opacity: 1; top: -34px; }

.leaflet-container { font-family: var(--mono); background: var(--surface-2); }
.leaflet-bar { border: 1px solid var(--line) !important; border-radius: 12px !important; overflow: hidden; box-shadow: var(--shadow) !important; }
.leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-bottom-color: var(--line) !important; }
.leaflet-bar a:hover { background: var(--surface-2) !important; }
.leaflet-control-attribution { font-size: 9.5px !important; background: color-mix(in srgb, var(--surface) 80%, transparent) !important; color: var(--muted) !important; border-top-left-radius: 8px; }
.leaflet-control-attribution a { color: var(--ink-2) !important; }

/* ─── Contact ──────────────────────────────────────────── */
.contact__lead { font-size: 17px; margin: 0 0 18px; color: var(--ink-2); max-width: 56ch; }
.contact__mail {
  display: inline-block; font-size: clamp(1.3rem, 3.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em;
  text-decoration: none; margin-bottom: 26px;
  background: linear-gradient(transparent 62%, var(--pink) 62%);
  word-break: break-all;
}
.contact__mail:hover { background: linear-gradient(transparent 62%, var(--lilac) 62%); }
.contact__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.contact__links li { display: flex; gap: 12px; }
.contact__links .k { color: var(--lilac-ink); min-width: 92px; }
.contact__links a { color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line-strong); }
.contact__links a:hover { color: var(--pink-ink); border-color: var(--pink-ink); }

/* ─── Easter egg (sayfa sonu sürprizi + gizli terminal) ─── */
.egg { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; margin: -12px 0 48px;
  opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.egg.is-in { opacity: 1; transform: none; }
.egg[hidden] { display: none; }
.egg__btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink);
  padding: 12px 18px; border-radius: 999px; border: 1px dashed var(--line-strong); background: var(--surface);
  box-shadow: var(--shadow); -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform 0.2s, border-color 0.2s; }
.egg__btn:hover { border-color: var(--lilac-ink); transform: translateY(-2px); }
.egg__btn small { font-size: 11px; color: var(--muted); padding: 2px 8px; border-radius: 999px; background: var(--surface-2); }
.egg__gift { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--lilac); font-size: 14px; color: #2e2a44; font-weight: 700; animation: giftWiggle 3s ease-in-out infinite; }
@keyframes giftWiggle { 0%, 82%, 100% { transform: none; } 86% { transform: rotate(-10deg); } 90% { transform: rotate(9deg); } 94% { transform: rotate(-5deg); } }
.egg__build { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.egg__build i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.egg__build:hover { color: var(--ink); border-color: var(--line-strong); }
.egg__build.is-dev { color: var(--mint-ink); }
.egg__card { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; margin: 6px 0 4px; }
.egg__card[hidden] { display: none; }
/* Kartpostal: ön yüz manzara, arka yüz not + pul + damga; dokununca döner */
.pc { --paper: #fbf6ea; --pen: #2f3d63; --stampInk: rgba(54, 58, 82, 0.5);
  width: 100%; max-width: 430px; aspect-ratio: 3 / 2; perspective: 1400px; cursor: pointer; transform: rotate(-1.5deg);
  -webkit-tap-highlight-color: transparent; outline-offset: 6px; }
.pc.is-new { animation: pcIn 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.15); }
@keyframes pcIn { from { opacity: 0; transform: translateY(24px) rotate(6deg) scale(0.9); } }
.pc__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pc.is-flipped .pc__inner { transform: rotateY(180deg); }
@media (hover: hover) {
  .pc:hover .pc__inner { transform: rotateY(-6deg); }
  .pc.is-flipped:hover .pc__inner { transform: rotateY(186deg); }
}
.pc__face { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--paper); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 40px -18px rgba(30, 35, 50, 0.45), 0 4px 12px -6px rgba(30, 35, 50, 0.25); }

.pc__front { padding: 9px; }
.pc__front::before { content: ""; position: absolute; inset: 9px; border-radius: 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, #fff) 0%, color-mix(in srgb, var(--c) 75%, #fff) 55%, var(--c) 100%); }
.pc__art { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); border-radius: 4px; }
.pc__sun { fill: rgba(255, 255, 255, 0.75); }
.pc__bird { fill: none; stroke: color-mix(in srgb, var(--ci) 70%, transparent); stroke-width: 1.6; stroke-linecap: round; }
.pc__hill { fill: color-mix(in srgb, var(--c) 55%, #fff); opacity: 0.9; }
.pc__town { fill: color-mix(in srgb, var(--ci) 45%, var(--c)); }
.pc__win { stroke: rgba(255, 255, 255, 0.55); stroke-width: 3; }
.pc__title { position: absolute; left: 26px; top: 22px; right: 40%; display: flex; flex-direction: column; color: #fff; }
.pc__title small { font-family: "Caveat", cursive; font-size: 22px; font-weight: 700; line-height: 1; color: var(--ci); transform: rotate(-4deg); transform-origin: left; margin-bottom: 2px; }
.pc__title b { font-size: clamp(20px, 5vw, 28px); font-weight: 800; line-height: 1.02; letter-spacing: 0.02em; word-break: break-word;
  text-shadow: 2px 2px 0 var(--ci), 3px 3px 0 color-mix(in srgb, var(--ci) 40%, transparent); }
.pc__title span { margin-top: 4px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ci); opacity: 0.85; }
.pc__hint { position: absolute; right: 16px; bottom: 14px; font-size: 10.5px; padding: 3px 9px; border-radius: 999px; color: #2b3445; background: rgba(255, 255, 255, 0.75); }

.pc__back { transform: rotateY(180deg); display: grid; grid-template-columns: 1.05fr 1fr; padding: 26px 20px 18px; color: var(--pen);
  background: var(--paper) repeating-linear-gradient(0deg, transparent 0 3px, rgba(120, 100, 60, 0.025) 3px 4px); }
.pc__label { position: absolute; top: 10px; left: 0; right: 0; text-align: center; font-size: 9px; letter-spacing: 0.4em; color: #a59d8b; }
.pc__note { padding-right: 16px; border-right: 1px solid rgba(90, 80, 60, 0.28); display: flex; flex-direction: column; justify-content: center; }
.pc__msg { margin: 0 0 8px; font-family: "Caveat", cursive; font-size: 18px; line-height: 1.2; transform: rotate(-1.5deg); }
.pc__sign { margin: 0; font-family: "Caveat", cursive; font-size: 16px; font-weight: 700; text-align: right; }
.pc__side { padding-left: 16px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.pc__post { position: relative; display: flex; justify-content: flex-end; align-items: flex-start; height: 84px; }
.pc__stamp { position: relative; z-index: 1; width: 62px; height: 74px; padding: 5px; transform: rotate(3deg);
  background: radial-gradient(circle, transparent 2.3px, #fffdf8 2.6px) -4px -4px / 8px 8px; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.2)); }
.pc__stamp > div { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 4px 2px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c)); color: #2b3445; text-align: center; }
.pc__stamp i { font-style: normal; font-size: 18px; line-height: 1; color: var(--ci); }
.pc__stamp small { font-size: 6.5px; letter-spacing: 0.05em; line-height: 1.1; word-break: break-word; }
.pc__stamp b { font-size: 11px; }
.pc__mark { position: absolute; z-index: 2; right: 40px; top: 12px; width: 62px; height: 62px; border-radius: 50%; border: 1.6px solid var(--stampInk);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; transform: rotate(-14deg);
  font-size: 6.5px; letter-spacing: 0.06em; color: var(--stampInk); text-align: center; line-height: 1.15; }
.pc__mark b { font-size: 7.5px; border-top: 1px solid var(--stampInk); border-bottom: 1px solid var(--stampInk); padding: 1px 3px; }
.pc__mark span { max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc__waves { position: absolute; z-index: 2; right: 92px; top: 24px; width: 58px; height: 34px; fill: none; stroke: var(--stampInk); stroke-width: 1.4; }
.pc__addr { display: flex; flex-direction: column; gap: 4px; }
.pc__addr span { font-family: "Caveat", cursive; font-size: 15.5px; line-height: 1.25; padding: 0 2px 1px; border-bottom: 1px solid rgba(90, 80, 60, 0.35);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .pc__inner { transition: none; } .pc:hover .pc__inner { transform: none; } .pc.is-flipped:hover .pc__inner { transform: rotateY(180deg); } }
@media (max-width: 640px) {
  .pc { aspect-ratio: 4 / 5; max-width: 290px; }
  .pc__title { right: 20px; }
  .pc__back { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 26px 16px 16px; }
  .pc__side { order: -1; padding-left: 0; gap: 8px; }
  .pc__note { order: 1; padding: 10px 0 0; border-right: 0; border-top: 1px solid rgba(90, 80, 60, 0.28); margin-top: 10px; }
  .pc__msg { font-size: 18px; }
}
.egg__btn.bump { animation: eggBump 0.25s ease; }
@keyframes eggBump { 50% { transform: scale(0.94); } }
.egg__dots { display: flex; gap: 6px; }
.egg__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: background 0.2s, transform 0.2s; }
.egg__dots i.on { background: var(--lilac-ink); transform: scale(1.25); }
.egg__badge { font-size: 12px; color: var(--mint-ink); }

.dterm { width: 100%; max-width: 760px; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lift); }
.dterm .win__bar { position: relative; }
.dterm__x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: inherit; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.dterm__x:hover { background: var(--surface-3); color: var(--ink); }
.dterm__log { height: 260px; overflow-y: auto; padding: 14px 18px 6px; font-size: 13px; line-height: 1.7; overscroll-behavior: contain; }
.dterm__line { white-space: pre-wrap; word-break: break-word; }
.dterm__line .cmd, .dterm__line b { color: var(--lilac-ink); font-weight: 700; }
.dterm__line.dim { color: var(--muted); }
.dterm__line.err { color: var(--pink-ink); }
.dterm__line.pre { white-space: pre; }
.dterm__row { display: flex; align-items: center; gap: 8px; padding: 8px 18px 12px; font-size: 13px; }
.dterm__row input { flex: 1; min-width: 0; font: inherit; font-size: 16px; border: 0; outline: 0; background: transparent; color: var(--ink); caret-color: var(--lilac-ink); }
.dterm__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 14px; border-top: 1px dashed var(--line); background: var(--surface-2); }
.dterm__chips button { font: inherit; font-size: 12px; padding: 6px 11px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); touch-action: manipulation; }
.dterm__chips button:hover { color: var(--ink); border-color: var(--lilac-ink); }

.toast { position: fixed; left: 50%; bottom: 52px; z-index: 90; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px; font-size: 13px; text-align: center;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lift); transition: opacity 0.25s, transform 0.25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 12px; border-radius: 2px;
  animation: confettiFall var(--d) cubic-bezier(0.3, 0.6, 0.5, 1) var(--delay) forwards; }
@keyframes confettiFall { to { transform: translate3d(calc((var(--r) / 12) * 1px), 105vh, 0) rotate(var(--r)); } }
@media (max-width: 640px) {
  .dterm__log { height: 220px; padding: 12px 14px 4px; font-size: 12px; }
  .dterm__row { padding: 8px 14px 12px; font-size: 12px; }
  .dterm__row .ps1 { display: none; }
}

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 4px 40px; font-size: 12.5px; color: var(--muted); }

/* ─── Status bar ───────────────────────────────────────── */
.statusbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: stretch; height: 30px;
  font-size: 12px; background: var(--surface-2); border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.statusbar > span { display: flex; align-items: center; padding: 0 14px; white-space: nowrap; }
.sb__mode { background: var(--mint); color: #24433a; font-weight: 800; letter-spacing: 0.06em; }
.sb__path { background: var(--surface-3); }
.sb__fill { flex: 1; }
.sb__info { color: var(--muted); }
.sb__clock { background: var(--lilac); color: #2e2a44; font-weight: 700; }

/* ─── Reveal ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1120px) {
  .travel { grid-template-columns: 200px minmax(0, 1fr) 200px; gap: 40px; }
  .city__photo { height: 72px; }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 36px; padding-top: 40px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .projects, .hobbies { grid-template-columns: repeat(2, 1fr); }
  .brand__name { display: none; }
}
@media (max-width: 900px) {
  .travel { grid-template-columns: 1fr 1fr; gap: 14px; }
  .travel__mapwrap { grid-column: 1 / -1; grid-row: 1; min-height: 420px; }
  .travel__col { justify-content: flex-start; }
  .travel__wires { display: none; }
  .travel__col--left .city:hover, .travel__col--right .city:hover,
  .travel__col--left .city.is-active, .travel__col--right .city.is-active { transform: translateY(-3px); }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .shell, .topbar__inner { padding: 0 16px; }
  .topbar__inner { gap: 10px; }
  .tabs a { padding: 5px 9px; }
  .tabs a kbd { display: none; }
  .win__body { padding: 20px 18px 22px; }
  .section { margin: 24px 0; }
  .neo { grid-template-columns: 1fr; }
  .neo__avatar { width: 110px; }
  .projects, .hobbies { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .commit { grid-template-columns: 24px 1fr; gap: 12px; }
  .commit__card { padding: 16px; }
  .commit__date { margin-left: 0; }
  .travel { gap: 10px; }
  .travel__col { gap: 10px; }
  .travel__mapwrap { min-height: 380px; }
  .travel--popup .travel__mapwrap { min-height: 520px; }
  .city { --pad: 7px; border-radius: 18px; }
  .city__photo { height: 64px; border-radius: 12px; }
  .city__photo .ph-label { display: none; }
  .city__info { padding: 7px 4px 2px; }
  .city__name b { font-size: 13px; }
  .city__note { display: none; }
  .foot__hint, .sb__info { display: none; }
}
