/*
 * public/assets/css/app.css
 * emrecihan.com.tr — Design System
 * Typography-first, restrained, senior engineer aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@300;400;500&display=swap');

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ───────────────────────────────────── */
:root {
  --bg:       #0a0a0a;
  --s1:       #111111;
  --s2:       #161616;
  --s3:       #1c1c1c;
  --border:   rgba(255,255,255,0.08);
  --border2:  rgba(255,255,255,0.13);
  --txt:      #ededed;
  --txt2:     #888888;
  --txt3:     #555555;
  --txt4:     #333333;
  --accent:   #e8642a;
  --accent-d: rgba(232,100,42,0.10);
  --sans:     'Geist', system-ui, sans-serif;
  --mono:     'Geist Mono', monospace;
  --ease:     cubic-bezier(.16,1,.3,1);
  --nav-h:    56px;
}

/* ── Base ────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(232,100,42,0.20); color: var(--txt); }

::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--s3); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout ──────────────────────────────────────────── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ── NAV ─────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
#nav.solid {
  background: rgba(10,10,10,0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo { display: flex; align-items: center; gap: 9px; }
.nav-logo-mark {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-mark svg { width: 12px; height: 12px; }
.nav-logo-name { font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--txt); }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  font-size: 13.5px; color: var(--txt3);
  padding: 5px 13px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--txt2); background: rgba(255,255,255,.04); }
.nav-links a.active { color: var(--txt2); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-icon-btn {
  width: 32px; height: 32px; border-radius: 7px;
  border: 1px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--txt3);
  transition: color .15s, border-color .15s, background .15s;
}
.nav-icon-btn:hover { color: var(--txt2); border-color: var(--border2); background: var(--s2); }
.nav-icon-btn svg {
  width: 14px; height: 14px; stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.nav-spacer { height: var(--nav-h); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  padding: 9px 18px; border-radius: 8px; border: none;
  cursor: pointer; transition: all .15s; letter-spacing: -.01em;
}
.btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-ghost { background: var(--s2); color: var(--txt2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--txt); border-color: var(--border2); }
.btn-sm { font-size: 12.5px; padding: 6px 13px; }

/* ── Section label ───────────────────────────────────── */
.section-label {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 40px;
}
.section-label-text {
  font-family: var(--mono); font-size: 11.5px; color: var(--txt3);
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.section-label-line { flex: 1; height: 1px; background: var(--border); }
.section-label-link {
  font-family: var(--mono); font-size: 11.5px; color: var(--txt3);
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  transition: color .15s;
}
.section-label-link:hover { color: var(--accent); }
.section-label-link svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Divider ─────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); }

/* ── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10.5px;
  padding: 3px 9px; border-radius: 5px; letter-spacing: .04em;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ── Post card (list row style) ──────────────────────── */
.post-row {
  display: grid; grid-template-columns: 140px 1fr 56px;
  align-items: start; gap: 28px;
  padding: 24px 16px; margin: 0 -16px;
  border-bottom: 1px solid var(--border);
  border-radius: 6px; transition: background .15s;
}
.post-row:first-child { border-top: 1px solid var(--border); }
.post-row:hover { background: var(--s1); }
.post-row:hover .post-row-title { color: var(--txt); }
.post-row-meta { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.post-row-cat {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .05em; text-transform: uppercase;
}
.post-row-cat-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.post-row-date { font-family: var(--mono); font-size: 11px; color: var(--txt3); }
.post-row-title {
  font-size: 15px; font-weight: 500; color: var(--txt2);
  letter-spacing: -.015em; line-height: 1.4;
  transition: color .2s;
}
.post-row-excerpt {
  font-size: 13px; color: var(--txt3); line-height: 1.65;
  font-weight: 300; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-row-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.post-row-tag {
  font-family: var(--mono); font-size: 10px;
  padding: 2px 7px; border-radius: 4px;
  background: var(--s2); border: 1px solid var(--border); color: var(--txt4);
}
.post-row-read { font-family: var(--mono); font-size: 11px; color: var(--txt3); white-space: nowrap; padding-top: 3px; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-logo { font-family: var(--mono); font-size: 12.5px; color: var(--txt3); }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-family: var(--mono); font-size: 12px; color: var(--txt3);
  transition: color .15s;
}
.footer-links a:hover { color: var(--txt2); }
.footer-copy { font-family: var(--mono); font-size: 11.5px; color: var(--txt4); }

/* ── Toast ───────────────────────────────────────────── */
#toast-stack {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 9px;
  background: var(--s2); border: 1px solid var(--border2);
  pointer-events: all; min-width: 240px; max-width: 340px;
  transform: translateX(120%); opacity: 0;
  transition: transform .35s var(--ease), opacity .3s;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.toast-msg { font-size: 13px; color: var(--txt2); flex: 1; line-height: 1.4; }
.toast-close { color: var(--txt3); background: transparent; border: none; font-size: 16px; cursor: pointer; transition: color .15s; }
.toast-close:hover { color: var(--txt2); }

/* ── Animations ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fu   { opacity: 0; animation: fadeUp .55s var(--ease) forwards; }
.fu-1 { animation-delay: .05s; }
.fu-2 { animation-delay: .12s; }
.fu-3 { animation-delay: .19s; }
.fu-4 { animation-delay: .26s; }
.fu-5 { animation-delay: .33s; }

.reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .post-row { grid-template-columns: 1fr; gap: 8px; }
  .post-row-meta { flex-direction: row; align-items: center; gap: 12px; }
  .post-row-read { display: none; }
}
