/* enisemreuz.com — 1100px orta sütun; beyaz, belirgin gölgeli kartlar; blog 3 sütunlu kart ızgarası; yazı ~760px okuma sütunu.
   Renkler token olarak: açık tema :root, koyu tema prefers-color-scheme + [data-theme] (assets/site.js). */
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --card-edge: #ffffff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --pill: #f8fafc;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --code-bg: #0f172a;
  --code-ink: #e2e8f0;
  --topbar: rgba(248, 250, 252, .88);
  --shadow: 0 25px 50px rgba(15, 23, 42, .13), 0 10px 15px rgba(15, 23, 42, .08);
  --shadow-hover: 0 35px 60px rgba(15, 23, 42, .18), 0 15px 25px rgba(15, 23, 42, .12);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --card: #111a2e; --card-edge: #1e293b; --ink: #f1f5f9; --text: #cbd5e1;
    --muted: #94a3b8; --faint: #64748b; --line: #1e293b; --line-soft: #1a2438; --pill: #0f172a;
    --accent: #60a5fa; --accent-soft: #172554; --code-bg: #020617; --code-ink: #e2e8f0;
    --topbar: rgba(11, 17, 32, .88);
    --shadow: 0 25px 50px rgba(0, 0, 0, .45), 0 10px 15px rgba(0, 0, 0, .3);
    --shadow-hover: 0 35px 60px rgba(0, 0, 0, .55), 0 15px 25px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --card: #111a2e; --card-edge: #1e293b; --ink: #f1f5f9; --text: #cbd5e1;
  --muted: #94a3b8; --faint: #64748b; --line: #1e293b; --line-soft: #1a2438; --pill: #0f172a;
  --accent: #60a5fa; --accent-soft: #172554; --code-bg: #020617; --code-ink: #e2e8f0;
  --topbar: rgba(11, 17, 32, .88);
  --shadow: 0 25px 50px rgba(0, 0, 0, .45), 0 10px 15px rgba(0, 0, 0, .3);
  --shadow-hover: 0 35px 60px rgba(0, 0, 0, .55), 0 15px 25px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { 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: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1100px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Üst çubuk */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--topbar); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }

