/* =========================================================
   TEMALAR — renkler ve yazı tipleri
   ========================================================= */

/* ---------- Dark Souls: kül, taş, kor ---------- */
:root,
[data-theme="darksouls"] {
  --bg: #0d0c0a;
  --bg-glow: radial-gradient(ellipse 90% 55% at 50% 110%, rgba(214, 110, 32, 0.22), transparent 70%),
             radial-gradient(ellipse 60% 40% at 50% -10%, rgba(120, 110, 95, 0.12), transparent 70%);
  --surface: rgba(28, 25, 21, 0.72);
  --text: #d8d0c0;
  --muted: #8f8676;
  --accent: #e08a3c;
  --accent-soft: rgba(224, 138, 60, 0.15);
  --line: rgba(190, 170, 140, 0.18);
  --title-color: #efe4cc;
  --title-shadow: 0 0 18px rgba(230, 130, 50, 0.45), 0 0 2px rgba(255, 200, 120, 0.5);
  --font-title: "Cinzel", Georgia, serif;
  --font-body: "EB Garamond", Georgia, serif;
  --title-case: uppercase;
  --title-track: 0.14em;
  --radius: 2px;
  --vignette: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.75) 100%);
  --sigil: "✦";
  color-scheme: dark;
}

/* ---------- Black Souls: karanlık masal, kan ve kâğıt ---------- */
[data-theme="blacksouls"] {
  --bg: #070507;
  --bg-glow: radial-gradient(ellipse 70% 50% at 15% 0%, rgba(110, 10, 30, 0.28), transparent 70%),
             radial-gradient(ellipse 60% 50% at 100% 100%, rgba(70, 20, 70, 0.25), transparent 70%);
  --surface: rgba(18, 10, 14, 0.78);
  --text: #d9cfd4;
  --muted: #8a7480;
  --accent: #c41e3a;
  --accent-text: #ec3d4f;
  --accent-soft: rgba(196, 30, 58, 0.14);
  --line: rgba(196, 30, 58, 0.28);
  --title-color: #f0e6ea;
  --title-shadow: 2px 2px 0 rgba(140, 10, 30, 0.8);
  --font-title: "Grenze Gotisch", "Times New Roman", serif;
  --font-body: "Crimson Pro", Georgia, serif;
  --title-case: none;
  --title-track: 0.02em;
  --radius: 0;
  --vignette: radial-gradient(ellipse at center, transparent 40%, rgba(40, 0, 10, 0.85) 100%);
  --sigil: "❦";
  color-scheme: dark;
}

/* ---------- Bloodborne: viktoryen gotik, ay ve kan ---------- */
[data-theme="bloodborne"] {
  --bg: #08090d;
  --bg-glow: radial-gradient(circle at 87% 24%, rgba(236, 228, 205, 0.9) 0, rgba(236, 228, 205, 0.85) 46px, rgba(236, 228, 205, 0.18) 50px, rgba(236, 228, 205, 0.06) 120px, transparent 260px),
             radial-gradient(ellipse 100% 60% at 50% 120%, rgba(120, 8, 20, 0.35), transparent 70%),
             linear-gradient(180deg, #0c0e16 0%, #08090d 60%);
  --surface: rgba(14, 14, 20, 0.78);
  --text: #d6d0c4;
  --muted: #857e74;
  --accent: #b3122a;
  --accent-text: #e8384a;
  --accent-soft: rgba(179, 18, 42, 0.15);
  --line: rgba(200, 185, 150, 0.2);
  --title-color: #e9e1cb;
  --title-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  --font-title: "Cormorant Garamond", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --title-case: none;
  --title-track: 0.04em;
  --radius: 0;
  --vignette: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.8) 100%);
  --sigil: "☾";
  color-scheme: dark;
}

/* ---------- Re:Zero: gümüş, lavanta, mavi; zaman döngüsü ---------- */
[data-theme="rezero"] {
  --bg: #f1eff8;
  --bg-glow: radial-gradient(ellipse 60% 50% at 0% 0%, rgba(150, 175, 235, 0.45), transparent 70%),
             radial-gradient(ellipse 60% 50% at 100% 20%, rgba(230, 175, 210, 0.35), transparent 70%),
             radial-gradient(ellipse 80% 60% at 50% 110%, rgba(180, 160, 230, 0.4), transparent 70%);
  --surface: rgba(255, 255, 255, 0.7);
  --text: #3a3550;
  --muted: #6a6583;
  --accent: #5b6fd6;
  --accent-text: #4054bd;
  --accent-soft: rgba(91, 111, 214, 0.12);
  --line: rgba(110, 100, 160, 0.22);
  --title-color: #2f2a4a;
  --title-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  --font-title: "Jost", "Segoe UI", sans-serif;
  --font-body: "Lora", Georgia, serif;
  --title-case: none;
  --title-track: 0.05em;
  --radius: 10px;
  --vignette: none;
  --sigil: "❖";
  color-scheme: light;
}

/* ---------- Alice Harikalar Diyarında: masal kitabı, iskambil, çay partisi ---------- */
[data-theme="alice"] {
  --bg: #f5eedd;
  --bg-glow: radial-gradient(ellipse 70% 50% at 0% 0%, rgba(120, 175, 210, 0.28), transparent 70%),
             radial-gradient(ellipse 60% 45% at 100% 100%, rgba(214, 80, 90, 0.16), transparent 70%),
             radial-gradient(circle at 50% 40%, rgba(255, 252, 240, 0.9), transparent 70%);
  --surface: rgba(255, 252, 243, 0.86);
  --text: #2e2a26;
  --muted: #706558;
  --accent: #c0283a;
  --accent-soft: rgba(192, 40, 58, 0.1);
  --line: rgba(60, 50, 40, 0.2);
  --title-color: #1f3d66;
  --title-shadow: 2px 2px 0 rgba(192, 40, 58, 0.18);
  --font-title: "Playfair Display", Georgia, serif;
  --font-body: "Libre Baskerville", Georgia, serif;
  --title-case: none;
  --title-track: 0.01em;
  --radius: 12px;
  --vignette: radial-gradient(ellipse at center, transparent 60%, rgba(120, 90, 50, 0.18) 100%);
  --sigil: "♥";
  color-scheme: light;
}

