/* ============================================================
   ali cerven | izim — Minimalist tasarım sistemi
   Ruh: Dijital Sığınak. Gürültüsüz, okuma odaklı, sakin.
   ============================================================ */

/* ---------- Değişkenler ---------- */
:root {
  /* Yüzey */
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-soft: #F8F9FA;

  /* Metin */
  --text: #334155;          /* Yumuşak Antrasit */
  --text-muted: #6B7280;
  --text-faint: #9CA3AF;
  --divider: #E5E7EB;

  /* Kategori renkleri */
  --cat-mikro: #334155;
  --cat-is: #5B6B8C;
  --cat-gorsel: #A67B5B;
  --cat-video: #B85C5C;
  --cat-roman: #D48C5F;

  /* Aktif kategori — JS ile güncellenir */
  --accent: #334155;

  /* Tipografi */
  --font-head: 'Inter', 'Space Grotesk', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Lora', 'Merriweather', Georgia, serif;

  /* Gölge */
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);

  /* Ölçü */
  --content-w: 680px;
  --pad-x: 24px;
}

/* ---------- Temel ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--divider);
  transition: color 0.25s ease, border-color 0.25s ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

::selection {
  background: rgba(51, 65, 85, 0.08);
}

/* ---------- Düzen ---------- */
.wrap {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============================================================
   Header — Marka kimliği
   ============================================================ */
.site-header {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--divider);
  background: var(--bg);
}

.header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

/* Logo: [ali cerven] | [izim] */
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand-sep {
  font-weight: 300;
  color: var(--divider);
  font-size: 18px;
}

.brand-iz {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  transition: color 0.45s ease;
}

/* Subtitle — akademik dergi künyesi gibi */
.brand-subtitle {
  margin-top: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: 0.01em;
  max-width: 42ch;
}

/* ---------- Navigasyon ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 8px;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 400;
  white-space: nowrap;
}

.site-nav a {
  color: var(--text-muted);
  border-bottom: none;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  border-bottom: none;
}

.nav-dot {
  color: var(--divider);
  font-size: 9px;
}

/* ============================================================
   İçerik
   ============================================================ */
main {
  padding: 56px 0 80px;
}

/* ---------- Sayfa başlığı ---------- */
.page-head {
  margin-bottom: 44px;
}

.page-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 28px;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ---------- Akış (liste) — edebi arşiv stili ----------
   Kutu/kart yok. Her yazı, bir dergi sayfasındaki kayıt gibi
   ince çizgilerle ayrılır. Sessiz, okuma odaklı, sakin. */
.feed {
  list-style: none;
}

.feed-item {
  display: block;
  transition: color 0.3s ease;
}

.feed-marker {
  flex: 0 0 auto;
  padding-top: 8px;
  width: 18px;
  text-align: center;
}

.feed-marker .marker {
  color: var(--item-color, var(--accent));
  font-size: 14px;
  line-height: 1;
  transition: color 0.3s ease;
}

.feed-body {
  flex: 1;
  min-width: 0;
}

