/* ==========================================================================
   cyberctrl.dev — terminal / hacker temalı tek sayfa blog
   ========================================================================== */

/* ---------- Tasarım token'ları ---------- */
:root,
[data-bs-theme="light"] {
  --cc-primary: #3B82F6;
  --cc-primary-dark: #2563EB;
  --cc-primary-soft: rgba(59, 130, 246, 0.1);
  --cc-bg: #ffffff;
  --cc-surface: #f8fafc;
  --cc-card: #ffffff;
  --cc-text: #0f172a;
  --cc-muted: #64748b;
  --cc-border: #e2e8f0;
  --cc-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --cc-header-h: 64px;
  --cc-bar-h: 60px;
  --cc-radius: 10px;
  --cc-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bs-body-bg: var(--cc-bg);
  --bs-body-color: var(--cc-text);
  --bs-body-font-family: var(--cc-mono);
  --bs-primary: var(--cc-primary);
  --bs-primary-rgb: 59, 130, 246;
  --bs-link-color: var(--cc-primary);
  --bs-link-color-rgb: 59, 130, 246;
  --bs-link-hover-color: var(--cc-primary-dark);
  --bs-link-hover-color-rgb: 37, 99, 235;
  --bs-border-color: var(--cc-border);
  --bs-secondary-color: var(--cc-muted);
}

[data-bs-theme="dark"] {
  --cc-primary-soft: rgba(59, 130, 246, 0.16);
  --cc-bg: #0b1120;
  --cc-surface: #0f172a;
  --cc-card: #111c33;
  --cc-text: #e2e8f0;
  --cc-muted: #94a3b8;
  --cc-border: #1e293b;
  --cc-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);

  --bs-body-bg: var(--cc-bg);
  --bs-body-color: var(--cc-text);
  --bs-border-color: var(--cc-border);
  --bs-secondary-color: var(--cc-muted);
}

/* ---------- Temel ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--cc-header-h);
}

body {
  background: var(--cc-bg);
  color: var(--cc-text);
  font-family: var(--cc-mono);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-bottom: var(--cc-bar-h);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cc-primary); color: #fff; }

a { text-decoration: none; transition: color 0.2s ease; }

:focus-visible {
  outline: 2px solid var(--cc-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.text-primary { color: var(--cc-primary) !important; }

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2000;
  padding: 0.5rem 1rem;
  background: var(--cc-primary);
  color: #fff;
  border-radius: 6px;
}

/* Bootstrap butonları birincil renge göre */
.btn { font-family: var(--cc-mono); font-weight: 500; border-radius: 8px; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { font-size: 1rem; padding: 0.7rem 1.4rem; }
.btn-primary {
  --bs-btn-bg: var(--cc-primary);
  --bs-btn-border-color: var(--cc-primary);
  --bs-btn-hover-bg: var(--cc-primary-dark);
  --bs-btn-hover-border-color: var(--cc-primary-dark);
  --bs-btn-active-bg: #1d4ed8;
  --bs-btn-active-border-color: #1d4ed8;
  --bs-btn-focus-shadow-rgb: 59, 130, 246;
  box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.7);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  height: var(--cc-header-h);
  display: flex;
  align-items: center;
  color: #fff;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--cc-bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--cc-border);
  color: var(--cc-text);
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: inherit;
  letter-spacing: -0.02em;
}
.brand:hover { color: inherit; }
.brand-caret {
  color: var(--cc-primary);
  margin-right: 0.35rem;
  animation: blink 1.2s steps(2) infinite;
}

.icon-btn,
.hamburger {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 30%, transparent);
  background: transparent;
  color: inherit;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover,