/* ---------- Hollow Knight: lacivert yeraltı krallığı, soluk ruh ışıkları ---------- */
[data-theme="hollowknight"] {
  --bg: #0a101c;
  --bg-glow: radial-gradient(ellipse 50% 60% at 50% -10%, rgba(169, 216, 255, 0.18), transparent 70%),
             radial-gradient(ellipse 80% 40% at 50% 110%, rgba(60, 90, 140, 0.35), transparent 70%);
  --surface: rgba(12, 20, 34, 0.84);
  --text: #dfe7f0;
  --muted: #93a2b5;
  --accent: #a9d8ff;
  --accent-soft: rgba(169, 216, 255, 0.12);
  --line: rgba(169, 216, 255, 0.2);
  --title-color: #eef6ff;
  --title-shadow: 0 0 14px rgba(169, 216, 255, 0.45);
  --font-title: "Cinzel", Georgia, serif;
  --font-body: "Crimson Pro", Georgia, serif;
  --title-case: uppercase;
  --title-track: 0.12em;
  --radius: 2px;
  --vignette: radial-gradient(ellipse at center, transparent 45%, rgba(2, 5, 12, 0.85) 100%);
  --sigil: "✧";
  color-scheme: dark;
}

/* ---------- Silent Hill: sis, pas, daktilo notları ---------- */
[data-theme="silenthill"] {
  --bg: #262522;
  --bg-glow: radial-gradient(ellipse 90% 60% at 50% 40%, rgba(170, 165, 155, 0.22), transparent 75%),
             radial-gradient(ellipse 70% 40% at 50% 110%, rgba(110, 40, 20, 0.25), transparent 70%);
  --surface: rgba(40, 38, 34, 0.86);
  --text: #e6e2da;
  --muted: #a8a298;
  --accent: #9c4a26;
  --accent-text: #d67b52;
  --accent-soft: rgba(156, 74, 38, 0.16);
  --line: rgba(200, 190, 175, 0.18);
  --title-color: #ece7dc;
  --title-shadow: 0 0 18px rgba(210, 205, 195, 0.25);
  --font-title: "Libre Baskerville", Georgia, serif;
  --font-body: "Courier Prime", "Courier New", monospace;
  --title-case: uppercase;
  --title-track: 0.26em;
  --radius: 0;
  --vignette: radial-gradient(ellipse at center, transparent 40%, rgba(10, 9, 8, 0.85) 100%);
  --sigil: "✕";
  color-scheme: dark;
}

/* ---------- Madoka Magica: pembe, mor, cadı labirenti kolajı ---------- */
[data-theme="madoka"] {
  --bg: #fbeef4;
  --bg-glow: radial-gradient(ellipse 60% 50% at 0% 0%, rgba(240, 150, 190, 0.35), transparent 70%),
             radial-gradient(ellipse 60% 50% at 100% 30%, rgba(160, 120, 220, 0.28), transparent 70%),
             radial-gradient(ellipse 80% 50% at 50% 110%, rgba(255, 200, 120, 0.25), transparent 70%);
  --surface: rgba(255, 255, 255, 0.84);
  --text: #34202f;
  --muted: #74586c;
  --accent: #d63a70;
  --accent-text: #c22e63;
  --accent-2: #6a3fb5;
  --accent-soft: rgba(214, 58, 112, 0.1);
  --line: rgba(160, 90, 130, 0.25);
  --title-color: #2a1830;
  --title-shadow: 2px 2px 0 rgba(214, 58, 112, 0.18);
  --font-title: "Playfair Display", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --title-case: none;
  --title-track: 0.02em;
  --radius: 14px;
  --vignette: radial-gradient(ellipse at center, transparent 65%, rgba(120, 60, 110, 0.12) 100%);
  --sigil: "✿";
  color-scheme: light;
}

/* ---------- Undertale: piksel, siyah zemin, beyaz diyalog kutuları ---------- */
[data-theme="undertale"] {
  --bg: #000000;
  --bg-glow: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 255, 255, 0.04), transparent 70%);
  --surface: #000000;
  --text: #ffffff;
  --muted: #b4b4b4;
  --accent: #ffe14d;
  --accent-soft: rgba(255, 225, 77, 0.14);
  --line: rgba(255, 255, 255, 0.35);
  --title-color: #ffffff;
  --title-shadow: none;
  --font-title: "Pixelify Sans", ui-monospace, monospace;
  --font-body: "VT323", ui-monospace, monospace;
  --title-case: none;
  --title-track: 0.02em;
  --radius: 0;
  --vignette: none;
  --sigil: "♥";
  color-scheme: dark;
}

/* ---------- Evangelion: mor, yeşil, turuncu uyarılar, altıgen alan ---------- */
[data-theme="evangelion"] {
  --bg: #0c0a12;
  --bg-glow: radial-gradient(ellipse 60% 50% at 0% 0%, rgba(138, 79, 214, 0.3), transparent 70%),
             radial-gradient(ellipse 50% 50% at 100% 100%, rgba(122, 217, 74, 0.14), transparent 70%),
             radial-gradient(ellipse 80% 40% at 50% 110%, rgba(255, 122, 26, 0.16), transparent 70%);
  --surface: rgba(16, 12, 24, 0.88);
  --text: #ece8f2;
  --muted: #a39cb4;
  --accent: #7ad94a;
  --accent-text: #8be05c;
  --accent-2: #8a4fd6;
  --accent-soft: rgba(122, 217, 74, 0.12);
  --line: rgba(138, 79, 214, 0.38);
  --title-color: #ffffff;
  --title-shadow: none;
  --font-title: "Noto Serif", Georgia, serif;
  --font-body: "Barlow Condensed", "Arial Narrow", sans-serif;
  --title-case: uppercase;
  --title-track: 0.02em;
  --radius: 0;
  --vignette: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.75) 100%);
  --sigil: "⬢";
  color-scheme: dark;
}