.feed-meta {
  font-family: var(--font-head);
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-meta .cat {
  color: var(--item-color, var(--accent));
}

/* Alt meta satırı (kısa yazıdaki ↗ linki) — sağa hizalanır */
.feed-meta-end {
  margin-top: 12px;
  margin-bottom: 0;
  justify-content: flex-end;
}

.feed-meta-end .read-more {
  font-size: 18px;
  color: var(--text-faint);
  border-bottom: none;
  opacity: 0.6;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.feed-meta-end .read-more:hover {
  color: var(--accent);
  opacity: 1;
}

.feed-title {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feed-title a {
  border-bottom: none;
}

.feed-title a:hover {
  border-bottom-color: var(--accent);
}

.feed-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

.feed-excerpt .read-more {
  margin-left: 4px;
  color: var(--item-color, var(--accent));
  font-family: var(--font-head);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  border-bottom: none;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.feed-excerpt .read-more:hover {
  opacity: 1;
}

/* ---------- Tekil yazı ---------- */
.article {
  max-width: var(--content-w);
}

.article-head {
  margin-bottom: 36px;
}

.article-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.article-meta {
  font-family: var(--font-head);
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.article-meta .cat {
  color: var(--accent);
}

.article-meta .meta-sep {
  color: var(--divider);
}

.article-body {
  font-size: 17px;
  color: var(--text);
}

.article-body p {
  margin-bottom: 1.4em;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 2em 0 0.8em;
}

.article-body h1 { font-size: 24px; }
.article-body h2 { font-size: 21px; }
.article-body h3 { font-size: 18px; }
.article-body h4 { font-size: 16px; }

.article-body a {
  color: var(--accent);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.4em 1.4em;
}

.article-body li {
  margin-bottom: 0.4em;
}

.article-body li::marker {
  color: var(--accent);
}

/* Kod blokları */
.article-body pre {
  background: var(--surface-soft);
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 1.6em;
  box-shadow: var(--shadow);
}

.article-body pre code {
  font-family: 'SF Mono', 'Cascadia Code', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  background: none;
  padding: 0;
  border: none;
}

/* Satır içi kod */
.article-body code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-soft);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 2px 6px;
}

/* Alıntıların düzeltilmesi: markdown2 'code' üretir */
.article-body pre code.hljs,
.article-body pre code {
  background: transparent;
  border: none;
}

/* Alıntı bloğu */
.article-body blockquote {
  margin: 0 0 1.6em;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--divider);
  color: var(--text-muted);
  font-style: italic;
}

.article-body blockquote p {
  margin-bottom: 0.6em;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Tablolar */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6em;
  font-size: 15px;
}

.article-body th,
.article-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
  text-align: left;
}

.article-body th {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* Alt bilgi notu */
.article-foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.7;
}

.article-foot a {
  color: var(--accent);
  border-bottom: none;
}

.article-foot .foot-sep {
  color: var(--divider);
  margin: 0 6px;
}

/* ---------- Manifesto / Hakkında ---------- */
.prose {
  font-size: 17px;
  color: var(--text);
  max-width: var(--content-w);
}

.prose p {
  margin-bottom: 1.4em;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--divider);
  color: var(--text-muted);
  font-style: italic;
}

.prose h1,
.prose h2 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--text);
  margin: 1.8em 0 0.8em;
}

.prose h1 { font-size: 22px; }
.prose h2 { font-size: 19px; }

.prose a {
  color: var(--accent);
}

.contact-line {
  margin-top: 40px;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--text-muted);
}

.contact-line a {
  color: var(--accent);
}

/* ---------- Boş durum ---------- */
.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--text-faint);
  font-family: var(--font-head);
  font-size: 14px;
}

/* ============================================================
   Admin
   ============================================================ */
.admin-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.admin-head {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 36px;
}

.admin-head h1 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 24px;
  color: var(--text);
}

.admin-head p {
  font-family: var(--font-head);
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 6px;
}

.admin-section {
  margin-bottom: 44px;
}

.admin-section-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group textarea {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  min-height: 180px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--accent);
}

.form-group .hint {
  font-family: var(--font-head);
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 5px;
}

.form-row {
  display: flex;
  gap: 14px;
}

.form-row .form-group {
  flex: 1;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--surface);
  background: var(--text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  opacity: 0.88;
  background: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--divider);
}

.btn-ghost:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.btn-danger {
  background: transparent;
  color: var(--cat-video);
  border: 1px solid var(--divider);
  font-size: 12.5px;
  padding: 6px 12px;
}

.btn-danger:hover {
  background: rgba(184, 92, 92, 0.06);
}

.btn-small {
  font-size: 12px;
  padding: 6px 12px;
}

/* Admin yazı listesi */
.admin-posts {
  list-style: none;
}

.admin-post {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}

.admin-post:last-child {
  border-bottom: none;
}

.admin-post .meta {
  flex: 1;
  min-width: 0;
}

.admin-post .meta .t {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-post .meta .s {
  font-family: var(--font-head);
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 2px;
}

.admin-post .status {
  font-family: var(--font-head);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.02em;
  border: 1px solid var(--divider);
  color: var(--text-faint);
}

.admin-post .status.on {
  color: var(--accent);
  border-color: var(--divider);
}

.admin-post-actions {
  display: flex;
  gap: 6px;
}

/* Checkbox satırı */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--text-muted);
}

