/* batuhangozbaba.com
   VOICE: sakin, net, profesyonel; bir ürün insanının çalışma masası
   COLOUR: çinko grisi zemin, siyah/beyaz yüzeyler, mavi (link/aksiyon) + yeşil (canlı/sonuç)
   TYPE: Inter, 4 boyut
   THEME: data-theme="light|dark", yoksa sistem tercihi */

:root {
  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --text: #09090b;
  --text-2: #3f3f46;
  --muted: #71717a;
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, .09);
  --green: #16a34a;
  --green-soft: rgba(22, 163, 74, .1);
  --btn-bg: #09090b;
  --btn-text: #fafafa;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  --shadow-hover: 0 2px 4px rgba(0,0,0,.05), 0 12px 32px rgba(0,0,0,.08);
  --max: 1040px;
  --r: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b; --surface: #141416; --surface-2: #1b1b1e; --line: #27272a; --line-strong: #3f3f46;
    --text: #fafafa; --text-2: #d4d4d8; --muted: #a1a1aa;
    --blue: #60a5fa; --blue-soft: rgba(96,165,250,.12); --green: #4ade80; --green-soft: rgba(74,222,128,.12);
    --btn-bg: #fafafa; --btn-text: #09090b;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-hover: 0 12px 32px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090b; --surface: #141416; --surface-2: #1b1b1e; --line: #27272a; --line-strong: #3f3f46;
  --text: #fafafa; --text-2: #d4d4d8; --muted: #a1a1aa;
  --blue: #60a5fa; --blue-soft: rgba(96,165,250,.12); --green: #4ade80; --green-soft: rgba(74,222,128,.12);
  --btn-bg: #fafafa; --btn-text: #09090b;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-hover: 0 12px 32px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; font-size: 16px;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background .2s, color .2s;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); letter-spacing: -.01em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.nav-r { display: flex; align-items: center; gap: 4px; }
nav { display: flex; gap: 2px; }
nav a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 99px; white-space: nowrap;
}
nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.theme-btn {
  width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer;
  display: grid; place-items: center; margin-left: 6px;
}
.theme-btn:hover { border-color: var(--line-strong); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 56px; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(115deg, transparent 55%, #000 100%);
  -webkit-mask-image: linear-gradient(115deg, transparent 55%, #000 100%);
}
.hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; position: relative; z-index: 1; }
.hero-top img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line-strong); }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--green);
  background: var(--green-soft); padding: 6px 12px; border-radius: 99px;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .status::before { animation: none; } html { scroll-behavior: auto; } }