/* ---------- Vice City: 80'ler Miami gecesi, pembe ve turkuaz neon ---------- */
[data-theme="vicecity"] {
  --bg: #14072a;
  --bg-glow: radial-gradient(ellipse 90% 55% at 50% 105%, rgba(255, 120, 110, 0.45), rgba(194, 55, 143, 0.25) 45%, transparent 75%),
             radial-gradient(ellipse 60% 50% at 0% 0%, rgba(255, 79, 163, 0.22), transparent 70%),
             radial-gradient(ellipse 60% 50% at 100% 10%, rgba(45, 226, 230, 0.18), transparent 70%),
             linear-gradient(180deg, #1a0838 0%, #2a0c4a 55%, #4a1250 100%);
  --surface: rgba(22, 8, 44, 0.84);
  --text: #fbeaf6;
  --muted: #c7a6cf;
  --accent: #ff4fa3;
  --accent-2: #2de2e6;
  --accent-soft: rgba(255, 79, 163, 0.16);
  --line: rgba(45, 226, 230, 0.3);
  --title-color: #ff7ac0;
  --title-shadow: 0 0 8px rgba(255, 79, 163, 0.85);
  --font-title: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;
  --title-case: uppercase;
  --title-track: 0.08em;
  --radius: 14px;
  --vignette: radial-gradient(ellipse at center, transparent 60%, rgba(10, 2, 24, 0.6) 100%);
  --sigil: "✦";
  color-scheme: dark;
}

/* ---------- Cyberpunk 2077: neon sarı, camgöbeği, pembe; gece şehri ---------- */
[data-theme="cyberpunk"] {
  --bg: #05060a;
  --bg-glow: radial-gradient(ellipse 60% 45% at 0% 0%, rgba(252, 238, 10, 0.13), transparent 70%),
             radial-gradient(ellipse 55% 55% at 100% 30%, rgba(0, 240, 255, 0.16), transparent 70%),
             radial-gradient(ellipse 80% 50% at 50% 110%, rgba(255, 42, 109, 0.22), transparent 70%);
  --surface: rgba(8, 11, 18, 0.88);
  --text: #e6eef5;
  --muted: #7d8a9b;
  --accent: #fcee0a;
  --accent-2: #00f0ff;
  --accent-soft: rgba(252, 238, 10, 0.12);
  --line: rgba(0, 240, 255, 0.25);
  --title-color: #fcee0a;
  --title-shadow: 2px 0 0 rgba(0, 240, 255, 0.7), -2px 0 0 rgba(255, 42, 109, 0.7);
  --font-title: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Chakra Petch", "Segoe UI", sans-serif;
  --title-case: uppercase;
  --title-track: 0.06em;
  --radius: 0;
  --vignette: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.75) 100%);
  --sigil: "◢";
  color-scheme: dark;
}

/* ---------- qimp: neon, sıvı renkler, sokak; kapak havası ---------- */
[data-theme="qimp"] {
  --bg: #0a0710;
  --bg-glow: radial-gradient(ellipse 70% 60% at 0% 20%, rgba(255, 30, 90, 0.38), transparent 65%),
             radial-gradient(ellipse 60% 60% at 100% 30%, rgba(30, 230, 190, 0.28), transparent 65%),
             radial-gradient(ellipse 80% 50% at 50% 110%, rgba(140, 20, 120, 0.35), transparent 70%);
  --surface: rgba(12, 8, 18, 0.84);
  --text: #efeaf6;
  --muted: #a99cbb;
  --accent: #ff2d6f;
  --accent-2: #2ef2c8;
  --accent-soft: rgba(255, 45, 111, 0.16);
  --line: rgba(239, 234, 246, 0.22);
  --title-color: #ffffff;
  --title-shadow: -2px 0 0 rgba(255, 45, 111, 0.85), 2px 0 0 rgba(46, 242, 200, 0.85);
  --font-title: "Anton", "Impact", sans-serif;
  --font-body: "Rubik", "Segoe UI", sans-serif;
  --title-case: uppercase;
  --title-track: 0.04em;
  --radius: 4px;
  --vignette: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.7) 100%);
  --sigil: "✧";
  color-scheme: dark;
}

/* =========================================================
   TEMEL
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

/* Kaydırma çubuğu için yeri hep ayır: kısa/uzun sayfalar arasında geçerken içerik kaymasın */
html { -webkit-text-size-adjust: 100%; overflow-y: scroll; scrollbar-gutter: stable; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Tema geçişi: eski görünüm yumuşakça yenisine karışır (View Transitions) */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
/* Desteklemeyen tarayıcılar için hafif solma */
.theme-fading .shell, .theme-fading #fx { opacity: 0; }
.shell, #fx { transition: opacity 0.18s ease; }
[data-theme="bloodborne"] body { font-size: 1.25rem; }

/* Arka plan katmanları: mobilde adres çubuğu açılıp kapanırken yeniden boyutlanmasınlar diye
   yükseklikleri "büyük ekran yüksekliği" (100lvh) ile sabit; background-attachment: fixed kullanılmaz. */
body::after {
  content: ""; position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh;
  z-index: -1; pointer-events: none; background: var(--bg-glow);
}
#fx, .vignette { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; pointer-events: none; }
#fx { z-index: 0; }
.vignette { z-index: 1; background: var(--vignette); }

.shell {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--accent-text, var(--accent)); text-decoration: none; transition: color 0.2s, text-shadow 0.2s; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }

/* =========================================================
   ÜST KISIM
   ========================================================= */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand theme" "nav nav";
  gap: 18px 16px;
  align-items: start;
  padding: 48px 0 20px;
}
.brand { grid-area: brand; min-width: 0; }
/* Başlık, slogan ve menü sabit yükseklikte: hangi tema/font olursa olsun
   üst kısım ve altındaki çizgi her temada aynı yerde durur */