/* Login sayfası */
.login-form {
  max-width: 360px;
}

.login-msg {
  font-family: var(--font-head);
  font-size: 13.5px;
  line-height: 1.6;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 22px;
  max-width: 360px;
  background: var(--surface-soft);
  border: 1px solid var(--divider);
}

.login-error {
  color: var(--cat-video);
  border-left: 3px solid var(--cat-video);
}

.checkbox-row input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 32px 0 64px;
  border-top: 1px solid var(--divider);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--text-faint);
}

.footer-inner a {
  color: var(--text-faint);
  border-bottom: none;
  margin-left: 14px;
}

.footer-inner a:hover {
  color: var(--accent);
}

/* ============================================================
   HTMX geçişleri
   ============================================================ */
.htmx-swapping {
  opacity: 0;
  transition: opacity 0.15s ease;
}

#feed-container {
  transition: opacity 0.2s ease;
}

#feed-container.htmx-swapping {
  opacity: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 32px 0 28px;
  }

  .header-row {
    flex-direction: column;
    gap: 22px;
  }

  .site-nav {
    padding-top: 0;
    flex-wrap: wrap;
    gap: 14px;
  }

  main {
    padding: 40px 0 60px;
  }

  .article-title {
    font-size: 24px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Pristine görünüm — kenarlık yok, kalın çizgi yok */
/* ============================================================
   Yeni tasarım sistemi ekleri — 2026
   ============================================================ */

/* ---------- Sayfa kayma sorunu: scrollbar her zaman sabit ---------- */
html { overflow-y: scroll; }

/* ---------- Genel düzen ---------- */
.hidden { display: none !important; }

.home { max-width: var(--content-w); }

.home-section { margin-bottom: 64px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}

.section-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 17px;
  color: var(--text);
}

.section-link {
  font-family: var(--font-head);
  font-size: 12.5px;
  color: var(--text-faint);
  border-bottom: none;
}

.section-link:hover { color: var(--accent); }

/* Kısa/uzun post görsel ayrışması aşağıda tanımlıdır (Post görsel ayrışması). */

/* ---------- Admin sekmeler ---------- */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 36px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
  flex-wrap: wrap;
}

.admin-tabs .tab {
  font-family: var(--font-head);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 4px;
  color: var(--text-muted);
  border-bottom: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-tabs .tab:hover { background: var(--surface-soft); color: var(--text); }

.admin-tabs .tab.active {
  background: var(--text);
  color: var(--surface);
}

/* ---------- İçerik promptu (yapay zekâ düzenleme promptu) ---------- */
.content-prompt {
  display: none;
  margin-bottom: 22px;
  border: 1px solid var(--divider);
  border-radius: 6px;
  background: var(--surface-soft);
  overflow: hidden;
}

.content-prompt.active {
  display: block;
}

.content-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  flex-wrap: wrap;
}

.prompt-label {
  font-family: var(--font-head);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.content-prompt pre {
  padding: 16px 18px;
  font-family: 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  max-height: 420px;
  overflow-y: auto;
}

.content-prompt .btn.copied {
  background: rgba(51, 65, 85, 0.08);
  color: var(--text);
}

/* ---------- Tür seçici ---------- */
.type-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.type-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--divider);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 13.5px;
  color: var(--text-muted);
  transition: border-color 0.2s ease, background 0.2s ease;
  background: var(--surface);
}

.type-option:hover { border-color: var(--accent); }

.type-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(51, 65, 85, 0.04);
  color: var(--text);
}