.hamburger:hover {
  border-color: var(--cc-primary);
  background: var(--cc-primary-soft);
}
.icon-btn i { font-size: 1.05rem; transition: transform 0.4s ease; }
.icon-btn:hover i { transform: rotate(-20deg); }

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease;
}
.hamburger span:nth-child(2) { width: 70%; align-self: flex-end; }
.hamburger:hover span:nth-child(2) { width: 100%; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Offcanvas menü ---------- */
.site-menu {
  --bs-offcanvas-width: min(420px, 100vw);
  --bs-offcanvas-bg: var(--cc-bg);
  --bs-offcanvas-color: var(--cc-text);
  border-left: 1px solid var(--cc-border) !important;
}
.menu-links { display: flex; flex-direction: column; gap: 0.25rem; }
.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  color: var(--cc-text);
  font-size: 1.05rem;
  transition: background-color 0.2s ease, padding-left 0.25s ease, color 0.2s ease;
}
.menu-links a:hover,
.menu-links a.active {
  background: var(--cc-primary-soft);
  color: var(--cc-primary);
  padding-left: 1rem;
}
.menu-num { font-size: 0.7rem; color: var(--cc-muted); }
.menu-cmd { color: var(--cc-primary); font-weight: 700; }
.site-menu.show .menu-links a { animation: slideIn 0.4s ease both; }
.site-menu.show .menu-links a:nth-child(2) { animation-delay: 0.05s; }
.site-menu.show .menu-links a:nth-child(3) { animation-delay: 0.1s; }
.site-menu.show .menu-links a:nth-child(4) { animation-delay: 0.15s; }
.site-menu.show .menu-links a:nth-child(5) { animation-delay: 0.2s; }

/* ---------- Sosyal ikonlar ---------- */
.social-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social-links a {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--cc-border);
  color: var(--cc-muted);
  font-size: 1.05rem;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.social-links a:hover {
  color: #fff;
  background: var(--cc-primary);
  border-color: var(--cc-primary);
  transform: translateY(-3px);
}
.social-sm a { width: 34px; height: 34px; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--cc-header-h) + 1rem) 0 4rem;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(160deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.82) 45%, rgba(30, 64, 175, 0.72) 100%),
    url("https://picsum.photos/id/0/1920/1080") center / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 1.25rem;
}
.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cc-primary);
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.8);
  animation: pulse 2s infinite;
}
.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  margin-bottom: 0.75rem;
  color: #fff;
}
.typed { color: #93c5fd; }
.caret { color: var(--cc-primary); animation: blink 1s steps(2) infinite; }
.hero-lead {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  color: rgba(255, 255, 255, 0.75);
}
.hero .btn-outline-light:hover { color: #0f172a; }
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}
.scroll-hint:hover { color: #fff; }

/* ---------- Bölümler (kompakt) ---------- */
.section { padding: 3rem 0; }
.section-alt { background: var(--cc-surface); border-block: 1px solid var(--cc-border); }
.section-head { margin-bottom: 1.5rem; }
.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--cc-primary);
  margin-bottom: 0.35rem;
}
.section-title {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.section-desc { color: var(--cc-muted); max-width: 640px; margin-bottom: 0; }

/* ---------- Filtre ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.filter-btn {
  font-family: var(--cc-mono);
  font-size: 0.82rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--cc-border);
  background: var(--cc-card);
  color: var(--cc-muted);
  transition: all 0.2s ease;
}
.filter-btn::before { content: "--"; opacity: 0.5; margin-right: 0.15rem; }
.filter-btn:hover { color: var(--cc-primary); border-color: var(--cc-primary); }
.filter-btn.active {
  background: var(--cc-primary);
  border-color: var(--cc-primary);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(59, 130, 246, 0.8);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--cc-primary) 0 8px, transparent 8px 14px);
  opacity: 0.55;
}
/* Masaüstü: iki sütunlu zikzak; her kart 2 satır kaplar ve bir öncekine yarım kart kaydırılır (JS grid-row atar) */
@media (min-width: 768px) {
  .timeline { display: grid; grid-template-columns: 1fr 1fr; }
}
.tl-item {
  position: relative;
  padding-bottom: 1.5rem;
}
.tl-item.is-left { grid-column: 1; padding-right: 2.5rem; }
.tl-item.is-right { grid-column: 2; padding-left: 2.5rem; }
.tl-item::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cc-bg);
  border: 3px solid var(--cc-primary);
  box-shadow: 0 0 0 5px var(--cc-primary-soft);
  z-index: 1;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.tl-item.is-left::before { right: -8px; }
.tl-item.is-right::before { left: -8px; }
.tl-item:hover::before { transform: scale(1.25); background: var(--cc-primary); }