.site-title {
  display: flex;
  align-items: center;
  width: fit-content;
  height: 3.1rem;
  line-height: 1;
  max-width: 100%;
  overflow-wrap: break-word;
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 5.6vw, 2.7rem);
  line-height: 1.1;
  color: var(--title-color);
  text-transform: var(--title-case);
  letter-spacing: var(--title-track);
  text-shadow: var(--title-shadow);
}
.site-title:hover { text-decoration: none; }
.site-title em { font-style: italic; font-size: 0.72em; color: var(--accent-text, var(--accent)); margin: 0 0.06em; letter-spacing: 0.02em; text-transform: lowercase; }
[data-theme="alice"] .site-title { font-weight: 700; font-style: italic; }
[data-theme="rezero"] .site-title { font-weight: 500; }
[data-theme="rezero"] .site-title em { font-weight: 300; }
[data-theme="rezero"] .page-title,
[data-theme="rezero"] .post-title,
[data-theme="rezero"] .post-item h2 { font-weight: 500; }
[data-theme="alice"] .site-title em { font-weight: 500; }
[data-theme="darksouls"] .site-title {
  animation: ember-glow 4s ease-in-out infinite;
  /* Büyük harfli Cinzel geniş olduğu için başlık tek satıra sığsın diye biraz küçük */
  font-size: clamp(1.2rem, 4.4vw, 2.2rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
[data-theme="bloodborne"] .site-title { font-style: italic; font-weight: 600; }

.tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5rem;
  height: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-family: var(--font-title);
  text-transform: var(--title-case);
  letter-spacing: calc(var(--title-track) * 0.7);
  font-size: 0.95rem;
  line-height: 1.75rem;
}
.main-nav a { display: block; height: 2rem; color: var(--muted); padding: 2px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover { color: var(--text); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--accent-text, var(--accent)); border-bottom-color: var(--accent); }
[data-theme="blacksouls"] .main-nav { font-size: 1.15rem; }

/* Tema seçici */
.theme-picker { grid-area: theme; position: relative; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 0.85rem;
  font-family: var(--font-title);
  letter-spacing: 0.05em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.theme-toggle:hover { border-color: var(--accent); }
.sigil::before { content: var(--sigil); color: var(--accent-text, var(--accent)); }

.theme-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  list-style: none; margin: 0; padding: 6px;
  min-width: 190px;
  white-space: nowrap;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 10;
}
.theme-menu[hidden] { display: none; }
.theme-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  font: inherit; font-size: 0.95rem; text-align: left;
  color: var(--text); background: none; border: 0; border-radius: var(--radius);
  padding: 8px 10px; cursor: pointer;
}
.theme-menu button:hover { background: var(--accent-soft); }
.theme-menu button[aria-checked="true"] { color: var(--accent-text, var(--accent)); }
.theme-menu button[aria-checked="true"]::after { content: "•"; margin-left: auto; }