.type-option small {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

.type-option input { accent-color: var(--text); }

.file-input {
  width: 100%;
  padding: 14px;
  border: 1px dashed var(--divider);
  border-radius: 6px;
  background: var(--surface-soft);
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.file-input:hover { border-color: var(--accent); }

/* ---------- Admin listede küçük önizleme ---------- */
.type-badge {
  font-family: var(--font-head);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--surface-soft);
  border: 1px solid var(--divider);
  color: var(--text-muted);
  flex: 0 0 auto;
}

.thumb {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--divider);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-video {
  color: var(--text-faint);
  font-size: 18px;
}

.edit-inline {
  padding: 14px 0 14px 66px;
  border-bottom: 1px solid var(--divider);
}

.edit-inline .form-group { margin-bottom: 12px; }

/* ---------- Masonry grid (İzler) ---------- */
.masonry-grid {
  columns: 3;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--divider);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.masonry-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.12);
}

.masonry-item img {
  width: 100%;
  display: block;
}

.video-thumb { position: relative; }

.video-thumb iframe {
  width: 100%;
  height: 220px;
  display: block;
  border: none;
  pointer-events: none;
}

.video-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  color: var(--text-faint);
  font-family: var(--font-head);
  font-size: 13px;
  background: var(--surface-soft);
}

.masonry-desc {
  padding: 10px 14px 4px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.masonry-meta {
  padding: 0 14px 12px;
  font-family: var(--font-head);
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open {
  visibility: visible;
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 30, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  width: 100%;
  background: var(--surface);
  border-radius: 8px;
  overflow: auto;
  z-index: 1;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  min-height: 200px;
}

.lightbox-media img {
  max-width: 100%;
  max-height: 72vh;
  display: block;
}

.lightbox-media iframe {
  display: block;
  border: none;
}

.lightbox-desc {
  padding: 20px 24px 24px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.7;
}

.lb-meta {
  font-family: var(--font-head);
  font-size: 11.5px;
  color: var(--text-faint);
  margin-bottom: 8px;
}

/* ---------- Anasayfa izler mini grid ---------- */
.home-izler-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.home-izler-item {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--divider);
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-izler-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-izler-item.more {
  color: var(--text-faint);
  font-size: 22px;
  font-family: var(--font-head);
}

/* ---------- Dizi listesi (diziler) ---------- */
.dizi-list { display: flex; flex-direction: column; }

.dizi-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--divider);
}

.dizi-card:last-child { border-bottom: none; }

.dizi-card-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 8px;
}

.dizi-card-title a {
  border-bottom: none;
}

.dizi-card-title a:hover {
  color: var(--accent);
}

.dizi-card-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.dizi-card-meta {
  font-family: var(--font-head);
  font-size: 11.5px;
  color: var(--text-faint);
}

/* ---------- Tek dizi flood görünümü ---------- */
.dizi-page { max-width: var(--content-w); }

.dizi-header {
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--divider);
}

.dizi-description {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-muted);
}

.dizi-meta {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 12.5px;
  color: var(--text-faint);
}

.dizi-bolum {
  display: flex;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--divider);
}

.dizi-bolum:last-child { border-bottom: none; }

.bolum-no {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 400;
  color: #d3d9e0;
  letter-spacing: -0.02em;
  padding-top: 2px;
  width: 42px;
  text-align: right;
}

.bolum-content {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  line-height: 1.9;
}

.bolum-content p {
  margin-bottom: 1.4em;
}

.bolum-content p:last-child { margin-bottom: 0; }

/* ---------- Bizler (landing) ---------- */
.bizler-page { max-width: var(--content-w); }

.bizler-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 40px 0;
  border-bottom: 1px solid var(--divider);
}

.bizler-section:last-child { border-bottom: none; }

.bizler-section:has(.bizler-media) {
  grid-template-columns: 1fr 1.4fr;
  align-items: start;
}

.bizler-media img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--divider);
}

.bizler-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.bizler-content {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text);
}

/* ---------- Anasayfa dizi kartı ---------- */
.home-dizi-card {
  padding: 22px 4px;
  border-bottom: 1px solid var(--divider);
}

.home-dizi-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.home-dizi-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
}

.home-dizi-meta {
  font-family: var(--font-head);
  font-size: 11.5px;
  color: var(--text-faint);
}

.home-dizi-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.home-dizi-excerpt p { margin-bottom: 0.6em; }
.home-dizi-excerpt p:last-child { margin-bottom: 0; }
.home-dizi-excerpt blockquote {
  border-left: 2px solid var(--divider);
  padding-left: 12px;
  font-style: italic;
  margin: 0.6em 0;
}