/* Canlı sunucu göstergesi */
:root { --ok: #22c55e; --ok-glow: rgba(34, 197, 94, .5); --warn: #f59e0b; }
.tick { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok-glow); animation: ok-pulse 2.4s ease-in-out infinite; flex-shrink: 0; }
.tick svg { width: 12px; height: 12px; fill: none; stroke: #ffffff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ok-pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--ok-glow); } 50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); } }
.status-text { color: var(--ok); font-weight: 700; letter-spacing: .04em; }
.monitor[data-state="stale"] .tick { background: var(--warn); animation: none; }
.monitor[data-state="stale"] .status-text { color: var(--warn); }

/* Mobil: üst çubukta LED düğmesi (masaüstünde gizli) */
.status-btn { display: none; width: 32px; height: 32px; place-items: center; background: none; border: 0; border-radius: 8px; cursor: pointer; padding: 0; }
.status-btn .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok-glow); animation: ok-pulse 2.4s ease-in-out infinite; }
.status-btn[aria-expanded="true"] { background: var(--card); box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
html[data-sys="stale"] .status-btn .dot { background: var(--warn); animation: none; }

.monitor { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 6; width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); font-family: var(--mono); font-size: .72rem; color: var(--muted); overflow: hidden; }
.monitor-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; background: none; border: 0; border-bottom: 1px solid var(--line-soft); font: inherit; color: inherit; cursor: pointer; text-align: left; }
.monitor-where { margin-left: auto; color: var(--faint); white-space: nowrap; }
.chev { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(180deg); transition: transform .2s; }
.monitor-head:hover .chev { stroke: var(--ink); }
.monitor-body { display: grid; gap: 10px; padding: 10px 12px 12px; }
.monitor[data-collapsed="1"] { width: auto; border-radius: 999px; }
.monitor[data-collapsed="1"] .monitor-body { display: none; }
.monitor[data-collapsed="1"] .monitor-head { border-bottom: 0; padding: 8px 12px; }
.monitor[data-collapsed="1"] .monitor-where { display: none; }
.monitor[data-collapsed="1"] .chev { transform: none; }
.metric-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.metric-top b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.spark { display: block; width: 100%; height: 28px; border-radius: 6px; background: var(--pill); }
.spark polyline { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark-cpu polyline { stroke: #22c55e; }
.spark-mem polyline { stroke: var(--accent); }
.monitor-foot { display: flex; justify-content: space-between; color: var(--faint); font-variant-numeric: tabular-nums; }
.brand span { font-weight: 600; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { font-size: .95rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.nav a.lang { font-size: .8rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); padding: 4px 9px; margin-left: 4px; }
.nav a.lang:hover { color: var(--accent); border-color: var(--accent); }
.note-line { margin: -10px 0 0; font-size: .9rem; color: var(--muted); }
.theme { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; }
.theme:hover { color: var(--ink); }
.theme svg { width: 18px; height: 18px; }

.page { padding-block: 44px 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.footer { padding-block: 0 48px; color: var(--faint); font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Kartlar */
.card { background: var(--card); border: 1px solid var(--card-edge); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); min-width: 0; }
.lift { transition: transform .2s, box-shadow .2s; }
.lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.card-title.sub { margin-top: 32px; }
.go { font-weight: 700; color: var(--ink); text-decoration: none; }
.go:hover { color: var(--accent); }

/* Profil */
.profile { display: flex; gap: 40px; align-items: flex-start; padding: 48px; }
.avatar { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--card-edge); box-shadow: 0 8px 24px rgba(15, 23, 42, .12); margin-top: 4px; }
.bio { min-width: 0; }
.profile h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.15; }
.role { font-size: 1.12rem; font-weight: 600; color: var(--muted); margin: 0 0 20px; }
.bio-text p { margin: 0 0 14px; max-width: 70ch; font-size: 1.04rem; }
.bio-text strong { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 22px; }
.contact { display: grid; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.label { font-size: .78rem; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; min-width: 80px; }
.plain { font-size: .95rem; font-weight: 600; color: var(--muted); text-decoration: none; }
a.plain:hover { color: var(--accent); }

/* Kariyer zaman çizelgesi */
.job { display: grid; grid-template-columns: 170px 1fr; gap: 10px 32px; padding: 26px 0; border-top: 1px solid var(--line-soft); }
.job:first-child { border-top: 0; padding-top: 0; }
.job:last-child { padding-bottom: 0; }
.job-side { display: grid; gap: 10px; align-content: start; }
.date { font-size: .85rem; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.now { display: inline-block; margin-left: 4px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
/* Şirket logoları: şeffaf PNG, temaya göre açık/koyu sürüm */
.logo { display: block; height: 40px; }
.logo img { height: 100%; width: auto; max-width: 160px; object-fit: contain; object-position: left center; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.job-text { min-width: 0; }
.job h3 { margin: 0; font-size: 1.08rem; font-weight: 800; }
.company { font-weight: 600; color: var(--muted); font-size: .95rem; }
.job p { margin: 8px 0 0; font-size: .97rem; }
.tech { margin-top: 10px; font-size: .85rem; color: var(--faint); font-weight: 600; }

/* Uzmanlıklar */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.group { margin-bottom: 22px; }
.group:last-child { margin-bottom: 0; }
.group h4 { margin: 0 0 10px; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: var(--pill); color: var(--text); border: 1px solid var(--line); padding: 6px 14px; border-radius: 10px; font-size: .85rem; font-weight: 600; }

/* Projeler */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: var(--pill); }
.project h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 800; }
.project p { margin: 0; font-size: .93rem; color: var(--muted); }

/* Eğitim / sertifika */
.list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.list li { display: grid; gap: 2px; }
.list b { color: var(--ink); font-weight: 700; }
.list span { font-size: .9rem; color: var(--muted); }

/* Blog kartları */
.latest { display: grid; gap: 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.section-head h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; }
.cover { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
div.cover { display: grid; place-items: center; padding: 18px; color: #e2e8f0; font-family: var(--mono); font-size: .85rem; text-align: center; line-height: 1.4; }
div.cover span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cover-1 { background: linear-gradient(135deg, #1e3a8a, #0f172a); }
.cover-2 { background: linear-gradient(135deg, #0f766e, #0f172a); }
.cover-3 { background: linear-gradient(135deg, #7c2d12, #0f172a); }
.cover-4 { background: linear-gradient(135deg, #4c1d95, #0f172a); }
.cover-5 { background: linear-gradient(135deg, #334155, #0f172a); }
.cover-6 { background: linear-gradient(135deg, #1d4ed8, #312e81); }
.post-body { padding: 22px 24px 26px; display: grid; gap: 10px; }
.meta { font-size: .8rem; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.post h3 { margin: 0; font-size: 1.12rem; font-weight: 800; line-height: 1.35; }
.post p { margin: 0; font-size: .93rem; color: var(--muted); }
.empty { text-align: center; }
.empty h1, .empty h2 { margin: 0 0 8px; }
.empty p { margin: 0 0 14px; color: var(--muted); }

/* Yazı sayfası */
.article { width: 100%; max-width: 760px; margin: 0 auto; padding: 48px 56px; }
.back { display: inline-block; margin-bottom: 18px; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 6px 0 12px; }
.article > .meta { margin: 0 0 18px; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 26px; }
.article-cover { display: block; width: 100%; border-radius: 16px; margin: 0 0 28px; border: 1px solid var(--line); }
.prose { overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.35rem; font-weight: 800; margin: 36px 0 10px; }
.prose h3 { font-size: 1.12rem; font-weight: 800; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 1.06rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 22px; }
.prose a { color: var(--accent); }
.prose img { display: block; border-radius: 14px; margin: 22px auto; border: 1px solid var(--line); }
.prose blockquote { margin: 26px 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--pill); border-radius: 0 12px 12px 0; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--pill); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.prose pre { margin: 22px 0; padding: 18px 20px; background: var(--code-bg); color: var(--code-ink); border-radius: 14px; overflow-x: auto; font-size: .88rem; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 22px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--pill); color: var(--ink); }
.author { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.author b { color: var(--ink); display: block; }
.author span { font-size: .9rem; color: var(--muted); }

@media (max-width: 900px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .profile { flex-direction: column; align-items: center; text-align: center; padding: 32px 22px; gap: 22px; }
  .bio-text p { margin-inline: auto; }
  .actions, .contact-row { justify-content: center; }
  .label { min-width: 0; width: 100%; }
  .card { padding: 28px 22px; }
  .post { padding: 0; }
  .job { grid-template-columns: 1fr; }
  .job-side { grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
  .logo { height: 32px; }
  .projects { grid-template-columns: 1fr; }
  .article { padding: 30px 22px; }
}
@media (max-width: 600px) {
  .posts { grid-template-columns: 1fr; }
  .brand span { display: none; }
}
@media (max-width: 600px) {
  .topbar-inner { gap: 10px; padding-block: 10px; }
  .brand { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .nav { gap: 2px; flex-shrink: 0; }
  .nav a { font-size: .85rem; padding: 6px 8px; }
  .nav a.lang { font-size: .72rem; padding: 3px 7px; margin-left: 2px; }
  .theme { width: 32px; height: 32px; }
  .page { padding-block: 24px 48px; gap: 20px; }
  /* Gösterge mobilde üst çubuğun altından açılan panel */
  .status-btn { display: grid; }
  .monitor { top: calc(56px + env(safe-area-inset-top, 0px)); bottom: auto; width: min(280px, calc(100vw - 32px)); display: none; }
  html[data-monitor="open"] .monitor:not([hidden]) { display: block; animation: drop-in .18s ease-out; }
  .monitor-head { cursor: default; }
  .chev { display: none; }
  .monitor[data-collapsed="1"] { width: min(280px, calc(100vw - 32px)); border-radius: 16px; }
  .monitor[data-collapsed="1"] .monitor-body { display: grid; }
  .monitor[data-collapsed="1"] .monitor-head { border-bottom: 1px solid var(--line-soft); padding: 10px 12px; }
  .monitor[data-collapsed="1"] .monitor-where { display: inline; }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lift, .lift:hover { transition: none; transform: none; }
  .tick, .status-btn .dot { animation: none; }
  html[data-monitor="open"] .monitor:not([hidden]) { animation: none; }
}