.hero h1 {
  position: relative; z-index: 1;
  font-size: clamp(34px, 5.4vw, 52px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700;
  margin-bottom: 20px; max-width: 760px; text-wrap: balance;
}
.hero h1 .hl { color: var(--blue); }
.hero p.lead { position: relative; z-index: 1; font-size: 18px; color: var(--text-2); max-width: 620px; margin-bottom: 32px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px;
  padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line-strong); color: var(--text); background: var(--surface);
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.btn.primary:hover { opacity: .9; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 16px; height: 16px; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; position: relative; z-index: 1;
}
.stats div { padding-right: 16px; }
.stats div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.stats b { display: block; font-size: 28px; letter-spacing: -.03em; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
section h2, .sec-head h2 { font-size: 30px; letter-spacing: -.03em; line-height: 1.1; font-weight: 700; }
.sec-head p { color: var(--muted); font-size: 15px; margin-top: 6px; }
h2.sub, .cv-sub {
  font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em;
  margin: 40px 0 14px; display: flex; align-items: center; gap: 12px;
}
h2.sub::after, .cv-sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.card .tag { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.card h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--text-2); flex: 1; }
.card .more { margin-top: 18px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.card .links { display: flex; gap: 18px; flex-wrap: wrap; }
.card.muted { background: var(--surface-2); box-shadow: none; }
.card.muted:hover { transform: none; box-shadow: none; }
.live, .pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px;
}
.live { color: var(--green); background: var(--green-soft); }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill { color: var(--blue); background: var(--blue-soft); }
.press { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.press span {
  font-size: 12px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 8px; color: var(--text-2);
}

/* ---------- Blog ---------- */
.posts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.post-item { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 22px 24px; color: var(--text); }
.post-item + .post-item { border-top: 1px solid var(--line); }
.post-item:hover { text-decoration: none; background: var(--surface-2); }
.post-item:hover h3 { color: var(--blue); }
.post-item .meta { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.post-item h3 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 4px; transition: color .15s; }
.post-item p { color: var(--muted); font-size: 14.5px; }
.post-item .arrow { color: var(--muted); font-size: 20px; }
a.all { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 14px; }

/* ---------- CV ---------- */
.cv-box { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.cv-profile { font-size: 17px; color: var(--text-2); max-width: 780px; }
.job { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 18px 0; position: relative; }
.job + .job { border-top: 1px dashed var(--line); }
.job .date { color: var(--text); font-size: 13.5px; font-weight: 600; padding-top: 3px; font-variant-numeric: tabular-nums; }
.job .date span { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.job h3 { font-size: 17px; letter-spacing: -.01em; }
.job .org { color: var(--blue); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.job p { font-size: 15px; color: var(--text-2); }
.job ul { margin: 8px 0 0; list-style: none; }
.job li { font-size: 15px; color: var(--text-2); margin-bottom: 6px; padding-left: 18px; position: relative; }
.job li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 2px; background: var(--line-strong); }
.skills { display: grid; gap: 14px; }
.skills > div { display: grid; grid-template-columns: 170px 1fr; gap: 24px; }
.skills dt { font-weight: 600; font-size: 14px; padding-top: 4px; }
.skills dd { display: flex; flex-wrap: wrap; gap: 6px; }
.skills dd span { font-size: 13px; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }

/* ---------- Maker / iletişim ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.contact-grid > p { font-size: 18px; color: var(--text-2); }
.maker { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.mk-top { display: flex; gap: 14px; align-items: center; }
.mk-top img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--blue); }
.mk-top small { display: block; font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.mk-top b { display: block; font-size: 22px; font-weight: 800; line-height: 1.15; }
.mk-top p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.mk-top p a { color: var(--blue); font-weight: 700; }
.sl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.sl a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 14px; font-weight: 800; font-size: 15px; text-decoration: none; color: #fff; transition: transform .15s, opacity .15s; }
.sl a:hover { text-decoration: none; opacity: .92; transform: translateY(-1px); }
.sl svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.sl .ig { grid-column: 1 / -1; justify-content: space-between; padding: 12px 18px; min-height: 64px; background: linear-gradient(90deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4); }
.sl .ig > span:first-child { display: flex; align-items: center; gap: 12px; text-align: left; }
.sl .ig .t { display: block; }
.sl .ig small { display: block; font-weight: 600; font-size: 12px; opacity: .85; }
.sl .yt { background: #ff0033; }
.sl .tt { background: #000; box-shadow: inset 0 0 0 1.5px rgba(37,244,238,.45); }
.sl .kk { background: #53fc18; color: #0b1a00; }
.sl .li { background: #0a66c2; }

footer { padding: 32px 0 48px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- Article ---------- */
article { padding: 56px 0 80px; }
article .wrap { max-width: 720px; }
article .back { font-size: 14px; font-weight: 600; display: inline-block; margin-bottom: 28px; }
article .meta { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
article h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin-bottom: 28px; text-wrap: balance; }
article h2 { font-size: 23px; margin: 40px 0 12px; letter-spacing: -.02em; }
article p { margin-bottom: 18px; font-size: 17.5px; color: var(--text-2); }
article ul { margin: 0 0 18px 22px; font-size: 17.5px; color: var(--text-2); }
article li { margin-bottom: 6px; }
article .posts { margin-top: 8px; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  header.site .wrap { padding: 0 16px; }
  .logo span { display: none; }
  nav a { padding: 8px 9px; font-size: 13.5px; }
  .hero { padding: 24px 0 32px; }
  .hero-card { border-radius: 22px; }
  section { padding: 40px 0; }
  section h2, .sec-head h2 { font-size: 26px; }
  .job, .skills > div { grid-template-columns: 1fr; gap: 4px; }
  .post-item { padding: 18px; }
  .post-item .arrow { display: none; }
}