.swatch { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 1px solid rgba(128, 128, 128, 0.4); }
.swatch-blacksouls { background: linear-gradient(135deg, #070507 50%, #c41e3a 50%); }
.swatch-darksouls  { background: radial-gradient(circle at 50% 70%, #f0a050, #6b3a14 55%, #0d0c0a 80%); }
.swatch-bloodborne { background: radial-gradient(circle at 65% 35%, #ece4cd 25%, #0c0e16 30%, #08090d 60%, #b3122a 100%); }
.swatch-rezero     { background: linear-gradient(135deg, #8cabf0, #c8b4ee, #f0b0cc); }
.swatch-hollowknight { background: radial-gradient(circle at 50% 35%, #eef6ff 0 18%, #2a4466 30%, #0a101c 70%); }
.swatch-silenthill { background: linear-gradient(180deg, #bdb8ae, #4a4741 60%, #9c4a26); }
.swatch-madoka { background: conic-gradient(#d63a70 0 25%, #fbeef4 0 50%, #6a3fb5 0 75%, #fbeef4 0); }
.swatch-undertale { background: radial-gradient(circle at 50% 55%, #ff1a1a 0 28%, #000 32%); border-color: #fff !important; }
.swatch-evangelion { background: linear-gradient(135deg, #8a4fd6 0 50%, #7ad94a 50% 75%, #ff7a1a 75%); }
.swatch-vicecity { background: linear-gradient(180deg, #2a0c4a 0 40%, #ff6f9e 40% 70%, #2de2e6 70%); }
.swatch-persona3 { background: radial-gradient(circle at 65% 35%, #e9f5b0 0 22%, #0a1a46 26%, #050b1e 70%); }
.swatch-persona5 { background: linear-gradient(135deg, #e60012 0 45%, #0d0d0d 45% 62%, #fff 62% 70%, #0d0d0d 70%); border-radius: 0 !important; }
.swatch-eldenring { background: radial-gradient(circle at 50% 40%, #ffe7a0 0 12%, #d4a73c 18%, #3a2c12 48%, #0b0a07 75%); }

/* ---------- Persona 3: gece mavisi, dev ay, Karanlık Saat ---------- */
[data-theme="persona3"] {
  --bg: #050b1e;
  --bg-glow: radial-gradient(ellipse 50% 45% at 82% 6%, rgba(200, 235, 140, 0.16), transparent 70%),
             radial-gradient(ellipse 70% 50% at 10% 100%, rgba(29, 120, 255, 0.22), transparent 70%);
  --surface: rgba(8, 18, 46, 0.82);
  --text: #dce7ff;
  --muted: #8ea3cf;
  --accent: #3d8bff;
  --accent-text: #74b4ff;
  --accent-2: #1de9ff;
  --accent-soft: rgba(61, 139, 255, 0.14);
  --line: rgba(61, 139, 255, 0.3);
  --title-color: #f2f7ff;
  --title-shadow: 0 0 22px rgba(61, 139, 255, 0.45);
  --font-title: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Rubik", "Segoe UI", sans-serif;
  --title-case: uppercase;
  --title-track: 0.04em;
  --radius: 2px;
  --vignette: radial-gradient(ellipse at center, transparent 55%, rgba(0, 4, 20, 0.6) 100%);
  --sigil: "☾";
  color-scheme: dark;
}

/* ---------- Persona 5: kırmızı, siyah, beyaz; keskin açılar ---------- */
[data-theme="persona5"] {
  --bg: #0d0d0d;
  --bg-glow: radial-gradient(circle at 12% 18%, rgba(230, 0, 18, 0.28), transparent 45%),
             radial-gradient(circle at 95% 95%, rgba(230, 0, 18, 0.22), transparent 40%);
  --surface: rgba(16, 16, 16, 0.94);
  --text: #f2f2f2;
  --muted: #b5b5b5;
  --accent: #e60012;
  --accent-text: #ff4a4a;
  --accent-2: #ffffff;
  --accent-soft: rgba(230, 0, 18, 0.16);
  --line: rgba(230, 0, 18, 0.5);
  --title-color: #ffffff;
  --title-shadow: 4px 4px 0 #e60012;
  --font-title: "Anton", "Impact", sans-serif;
  --font-body: "Rubik", "Segoe UI", sans-serif;
  --title-case: uppercase;
  --title-track: 0.03em;
  --radius: 0;
  --vignette: none;
  --sigil: "★";
  color-scheme: dark;
}

/* ---------- Elden Ring: altın ağaç ışığı, sisli topraklar ---------- */
[data-theme="eldenring"] {
  --bg: #0b0a07;
  --bg-glow: radial-gradient(ellipse 40% 60% at 50% -10%, rgba(230, 191, 92, 0.22), transparent 70%),
             radial-gradient(ellipse 80% 40% at 50% 110%, rgba(120, 100, 60, 0.2), transparent 70%);
  --surface: rgba(20, 17, 10, 0.84);
  --text: #e4dccb;
  --muted: #a69a82;
  --accent: #d4a73c;
  --accent-text: #e6bf5c;
  --accent-2: #8a6a2a;
  --accent-soft: rgba(212, 167, 60, 0.12);
  --line: rgba(212, 167, 60, 0.28);
  --title-color: #f4e6c0;
  --title-shadow: 0 0 18px rgba(230, 191, 92, 0.45);
  --font-title: "Cinzel", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --title-case: uppercase;
  --title-track: 0.08em;
  --radius: 2px;
  --vignette: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.65) 100%);
  --sigil: "✥";
  color-scheme: dark;
}

.swatch-fnaf { background: radial-gradient(circle at 35% 45%, #fff 0 6%, transparent 8%), radial-gradient(circle at 65% 45%, #fff 0 6%, transparent 8%), linear-gradient(180deg, #1a1410, #050403); }

/* ---------- FNAF: karanlık güvenlik odası, kamera ekranı, gece vardiyası ---------- */
[data-theme="fnaf"] {
  --bg: #050403;
  --bg-glow: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 200, 120, 0.08), transparent 70%),
             radial-gradient(ellipse 50% 50% at 50% 100%, rgba(60, 40, 20, 0.35), transparent 70%);
  --surface: rgba(14, 12, 10, 0.88);
  --text: #d8d2c4;
  --muted: #8f877a;
  --accent: #d9a441;
  --accent-text: #e8b85a;
  --accent-2: #c0392b;
  --accent-soft: rgba(217, 164, 65, 0.12);
  --line: rgba(217, 164, 65, 0.25);
  --title-color: #f2ead8;
  --title-shadow: 2px 2px 0 rgba(192, 57, 43, 0.6), 0 0 18px rgba(0, 0, 0, 0.9);
  --font-title: "VT323", ui-monospace, monospace;
  --font-body: "Rubik", "Segoe UI", sans-serif;
  --title-case: uppercase;
  --title-track: 0.06em;
  --radius: 2px;
  --vignette: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.85) 100%);
  --sigil: "●";
  color-scheme: dark;
}

.swatch-charnley { background: radial-gradient(circle at 50% 42%, #d2452e 0 10%, #2b52c4 13% 30%, #8fb6e8 34%); }

/* ---------- Bryan Charnley: mavi tek renk, ekspresif fırça darbeleri ---------- */
[data-theme="charnley"] {
  --bg: #9ec0ec;
  --bg-glow: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(220, 234, 252, 0.7), transparent 70%),
             repeating-linear-gradient(100deg, rgba(43, 82, 196, 0.06) 0 14px, transparent 14px 34px),
             repeating-linear-gradient(80deg, rgba(255, 255, 255, 0.08) 0 9px, transparent 9px 27px);
  --surface: rgba(232, 240, 253, 0.88);
  --text: #13286e;
  --muted: #34509e;
  --accent: #2b52c4;
  --accent-text: #1d3fa8;
  --accent-2: #d2452e;
  --accent-soft: rgba(43, 82, 196, 0.12);
  --line: rgba(29, 63, 168, 0.3);
  --title-color: #102a8a;
  --title-shadow: 2px 2px 0 rgba(210, 69, 46, 0.25);
  --font-title: "Playfair Display", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --title-case: none;
  --title-track: 0.01em;
  --radius: 6px;
  --vignette: radial-gradient(ellipse at center, transparent 55%, rgba(16, 42, 138, 0.25) 100%);
  --sigil: "◠";
  color-scheme: light;
}
[data-theme="charnley"] [style*="--cat"] { --cat-ink: color-mix(in oklab, var(--cat) 50%, #102a8a); }

.swatch-win98 { background: linear-gradient(180deg, #000080 0 30%, #c0c0c0 30% 70%, #008080 70%); border-radius: 0 !important; }
.swatch-ghibli { background: linear-gradient(180deg, #8cc8ec 0 45%, #fffaf0 45% 60%, #6fae5a 60%); }
.swatch-lovecraft { background: radial-gradient(circle at 50% 50%, #5fd0ad 0 14%, #0b2a26 18%, #050b0c 60%); }

/* ---------- Retro Win 98: turkuaz masaüstü, gri pencereler ---------- */
[data-theme="win98"] {
  --bg: #008080;
  --bg-glow: none;
  --surface: #ffffff;
  --text: #000000;
  --muted: #3a3a3a;
  --accent: #000080;
  --accent-text: #000080;
  --accent-2: #808080;
  --accent-soft: rgba(0, 0, 128, 0.1);
  --line: #808080;
  --title-color: #000080;
  --title-shadow: 1px 1px 0 #fff;
  --font-title: "Pixelify Sans", Tahoma, Verdana, sans-serif;
  --font-body: Tahoma, Verdana, "Segoe UI", sans-serif;
  --title-case: none;
  --title-track: 0;
  --radius: 0;
  --vignette: none;
  --sigil: "⊞";
  color-scheme: light;
}

/* ---------- Studio Ghibli: gökyüzü, bulutlar, yeşil tepeler ---------- */
[data-theme="ghibli"] {
  --bg: #e8f3f6;
  --bg-glow: linear-gradient(180deg, #8cc8ec 0%, #bfe1f2 34%, #f4f1e4 72%, #f6efdc 100%);
  --surface: rgba(255, 253, 246, 0.86);
  --text: #2f3a30;
  --muted: #56645a;
  --accent: #3f8f5a;
  --accent-text: #2c7346;
  --accent-2: #e09a32;
  --accent-soft: rgba(63, 143, 90, 0.12);
  --line: rgba(60, 90, 70, 0.22);
  --title-color: #2a5a86;
  --title-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
  --font-title: "Caveat", "Comic Sans MS", cursive;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --title-case: none;
  --title-track: 0.01em;
  --radius: 16px;
  --vignette: none;
  --sigil: "☁";
  color-scheme: light;
}

/* ---------- Lovecraft: deniz dibi karanlığı, yeşil ışık, dokunaçlar ---------- */
[data-theme="lovecraft"] {
  --bg: #040a0b;
  --bg-glow: radial-gradient(ellipse 70% 45% at 50% 110%, rgba(40, 140, 110, 0.22), transparent 70%),
             radial-gradient(ellipse 50% 40% at 0% 0%, rgba(70, 60, 30, 0.22), transparent 70%);
  --surface: rgba(7, 20, 20, 0.82);
  --text: #cdd8cc;
  --muted: #84998f;
  --accent: #3fae8f;
  --accent-text: #62d1ae;
  --accent-2: #a8924a;
  --accent-soft: rgba(63, 174, 143, 0.12);
  --line: rgba(63, 174, 143, 0.24);
  --title-color: #d9e6d2;
  --title-shadow: 0 0 18px rgba(63, 174, 143, 0.35);
  --font-title: "Almendra", Georgia, serif;
  --font-body: "Spectral", Georgia, serif;
  --title-case: none;
  --title-track: 0.03em;
  --radius: 4px;
  --vignette: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.7) 100%);
  --sigil: "◉";
  color-scheme: dark;
}
.swatch-cyberpunk { background: linear-gradient(135deg, #fcee0a 0 45%, #05060a 45% 55%, #00f0ff 55%); }
.swatch-qimp    { background: linear-gradient(120deg, #ff2d6f 0 48%, #0a0710 48% 52%, #2ef2c8 52%); }
.swatch-alice      { background: conic-gradient(#f5eedd 0 25%, #c0283a 0 50%, #f5eedd 0 75%, #1f3d66 0); }

/* Ayırıcı çizgi */
.divider { display: flex; align-items: center; gap: 14px; margin: 8px 0 32px; color: var(--accent-text, var(--accent)); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.divider span::before { content: var(--sigil); font-size: 0.9rem; opacity: 0.85; }
.small-div { margin: 40px 0 24px; }

/* =========================================================
   SAYFALAR
   ========================================================= */
main { min-height: 50vh; outline: none; animation: fade-in 0.5s ease; }

.page-title, .post-title {
  font-family: var(--font-title);
  color: var(--title-color);
  text-transform: var(--title-case);
  letter-spacing: var(--title-track);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
}
/* Kategori renkleri: koyu temalarda olduğu gibi, açık temalarda koyulaştırılmış */
[style*="--cat"] { --cat-ink: var(--cat); }
[data-theme="rezero"] [style*="--cat"],
[data-theme="alice"] [style*="--cat"], [data-theme="ghibli"] [style*="--cat"] { --cat-ink: color-mix(in oklab, var(--cat) 58%, #1d1830); }
[data-theme="win98"] [style*="--cat"] { --cat-ink: color-mix(in oklab, var(--cat) 45%, #000); }

.page-title[style*="--cat"] { color: var(--cat-ink); }

.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 28px; font-size: 0.9rem; }
.cat-filter a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
}
.cat-filter a:hover { color: var(--text); text-decoration: none; border-color: var(--cat-ink, var(--accent)); }
.cat-filter a[aria-current="page"] { color: var(--cat-ink, var(--accent)); border-color: var(--cat-ink, var(--accent)); }
.cat-filter .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat-ink); }
.cat-filter .n { opacity: 0.6; font-size: 0.85em; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.cat-badge {
  font-size: 0.78rem; line-height: 1.6;
  color: var(--cat-ink);
  border: 1px solid color-mix(in srgb, var(--cat-ink) 45%, transparent);
  border-radius: 999px; padding: 0 9px;
}
.cat-badge:hover { text-decoration: none; background: color-mix(in srgb, var(--cat-ink) 14%, transparent); }

/* Yazı listesi */
.post-list, .diary { list-style: none; margin: 0; padding: 0; }
.post-item {
  position: relative;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}
.post-item:first-child { padding-top: 0; }
.post-item time, .post-head time {
  display: block;
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-item h2 {
  margin: 4px 0 6px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.3;
  letter-spacing: calc(var(--title-track) * 0.5);
}
.post-item h2 a { color: var(--title-color); }
.post-item h2 a:hover { color: var(--accent-text, var(--accent)); text-decoration: none; }
.post-item.has-cat h2 a { color: var(--cat-ink); }
.post-item.has-cat h2 a:hover { color: var(--cat-ink); text-decoration: underline; text-decoration-thickness: 1px; }
[data-theme="darksouls"] .post-item h2 a:hover { text-shadow: 0 0 12px color-mix(in srgb, var(--cat-ink, #e6823c) 60%, transparent); }
[data-theme="bloodborne"] .post-item h2 { font-style: italic; font-weight: 600; font-size: 1.6rem; }
[data-theme="blacksouls"] .post-item h2 { font-size: 1.6rem; }
/* Önizleme: satır sonları korunur, en fazla 4 satır */
.excerpt {
  margin: 0; color: var(--muted); white-space: pre-line;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}

/* Etiketler */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; font-size: 0.9rem; }
.tags a { color: var(--muted); }
.tags a:hover { color: var(--accent-text, var(--accent)); }

/* Yazı sayfası */
.post-head { margin-bottom: 32px; }
.post-head .post-title { margin: 6px 0 4px; font-size: clamp(1.8rem, 5.5vw, 2.6rem); }
[data-theme="bloodborne"] .post-title { font-style: italic; font-weight: 600; }
.post.has-cat .post-title { color: var(--cat-ink); }
.post.has-cat .prose > p:first-child::first-letter { color: var(--cat-ink); }

.prose { overflow-wrap: break-word; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-title); font-weight: 400; color: var(--title-color);
  letter-spacing: calc(var(--title-track) * 0.5); margin: 1.8em 0 0.6em; line-height: 1.3;
}
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.2rem; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
  color: var(--title-color); font-style: italic;
}
.prose blockquote p { margin: 0; }
.prose ul { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: 0.2em 0; }
.prose li::marker { color: var(--accent-text, var(--accent)); }
.prose img { max-width: 100%; height: auto; display: block; margin: 1.4em auto; border-radius: var(--radius); }
.prose code { font-size: 0.85em; background: var(--accent-soft); padding: 1px 6px; border-radius: 3px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.prose strong { color: var(--title-color); }

/* İlk harf süsü. Paragraf büyük harfi kendi içinde tutar (flow-root),
   böylece ilk paragraf kısa olsa bile sonraki paragraf içeri kaymaz. */
.post .prose > p:first-child { display: flow-root; }
.post .prose > p:first-child::first-letter {
  float: left; font-family: var(--font-title); font-size: 3.4em; line-height: 0.9;
  padding: 6px 10px 0 0; color: var(--accent-text, var(--accent));
}
[data-theme="rezero"] .post .prose > p:first-child::first-letter { font-size: 3em; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; color: var(--text); font-size: 1rem; line-height: 1.4; }
.post-nav a span { display: block; font-family: var(--font-title); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.post-nav a:hover { color: var(--accent-text, var(--accent)); text-decoration: none; }
.post-nav a b { font-weight: inherit; }
.post-nav a[style*="--cat"] b { color: var(--cat-ink); }
.post-nav .newer { text-align: right; }
.back { margin-top: 32px; font-size: 1rem; }

/* Galeri */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gal-item { margin: 0; }
.gal-item button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gal-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.4s, filter 0.4s; }
[data-theme="bloodborne"] .gal-item img, [data-theme="darksouls"] .gal-item img { filter: sepia(0.25) saturate(0.85); }
.gal-item button:hover img { transform: scale(1.04); filter: none; }
.gal-item figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }
.gal-item figcaption time { display: block; font-size: 0.8rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; padding: 16px;
  background: rgba(0, 0, 0, 0.88); cursor: zoom-out; animation: fade-in 0.25s;
}
.lightbox img { max-width: 100%; max-height: 85vh; }
.lightbox p { color: #ddd; margin: 0; }

.empty { color: var(--muted); font-style: italic; text-align: center; padding: 40px 0; }

/* Alt kısım */
.site-footer { text-align: center; color: var(--muted); font-size: 0.95rem; padding: 48px 0 110px; }
.site-footer p { margin: 4px 0; font-style: italic; }
.site-footer .small { font-style: normal; font-size: 0.8rem; opacity: 0.7; }

/* =========================================================
   TEMAYA ÖZEL SÜSLER
   ========================================================= */

/* Yazı kartı: bütün temalarda aynı iç boşluk ve aynı dış kenar.
   Temalar sadece süsü değiştirir, boşluğu değil. */
.post {
  --post-pad-y: 36px;
  --post-pad-x: 32px;
  position: relative;
  padding: var(--post-pad-y) var(--post-pad-x);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Dark Souls: sade taş kart */
[data-theme="darksouls"] .post { box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.45); }

/* Black Souls: masal kitabı çerçevesi (ikinci çizgi kartın içinde) */
[data-theme="blacksouls"] .post {
  outline: 1px solid var(--line);
  outline-offset: -7px;
}
[data-theme="blacksouls"] .post-item h2 a::before { content: "† "; color: var(--accent-text, var(--accent)); }

/* Bloodborne: ince süslü çerçeve */
[data-theme="bloodborne"] .post {
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6);
}

/* Re:Zero: cam kart + saat kadranı */
[data-theme="rezero"] .post {
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 30px rgba(90, 80, 150, 0.12);
}
[data-theme="rezero"] .vignette {
  background:
    repeating-conic-gradient(from 0deg at 100% 0%, rgba(110, 100, 170, 0.07) 0deg 0.6deg, transparent 0.6deg 6deg);
  -webkit-mask: radial-gradient(circle at 100% 0%, transparent 300px, #000 302px, #000 340px, transparent 342px, transparent 520px, #000 522px, #000 524px, transparent 526px);
          mask: radial-gradient(circle at 100% 0%, transparent 300px, #000 302px, #000 340px, transparent 342px, transparent 520px, #000 522px, #000 524px, transparent 526px);
}
[data-theme="rezero"] .theme-menu { box-shadow: 0 12px 40px rgba(90, 80, 150, 0.2); }

/* Alice: üstte dama şeridi, iskambil kâğıdı gibi yazı kartı */
[data-theme="alice"] body::before {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 10px; z-index: 3;
  background: repeating-conic-gradient(#2e2a26 0 25%, #f5eedd 0 50%) 0 0 / 10px 10px;
  opacity: 0.85;
}
[data-theme="alice"] .post {
  box-shadow: 0 1px 0 #fff inset, 0 14px 34px rgba(90, 60, 30, 0.14);
}
[data-theme="alice"] .post::before,
[data-theme="alice"] .post::after {
  position: absolute; font-family: var(--font-title); font-size: 1.2rem; line-height: 1; color: var(--accent-text, var(--accent));
}
[data-theme="alice"] .post::before { content: "♥"; top: 14px; left: 16px; }
[data-theme="alice"] .post::after  { content: "♥"; bottom: 14px; right: 16px; transform: rotate(180deg); }
[data-theme="alice"] .post-item h2 { font-weight: 700; font-style: italic; }
[data-theme="alice"] .post-item h2 a::before { content: "♠ "; color: var(--muted); font-style: normal; font-size: 0.8em; }
[data-theme="alice"] .post-item:nth-child(even) h2 a::before { content: "♥ "; color: var(--accent-text, var(--accent)); }
[data-theme="alice"] .post-title { font-weight: 700; font-style: italic; }
[data-theme="alice"] .main-nav a[aria-current="page"] { font-style: italic; }
[data-theme="alice"] .theme-menu { box-shadow: 0 12px 40px rgba(90, 60, 30, 0.2); }

/* Dark Souls: korlu ayırıcı */
[data-theme="darksouls"] .divider span::before { text-shadow: 0 0 10px var(--accent); }

/* =========================================================
   ANİMASYONLAR
   ========================================================= */
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ember-glow {
  0%, 100% { text-shadow: 0 0 18px rgba(230, 130, 50, 0.45), 0 0 2px rgba(255, 200, 120, 0.5); }
  50% { text-shadow: 0 0 26px rgba(240, 150, 60, 0.7), 0 0 4px rgba(255, 210, 140, 0.7); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   MOBİL
   ========================================================= */
@media (max-width: 560px) {
  .site-header { padding-top: 28px; }
  .site-title { font-size: 1.7rem; height: 2.5rem; letter-spacing: calc(var(--title-track) * 0.4); }
  .tagline { white-space: normal; height: 3rem; }
  /* Mobilde başlık tüm satırı kullansın; tema düğmesi menünün yanına geçsin */
  .site-header { grid-template-areas: "brand brand" "nav theme"; align-items: center; }
  .site-title { white-space: nowrap; }
  .site-title wbr { display: none; }
  [data-theme="darksouls"] .site-title { font-size: 1.4rem; letter-spacing: 0.06em; }
  /* Tema düğmesinde sadece simge (isim ekran okuyucular için kalır) */
  .theme-toggle { padding: 6px 10px; }
  .theme-toggle #themeName { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sigil::before { font-size: 1.1rem; }
  body { font-size: 1.05rem; }
  [data-theme="bloodborne"] body { font-size: 1.15rem; }
  .main-nav { gap: 6px 18px; }
  .post { --post-pad-y: 28px; --post-pad-x: 18px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .newer { text-align: left; }
}

/* 13 tema: menü uzunsa kaydırılabilsin */
.theme-menu { max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; }

/* Tema düğmesi her temada aynı yükseklikte (üst kısım ve çizgi hep aynı yerde kalsın) */
.theme-toggle { height: 2.3rem; box-sizing: border-box; }
@media (max-width: 560px) { [data-theme="silenthill"] .main-nav { letter-spacing: 0.06em; gap: 6px 14px; } }

/* Spoiler: ||yazı|| ya da ||![resim](...)|| — tıklayınca açılır */
.spoiler {
  cursor: pointer; border-radius: 3px; padding: 0 0.15em; background: var(--text); color: transparent;
  transition: background 0.25s, color 0.25s; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.spoiler * { color: transparent !important; text-shadow: none !important; transition: color 0.25s; }
.spoiler:hover { background: color-mix(in srgb, var(--text) 85%, var(--accent)); }
.spoiler:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.spoiler.is-acik { background: color-mix(in srgb, var(--text) 10%, transparent); color: inherit; cursor: auto; }
.spoiler.is-acik * { color: inherit !important; }
.spoiler-img { display: block; width: fit-content; max-width: 100%; margin: 1.4em auto; position: relative; padding: 0; background: none; overflow: hidden; border-radius: var(--radius); }
.prose .spoiler-img img { margin: 0; min-width: 200px; }
.spoiler-img img { filter: blur(26px) saturate(0.6); transform: scale(1.06); transition: filter 0.4s, transform 0.4s; }
.spoiler-img::after {
  content: "SPOILER · görmek için tıkla"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 600 0.8rem/1.2 var(--font-body); letter-spacing: 0.14em; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.25); transition: opacity 0.3s;
}
.spoiler-img:hover { background: none; }
.spoiler-img.is-acik { background: none; }
.spoiler-img.is-acik img { filter: none; transform: none; }
.spoiler-img.is-acik::after { opacity: 0; pointer-events: none; }

/* Yazının altındaki müzik kutusu (her temada kendi renkleriyle) */
.post-music {
  display: flex; align-items: center; gap: 14px; margin: 28px 0 8px; padding: 12px 16px;
  background: var(--accent-soft, rgba(127, 127, 127, 0.1)); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.pm-play {
  flex: none; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  font-size: 0.95rem; color: var(--bg); background: var(--accent); border: 0; box-shadow: 0 0 0 3px var(--accent-soft, transparent);
  transition: transform 0.15s;
}
.pm-play:hover { transform: scale(1.06); }
.pm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pm-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pm-info { min-width: 0; display: flex; flex-direction: column; }
/* Saniye seçme ve ses düzeyi */
.pm-bar { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pm-cur, .pm-dur { flex: none; min-width: 2.6em; }
.pm-dur { text-align: right; }
.pm-vol { flex: none; display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.pm-vol-ic { font-size: 0.85rem; filter: grayscale(1); opacity: 0.8; }
.post-music input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; cursor: pointer; margin: 0;
  background: linear-gradient(90deg, var(--accent) var(--p, 0%), var(--line) var(--p, 0%));
}
.post-music .pm-seek { flex: 1; min-width: 60px; }
.post-music .pm-volume { width: 74px; --p: 80%; }
.post-music input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.post-music input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.post-music input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 560px) {
  .pm-bar { flex-wrap: wrap; }
  .post-music .pm-seek { flex-basis: calc(100% - 7em); }
  .pm-vol { margin-left: auto; }
}
.pm-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pm-title { font-family: var(--font-title); color: var(--title-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-eq { display: flex; gap: 3px; align-items: flex-end; height: 18px; margin-left: auto; }
.pm-eq i { width: 3px; height: 4px; background: var(--accent); border-radius: 1px; }
.post-music.is-playing .pm-eq i { animation: sc-eq 0.9s ease-in-out infinite; }
.post-music.is-playing .pm-eq i:nth-child(2) { animation-delay: -0.3s; }
.post-music.is-playing .pm-eq i:nth-child(3) { animation-delay: -0.6s; }
.post-music.is-playing .pm-eq i:nth-child(4) { animation-delay: -0.15s; }
@keyframes sc-eq { 0%, 100% { height: 4px; } 50% { height: 18px; } }
[data-theme="undertale"] .post-music, [data-theme="win98"] .post-music, [data-theme="persona5"] .post-music { border-radius: 0; }
[data-theme="undertale"] .pm-play, [data-theme="win98"] .pm-play, [data-theme="persona5"] .pm-play { border-radius: 0; }