/* EasyMDE geniş editör (dizi bölümü) */
.wide-editor {
  min-height: 420px;
}

.wide-editor .CodeMirror {
  min-height: 420px;
}

/* ---------- Video thumbnail (izler grid'de) ---------- */
.video-thumb-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-faint);
  font-size: 26px;
  background: #111;
}

/* ============================================================
   Post görsel ayrışması — kısa post vs uzun yazı (2026)
   ============================================================ */

/* ---------- Ortak: liste öğesi içindeki article blokları ---------- */
.feed-item {
  padding: 0;
  margin: 0;
}

/* Eski feed-compact padding kuralını ez — boşluk artık partial'ların içinde */
.feed-compact .feed-item {
  padding: 0;
  margin: 0;
}

/* ---------- Ayraç (separator) — iki post arasında belirgin ama temaya uygun ----------
   Marka kimliğindeki "|" (ali cerven | izim) dilini yansıtır:
   merkezi ince dikey çizgi + iki yanda yatay çizgi, soluk antrasit. */
.feed-sep {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0;
  padding: 0 8px;
  list-style: none;
  color: #C8CDD4;
  user-select: none;
}

.feed-sep::before,
.feed-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

.feed-sep span {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #9CA3AF;
}

/* ---------- KISA POST (tür=kısa) ----------
   Sol çizgi YOK. Tarih + kategori çok küçük ve soluk. İçerik yumuşak renk.
   Az dikey boşluk: padding 16px 0. */
.post-kisa {
  display: block;
  padding: 16px 0;
}

.post-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 11px;
  line-height: 1.5;
}

.post-tarih {
  color: #9CA3AF;
}

.post-kisa .post-metin {
  font-size: 16px;
  font-weight: 400;
  color: #475569;
  line-height: 1.75;
}

.post-metin p { margin-bottom: 0.6em; }
.post-metin p:last-child { margin-bottom: 0; }
.post-metin blockquote {
  border-left: 3px solid var(--divider);
  padding-left: 16px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0.6em 0;
}
.post-metin ul,
.post-metin ol {
  margin: 0 0 0.8em 1.3em;
}
.post-metin pre {
  background: var(--surface-soft);
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0.6em 0 0.8em;
  font-size: 13.5px;
  line-height: 1.7;
}
.post-metin code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--surface-soft);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 2px 5px;
}

/* ---------- UZUN YAZI (tür=uzun) ----------
   Sol çizgi YOK. Başlık Lora 24px medium #1E293B, tarih üstte soluk,
   özet 16px #334155, "devamını oku →" kategori renginde küçük.
   Geniş dikey boşluk: padding 32px 0. */
.post-uzun {
  padding: 32px 0;
}

.post-uzun .post-icerik {
  padding-left: 0;
}

.post-uzun .post-baslik {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.45;
  color: #1E293B;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.post-uzun .post-baslik a {
  border-bottom: none;
}

.post-uzun .post-baslik a:hover {
  color: var(--accent);
}

.post-ozet {
  font-size: 16px;
  color: #334155;
  line-height: 1.75;
}

.post-devam {
  margin-left: 4px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  border-bottom: none;
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.post-devam:hover {
  opacity: 1;
}

/* feed-compact (anasayfa) — kısa postlar için azaltılmış boşluk */
.feed-compact .post-kisa {
  padding: 10px 0;
}

.feed-compact .post-uzun {
  padding: 22px 0;
}

/* ---------- Responsive ekleri ---------- */
@media (max-width: 900px) {
  .masonry-grid { columns: 2; }
}

@media (max-width: 640px) {
  .masonry-grid { columns: 1; }
  .home-izler-grid { grid-template-columns: repeat(3, 1fr); }
  .dizi-bolum { flex-direction: column; gap: 8px; }
  .bolum-no { text-align: left; }
  .bizler-section:has(.bizler-media) { grid-template-columns: 1fr; }
  .lightbox { padding: 16px; }
}