.tl-card {
  position: relative;
  background: var(--cc-card);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: var(--cc-shadow);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, translate 0.25s ease;
}
.tl-card:hover {
  border-color: var(--cc-primary);
  translate: 0 -4px;
  box-shadow: 0 18px 40px -18px rgba(59, 130, 246, 0.55);
}
.tl-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--cc-muted);
  margin-bottom: 0.7rem;
}
.tl-meta time::before { content: "commit "; color: var(--cc-primary); }
.tl-hash { opacity: 0.7; }
.tl-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.85rem;
  background: var(--cc-surface);
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: saturate(0.85);
}
.tl-card:hover .tl-img { filter: saturate(1.1); }
.cat-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cc-primary);
  background: var(--cc-primary-soft);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
}
.cat-badge[data-cat="ctf"] { color: #e11d48; background: rgba(225, 29, 72, 0.1); }
.cat-badge[data-cat="deneyim"] { color: #059669; background: rgba(5, 150, 105, 0.1); }
.cat-badge[data-cat="rehber"] { color: #7c3aed; background: rgba(124, 58, 237, 0.1); }
[data-bs-theme="dark"] .cat-badge[data-cat="ctf"] { color: #fb7185; }
[data-bs-theme="dark"] .cat-badge[data-cat="deneyim"] { color: #34d399; }
[data-bs-theme="dark"] .cat-badge[data-cat="rehber"] { color: #a78bfa; }

.tl-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0.6rem 0 0.4rem;
}
.tl-excerpt { color: var(--cc-muted); font-size: 0.87rem; margin-bottom: 0.85rem; }
.tl-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: 1px dashed var(--cc-border);
  padding-top: 0.75rem;
}
.tags { font-size: 0.75rem; color: var(--cc-muted); }
.read-more {
  font-family: var(--cc-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cc-primary);
  background: none;
  border: 0;
  padding: 0;
}
.read-more i { display: inline-block; transition: transform 0.25s ease; }
.read-more:hover i { transform: translateX(4px); }
.read-more::after {
  /* tüm kartı tıklanabilir yap */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--cc-radius);
}
.timeline-end {
  text-align: center;
  font-size: 0.8rem;
  color: var(--cc-muted);
  margin: 0.5rem 0 0;
}

@media (max-width: 767.98px) {
  .timeline::before { left: 7px; transform: none; }
  .tl-item,
  .tl-item.is-left,
  .tl-item.is-right {
    padding: 0 0 1.25rem 2rem;
  }
  .tl-item.is-left::before,
  .tl-item.is-right::before { left: 0; right: auto; }
}

/* ---------- Kategoriler ---------- */
.cat-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  font-family: var(--cc-mono);
  color: var(--cc-text);
  background: var(--cc-card);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 1.1rem;
  transition: border-color 0.25s ease, translate 0.25s ease, box-shadow 0.25s ease;
}
.cat-card i {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--cc-primary);
  background: var(--cc-primary-soft);
  margin-bottom: 0.25rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.cat-card:hover {
  border-color: var(--cc-primary);
  translate: 0 -4px;
  box-shadow: var(--cc-shadow);
}
.cat-card:hover i { background: var(--cc-primary); color: #fff; }
.cat-name { font-weight: 700; }
.cat-desc { font-size: 0.8rem; color: var(--cc-muted); line-height: 1.5; }
.cat-count { font-size: 0.72rem; color: var(--cc-primary); margin-top: auto; padding-top: 0.25rem; }

/* ---------- Terminal kartı ---------- */
.terminal {
  background: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(59, 130, 246, 0.55);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: #111a2e;
  border-bottom: 1px solid #1e293b;
}
.tdot { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.tdot:nth-child(2) { background: #f59e0b; }
.tdot:nth-child(3) { background: #22c55e; }
.terminal-title { margin-left: auto; font-size: 0.72rem; color: #64748b; }
.terminal-body {
  margin: 0;
  padding: 1.1rem 1.25rem;
  color: #cbd5e1;
  font-size: clamp(0.72rem, 2.2vw, 0.88rem);
  line-height: 1.75;
  white-space: pre-wrap;
}
.t-prompt { color: var(--cc-primary); font-weight: 700; }

/* ---------- İstatistikler ---------- */
.stat {
  background: var(--cc-card);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 0.8rem 0.5rem;
}
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--cc-primary); line-height: 1.2; }
.stat-label { font-size: 0.72rem; color: var(--cc-muted); }

/* ---------- Bülten ---------- */
.newsletter {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, #1e40af 0%, #3B82F6 60%, #60a5fa 100%);
  box-shadow: 0 24px 50px -24px rgba(59, 130, 246, 0.8);
}
.newsletter::after {
  content: "{ }";
  position: absolute;
  right: -0.5rem;
  bottom: -2.5rem;
  font-size: 9rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.newsletter .text-white-50 { color: rgba(255, 255, 255, 0.78) !important; }
.newsletter-form { position: relative; z-index: 1; }
.newsletter-form .input-group-text {
  background: rgba(255, 255, 255, 0.95);
  border: 0;
  color: var(--cc-primary);
}
.newsletter-form .form-control {
  border: 0;
  font-family: var(--cc-mono);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}
.newsletter-form .form-control::placeholder { color: #94a3b8; }
.newsletter-form .form-control:focus { box-shadow: none; }
.newsletter-form .input-group:focus-within { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35); border-radius: 0.5rem; }
.newsletter-form .btn-light { color: var(--cc-primary-dark); font-weight: 700; min-width: 120px; }
.newsletter-form .invalid-feedback { color: #fecaca; font-size: 0.78rem; }
.newsletter-form .form-check-input:checked { background-color: #0f172a; border-color: #0f172a; }
.newsletter-form .form-check-input.is-invalid ~ .form-check-label { color: #fecaca !important; }
.nl-output {
  display: block;
  min-height: 1.5em;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #fff;
}
.nl-output.ok::before { content: "[✓] "; color: #bbf7d0; font-weight: 700; }
.nl-output.err::before { content: "[x] "; color: #fecaca; font-weight: 700; }

/* ---------- Telif ---------- */
.copyright {
  text-align: center;
  font-size: 0.75rem;
  color: var(--cc-muted);
  padding: 1.25rem 1rem;
  margin: 0;
}

/* ---------- Sabit alt bar ---------- */
.bottom-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1020;
  height: var(--cc-bar-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--cc-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--cc-border);
  padding-bottom: env(safe-area-inset-bottom);
}
.quick-links { display: flex; gap: 0.25rem; min-width: 0; }
.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--cc-muted);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.quick-links a:hover,
.quick-links a.active { color: var(--cc-primary); background: var(--cc-primary-soft); }
.bottom-bar .cta { white-space: nowrap; }
@media (max-width: 575.98px) {
  .quick-links a span { display: none; }
  .quick-links a { font-size: 1.05rem; padding: 0.45rem 0.6rem; }
}

/* ---------- Başa dön ---------- */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--cc-bar-h) + 1rem);
  z-index: 1020;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 0;
  background: var(--cc-primary);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 10px 24px -8px rgba(59, 130, 246, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--cc-primary-dark); transform: translateY(-3px); }

/* ---------- Modal ---------- */
.modal-content {
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  border-radius: 14px;
}
.modal-header { border-bottom: 1px dashed var(--cc-border); align-items: flex-start; }
.post-body { font-size: 0.92rem; }
.post-body h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.5rem; }
.post-body h3::before { content: "## "; color: var(--cc-primary); }
.post-body pre {
  background: #0b1120;
  color: #cbd5e1;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
}
.post-body :not(pre) > code {
  color: var(--cc-primary);
  background: var(--cc-primary-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.post-body blockquote {
  border-left: 3px solid var(--cc-primary);
  background: var(--cc-surface);
  padding: 0.6rem 1rem;
  border-radius: 0 8px 8px 0;
  color: var(--cc-muted);
}
.post-body .table { --bs-table-bg: transparent; font-size: 0.85rem; }

/* ---------- Kaydırma animasyonu ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  /* Giriş animasyonu gecikmeli; hover geçişleri (translate, border, gölge) anında */
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
    translate 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@keyframes heroZoom { to { transform: scale(1.12); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
