/* ============================================================
   Tasarım dili: "Mühendislik defteri"
   Kâğıt zemin + ince çizim ızgarası, indigo mürekkep, sinyal turuncusu.
   Display: Space Grotesk · Metin: IBM Plex Sans · Kod: IBM Plex Mono
   ============================================================ */
:root {
  --paper: #F6F5F0;
  --card: #FFFFFF;
  --ink: #14213D;
  --ink-soft: #3A4562;
  --muted: #6B7387;
  --line: rgba(20, 33, 61, 0.14);
  --line-soft: rgba(20, 33, 61, 0.07);
  --accent: #E4572E;
  --accent-ink: #C2401C;
  --ok: #1F7A5C;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20,33,61,.06), 0 12px 32px -16px rgba(20,33,61,.22);
  --header-h: clamp(56px, 4.8vw, 84px);
  --page-max: min(1260px, 94vw);
  --logo-mark: clamp(28px, 2.1vw, 42px);
  --avatar-ref: clamp(64px, 5vw, 96px);
  --img-cover-radius: clamp(10px, 1vw, 16px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: clamp(15.5px, 0.42vw + 10.2px, 19.5px);
}
@media (max-width: 760px) {
  html { font-size: 16px; }
  :root { --page-max: 100%; --header-h: 58px; }
}
@media (min-width: 1440px) {
  :root { --page-max: min(1400px, 90vw); }
}
@media (min-width: 1600px) {
  :root { --page-max: min(1520px, 88vw); }
}
@media (min-width: 1920px) {
  :root { --page-max: min(1680px, 86vw); }
}
@media (min-width: 2400px) {
  :root { --page-max: min(1880px, 80vw); }
}
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }

/* Çizim ızgarası zemini */
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: clamp(28px, 2vw, 40px) clamp(28px, 2vw, 40px);
  mask-image: linear-gradient(#000 60%, transparent);
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- Üst çubuk ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-brand, var(--font-display)); font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-name { font-family: inherit; }
.f-left { font-family: var(--font-brand, var(--font-display)); }
.f-left .brand-name { font-family: inherit; }
.brand-mark {
  font-family: var(--font-mono); font-weight: 600; color: var(--accent);
  border: 1.5px solid var(--ink); border-radius: 8px; padding: 2px 7px; background: var(--card);
}
.brand-logo { width: var(--logo-mark); height: var(--logo-mark); object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); }
.site-nav a {
  color: var(--ink-soft); font-size: .95rem; font-weight: 500; position: relative; padding: 6px 2px;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right .25s ease;
}
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.site-nav a.active { color: var(--ink); }
.nav-cta {
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 18px !important;
  color: var(--ink) !important; transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }
.nav-cta::after { display: none; }

.nav-toggle { display: none; background: none; border: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sayfa geçişleri ---------- */
#app { min-height: calc(100vh - var(--header-h) - 120px); }
.view { max-width: var(--page-max); margin: 0 auto; padding: clamp(36px, 6vw, 72px) clamp(18px, 4vw, 48px); }
.view:has(.section-head),
.view:has(.post-detail) { padding-top: clamp(18px, 3vw, 36px); }
.view.enter { animation: viewIn .5s cubic-bezier(.22,.8,.3,1) both; }
.view.leave { animation: viewOut .22s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes viewOut { to { opacity: 0; transform: translateY(-10px); } }

/* Kaydırma ile ortaya çıkma */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.3,1); }
.reveal.visible, .reveal.in { opacity: 1; transform: none; }

/* ---------- Bölüm başlıkları: teknik çizim etiketi ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-ink);
  border: 1px solid var(--line); border-radius: 4px; padding: 4px 12px; background: var(--card);
  position: relative;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
h1.page-title, .page-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; margin: 18px 0 10px; letter-spacing: -.02em;
}
.page-sub { color: var(--muted); max-width: 700px; font-size: 1.07rem; }
.section-head { margin-bottom: clamp(26px, 4vw, 44px); }
.section-head .cv-dl { margin: 10px 0 0; }

/* ---------- Ana sayfa / hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; min-height: calc(min(88vh, 820px) - var(--header-h)); }
@media (min-width: 1600px) {
  .hero { min-height: calc(min(72vh, 760px) - var(--header-h)); }
}
.hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.06; letter-spacing: -.025em; margin: 20px 0 16px; }
.hero h1 .accent { color: var(--accent); }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 12px 26px; border-radius: 999px; border: 1.5px solid var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, background .2s, color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--card); }

/* İmza öge: canlı terminal kartı */
.terminal {
  background: #101830; color: #D7DEF0; border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(16, 24, 48, .55);
  font-family: var(--font-mono); font-size: .88rem; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  transform: rotate(1.2deg);
}
.hero .terminal.reveal.visible,
.hero .terminal.reveal.in {
  transform: rotate(1.15deg) translateY(14px);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.07); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.terminal-bar i:nth-child(1){ background:#FF5F57 } .terminal-bar i:nth-child(2){ background:#FEBC2E } .terminal-bar i:nth-child(3){ background:#28C840 }
.terminal-bar span { margin-left: 8px; color: #8A94B8; font-size: .78rem; }
.terminal-body { padding: 20px 22px 26px; min-height: 288px; white-space: pre-wrap; line-height: 1.7; }
/* kimlik.json sözdizimi renkleri - dizgeler temanın vurgu rengini izler (beyazla karışım koyu zeminde okunaklı tutar) */
.terminal-body .tc { color: #7C87A8; font-style: italic; }                          /* yorum      */
.terminal-body .tk { color: #C792EA; }                                              /* const      */
.terminal-body .tv { color: #82AAFF; }                                              /* değişken   */
.terminal-body .tp { color: #9DB1DE; }                                              /* anahtar    */
.terminal-body .ts { color: color-mix(in srgb, var(--accent) 62%, #FFE9CF); }       /* dizge      */
.terminal-body .tn, .terminal-body .tb { color: #7EE3B0; }                          /* sayı/bool  */
.cursor { display: inline-block; width: 9px; height: 1.1em; background: var(--accent); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Ana sayfa alt blokları */
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(48px, 8vw, 90px); }
.home-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.home-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.home-card h3 { font-family: var(--font-display); margin: 10px 0 6px; color: var(--ink); }
.home-card p { color: var(--muted); font-size: .94rem; }
.home-card .idx { font-family: var(--font-mono); color: var(--accent); font-size: .8rem; }

/* ---------- Kartlar / ızgaralar ---------- */
.card-grid,
.cert-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  transition: transform .22s cubic-bezier(.22,.8,.3,1), box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.card-media { aspect-ratio: 16/9; background: linear-gradient(135deg, #1B2A4F, #14213D); position: relative; overflow: hidden; border-radius: var(--img-cover-radius) var(--img-cover-radius) 0 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.35); font-family: var(--font-mono); font-size: 1.5rem;
}
.card-link {
  display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0;
  height: 100%; color: inherit; text-decoration: none;
}
.card-link:hover { text-decoration: none; color: inherit; }
.card-body { padding: 14px 16px 15px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.card-head { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.card-head h3 {
  font-family: var(--font-display); font-size: .95rem; line-height: 1.3; margin: 0; flex: 1; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-head .card-cat { flex-shrink: 0; font-size: .62rem; padding: 4px 8px;
  display: inline-flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 4px; text-align: center; line-height: 1.15; border-radius: 8px; }
.card-head .card-cat ion-icon { width: 13px; height: 13px; font-size: 13px; flex-shrink: 0; color: currentColor; margin: 0; }
.card-body p {
  color: var(--muted); font-size: .8rem; line-height: 1.5; flex: 0 0 auto; margin: 0;
  min-width: 0; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
  overflow-wrap: break-word; word-break: break-word; hyphens: auto;
}
#projectGrid .card-head {
  flex-direction: column; align-items: flex-start; gap: 8px;
}
#projectGrid .card-head h3 { flex: none; width: 100%; }
#projectGrid .card-body > p {
  flex: 0 0 auto;
}
#projectGrid .tags { margin-top: auto; padding-top: 2px; flex-shrink: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-family: var(--font-mono); font-size: .64rem; padding: 2px 8px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--paper);
}
.tag.tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 650; line-height: 1.2;
}
.tag.tag-chip ion-icon {
  width: 12px; height: 12px; font-size: 12px; flex: none; color: currentColor; pointer-events: none;
}
a.tag.tag-chip:hover, button.tag.tag-chip:hover {
  filter: brightness(0.93); text-decoration: none;
}
.card-links { display: flex; gap: 14px; font-size: .9rem; font-weight: 600; }
.badge-featured {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--accent); color: #fff; font-family: var(--font-mono);
  font-size: .62rem; padding: 2px 8px; border-radius: 999px; letter-spacing: .06em;
}

@media (max-width: 1100px) {
  .card-grid, .cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .card-grid, .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 480px) {
  .card-grid, .cert-grid { grid-template-columns: 1fr; }
}

/* Filtre çubukları */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.filter-btn {
  font-family: var(--font-mono); font-size: .82rem; padding: 7px 16px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  border-radius: 999px; transition: all .18s;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Özgeçmiş ---------- */
.resume-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 5vw, 60px); }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -28px; top: 6px; width: 12px; height: 12px;
  border: 2.5px solid var(--accent); background: var(--paper); transform: rotate(45deg);
}
.timeline-item .period { font-family: var(--font-mono); font-size: .78rem; color: var(--accent-ink); letter-spacing: .06em; }
.timeline-item h3 { font-family: var(--font-display); font-size: 1.12rem; margin: 4px 0 2px; }
.timeline-item .company { color: var(--muted); font-weight: 500; font-size: .92rem; }
.timeline-item p { color: var(--muted); font-size: .93rem; margin-top: 8px; }
.resume-block h2 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.resume-block h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.resume-block + .resume-block { margin-top: 44px; }

.skill { margin-bottom: 18px; }
.skill-group { display: flex; align-items: center; gap: 8px; margin: 24px 0 12px;
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink);
  padding-bottom: 7px; border-bottom: 1px dashed var(--line); }
.skill-group::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }
.resume-block h2 + .skill-group { margin-top: 4px; }
.skill-head { display: flex; justify-content: space-between; font-size: .92rem; font-weight: 500; margin-bottom: 7px; }
.skill-head span:last-child { font-family: var(--font-mono); color: var(--accent-ink); font-size: .8rem; }
.skill-bar { height: 7px; background: var(--line-soft); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.skill-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ink), var(--accent)); border-radius: 99px; transition: width 1.1s cubic-bezier(.22,.8,.3,1); }

/* ---------- Sertifikalar ---------- */
.cert-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.cert {
  display: flex; gap: 18px; align-items: flex-start; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform .2s, box-shadow .2s;
}
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cert-seal {
  width: 52px; height: 52px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: var(--accent); font-family: var(--font-mono); font-size: 1.2rem; font-weight: 600;
}
.cert img.cert-seal { object-fit: cover; background: var(--paper); }
.cert h3 { font-family: var(--font-display); font-size: 1.05rem; }
.cert .issuer { color: var(--muted); font-size: .9rem; }
.cert .date { font-family: var(--font-mono); font-size: .76rem; color: var(--accent-ink); margin-top: 4px; }
.cert a { font-size: .85rem; font-weight: 600; }

/* ---------- Blog ---------- */
.blog-toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.search-input {
  flex: 1; min-width: 220px; padding: 11px 18px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card); font-family: var(--font-body); font-size: .95rem; color: var(--ink);
}
.search-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.blog-cat { margin: 0; }
.post-meta .type-badge ion-icon,
.post-meta-hero .type-badge ion-icon { color: currentColor; }
.post-meta span { display: inline-flex; align-items: center; gap: 4px; }
.post-meta ion-icon { font-size: 14px; color: var(--accent); flex-shrink: 0; }

/* Blog listesi: sertifika kartı hiyerarşisi (başlık → rozet → alt şerit), özet ve sayaçlar durur */
.blog-grid .card-body { gap: 6px; padding: 12px 14px 12px; min-width: 0; }
.blog-grid .card-body h3 {
  font-family: var(--font-display); font-size: .95rem; line-height: 1.28; margin: 0; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; overflow-wrap: anywhere;
}
.blog-grid .card-body > p {
  color: var(--muted); font-size: .78rem; line-height: 1.4; margin: 0;
  flex: 0 1 auto; min-width: 0; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
  overflow-wrap: anywhere; word-break: break-word;
}
.blog-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.blog-badges .type-badge { margin: 0; font-size: .62rem; }
.blog-badges .type-badge ion-icon { color: currentColor; }
.blog-badges .tag { padding: 2px 8px; font-size: .68rem; }
.blog-foot {
  margin-top: auto; display: flex; align-items: center;
  gap: 8px; width: 100%; min-width: 0; padding-top: 8px; border-top: 1px solid var(--line-soft);
}
.blog-foot-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  flex: 1 1 auto; min-width: 0;
}
.blog-foot .date,
.blog-stats span {
  font-size: .68rem; color: var(--muted); font-family: var(--font-mono);
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
}
.blog-foot .date { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.blog-foot ion-icon { width: 14px; height: 14px; font-size: 14px; color: var(--accent); flex-shrink: 0; }
.blog-stats { display: inline-flex; align-items: center; gap: 10px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 40px; }
.pagination button,
.pagination a {
  min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); font-family: var(--font-mono); color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
}
.pagination button.active,
.pagination a.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination a:hover { text-decoration: none; border-color: var(--ink); color: var(--ink); }
.pagination .pg-gap { min-width: 24px; color: var(--muted); font-family: var(--font-mono); letter-spacing: .12em; }

/* Yazı detay */
.post-detail { max-width: 820px; margin: 0 auto; }
.post-detail .post-cover { margin: 20px 0 14px; }
.post-detail .post-meta-hero { margin: 0 0 12px; }
.post-detail .post-head { margin: 0 0 24px; }
.post-cover { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.post-cover img { display: block; width: 100%; height: auto; }
.post-content { font-size: 1.06rem; color: var(--ink-soft); }
.post-content h2, .post-content h3, .post-content h4 { font-family: var(--font-display); color: var(--ink); margin: 1.8em 0 .6em; line-height: 1.25; }
.post-content h2 { font-size: 1.6rem; } .post-content h3 { font-size: 1.3rem; }
.post-content p { margin: 0 0 1.1em; }
.post-content ul, .post-content ol { margin: 0 0 1.2em 1.4em; }
.post-content li { margin-bottom: .4em; }
.post-content img { border-radius: 12px; margin: 1.6em auto; box-shadow: var(--shadow); }
/* Yan yana görseller: aynı paragraftaki 2+ görsel tek satırı paylaşır */
.post-content .img-row { display: flex; gap: 14px; align-items: flex-start; margin: 1.6em 0; }
.post-content .img-row img { margin: 0; min-width: 0; flex: 0 1 auto; }
.post-content blockquote {
  border-left: 3px solid var(--accent); background: var(--card);
  padding: 16px 22px; margin: 1.6em 0; border-radius: 0 10px 10px 0; font-style: italic; color: var(--ink-soft);
}
.post-content pre {
  background: #101830; border-radius: 12px; padding: 20px; overflow-x: auto;
  margin: 1.6em 0; font-family: var(--font-mono); font-size: .88rem; position: relative;
}
.post-content pre code { background: none; padding: 0; color: #D7DEF0; }
.post-content code { font-family: var(--font-mono); font-size: .88em; background: var(--line-soft); padding: 2px 7px; border-radius: 6px; }
.post-content .video-wrap { position: relative; padding-top: 56.25%; margin: 1.6em 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.post-content .video-wrap iframe, .post-content .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-content video { width: 100%; border-radius: 12px; margin: 1.6em 0; }
.post-content hr { border: none; border-top: 1px dashed var(--line); margin: 2.2em 0; }
.post-content figure figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: -1em; margin-bottom: 1.6em; }
.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .02em; color: var(--muted);
  text-decoration: none; margin: 0 0 16px;
  padding: 5px 12px 5px 9px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card);
  transition: color .18s, border-color .18s, background .18s, transform .18s;
}
.back-link svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .18s; }
.back-link:hover, .back-link:focus-visible {
  text-decoration: none; color: var(--accent-ink); border-color: var(--accent);
  transform: translateX(-3px);
}
.back-link:hover svg { transform: translateX(-2px); }

/* ---------- Hakkımda ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.about-photo {
  aspect-ratio: 4/5; border-radius: 16px; background: linear-gradient(160deg, #1B2A4F, #14213D);
  display: grid; place-items: center; color: rgba(255,255,255,.4);
  font-family: var(--font-mono); font-size: 3.4rem; position: relative;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.about-photo::after {
  content: ''; position: absolute; inset: 12px; border: 1px dashed rgba(255,255,255,.22); border-radius: 10px;
}
.about-text { font-size: 1.08rem; color: var(--ink-soft); white-space: pre-line; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.fact .k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.fact .v { font-weight: 600; margin-top: 3px; word-break: break-word; }

/* ---------- İletişim ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 60px); }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); font-family: var(--font-body); font-size: .96rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228,87,46,.15); }
.form-row textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .92rem; padding: 12px 16px; border-radius: 10px; margin-top: 14px; display: none; }
.form-note, .cerez-bar { --n-ok: var(--notif-ok, var(--ok, #1F7A5C)); --n-err: var(--notif-err, #C2401C); }
.form-note.ok { display: block; color: var(--n-ok);
  background: color-mix(in srgb, var(--n-ok) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--n-ok) 35%, var(--card)); }
.form-note.err { display: block; color: var(--n-err);
  background: color-mix(in srgb, var(--n-err) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--n-err) 35%, var(--card)); }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info-item .ico {
  width: 44px; height: 44px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--ink); color: var(--accent); font-family: var(--font-mono);
}

/* ---------- Boş durum, yükleniyor ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .mark { font-family: var(--font-mono); font-size: 2rem; color: var(--line); }
.loader { display: flex; justify-content: center; padding: 70px 0; }
.loader i {
  width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Alt bilgi ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--card); }
.footer-inner {
  max-width: var(--page-max); margin: 0 auto; padding: 28px clamp(18px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  font-size: .9rem; color: var(--muted);
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink-soft); font-weight: 500; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: unset; padding-top: 10px; }
  .terminal,
  .hero .terminal.reveal.visible,
  .hero .terminal.reveal.in { transform: none; }
  .resume-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.open { max-height: 420px; }
  .site-nav a { padding: 15px clamp(18px, 5vw, 40px); border-top: 1px solid var(--line-soft); font-size: 1.02rem; }
  .site-nav a::after { display: none; }
  .nav-cta { border: none; border-radius: 0; margin: 0; }
  .nav-cta:hover { background: var(--line-soft); color: var(--ink) !important; }
  .about-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Arşiv ---------- */
.kind-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 11px; border-radius: 999px; color: #fff; background: var(--ink); width: fit-content;
}
.kind-badge.sayfa { background: #1F7A5C; } .kind-badge.program { background: var(--accent); }
.kind-badge.baglanti { background: #3A5BD9; }
.archive-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.archive-meta { display: flex; gap: 16px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin-top: 8px; }
.archive-detail { max-width: 820px; margin: 0 auto; }

/* ============================================================
   TEMALAR - html[data-theme] ile değişen renk paletleri
   ============================================================ */
html[data-theme="gece"] {
  --paper: #0E1526; --card: #16203A; --ink: #E8ECF7; --ink-soft: #C3CBE2;
  --muted: #8A94B8; --line: rgba(232,236,247,.14); --line-soft: rgba(232,236,247,.06);
  --accent: #5CE0A1; --accent-ink: #47C98B; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -16px rgba(0,0,0,.6);
}
html[data-theme="orman"] {
  --paper: #F3F5EF; --card: #FFFFFF; --ink: #1E3A2F; --ink-soft: #3D5A4C;
  --muted: #6E8377; --line: rgba(30,58,47,.16); --line-soft: rgba(30,58,47,.07);
  --accent: #C97B2D; --accent-ink: #A96420;
}
html[data-theme="bordo"] {
  --paper: #FAF6F1; --card: #FFFFFF; --ink: #4A1A2C; --ink-soft: #6B3A4C;
  --muted: #8A6B76; --line: rgba(74,26,44,.16); --line-soft: rgba(74,26,44,.07);
  --accent: #B8763E; --accent-ink: #9C5F2C;
}
html[data-theme="okyanus"] {
  --paper: #0B1B2B; --card: #12283D; --ink: #DCE9F5; --ink-soft: #B5CBDE;
  --muted: #7E9AB3; --line: rgba(220,233,245,.14); --line-soft: rgba(220,233,245,.06);
  --accent: #39C0ED; --accent-ink: #2BA6D0; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -16px rgba(0,0,0,.6);
}
/* Koyu temalarda ince uyarlamalar */
html[data-theme="gece"] .nav-cta:hover, html[data-theme="okyanus"] .nav-cta:hover { color: var(--paper) !important; }
html[data-theme="gece"] .btn-primary, html[data-theme="okyanus"] .btn-primary { color: var(--paper); }
html[data-theme="gece"] .terminal, html[data-theme="okyanus"] .terminal { border-color: var(--line); }
html[data-theme="gece"] .cert-seal, html[data-theme="okyanus"] .cert-seal,
html[data-theme="gece"] .contact-info-item .ico, html[data-theme="okyanus"] .contact-info-item .ico { background: var(--accent); color: var(--paper); }

/* ============================================================
   YAZI TİPLERİ - html[data-font] ile değişen font aileleri
   (defter = :root varsayılanları; özel fontlar layout.php'den gelir)
   ============================================================ */
html[data-font="inter"] {
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
html[data-font="poppins"] {
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --font-mono: 'Fira Code', monospace;
}
html[data-font="klasik"] {
  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}
html[data-font="sistem"] {
  --font-display: -apple-system, 'Segoe UI', sans-serif;
  --font-body: -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
}

/* ---- Tema seçici ---- */
.header-tools { display: flex; align-items: center; gap: 8px; }
.theme-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); font-size: 1.05rem; transition: all .18s; }
.theme-btn:hover { border-color: var(--accent); color: var(--accent); transform: rotate(24deg); }
.theme-menu { position: absolute; top: calc(var(--header-h) + 6px); right: clamp(16px, 4vw, 48px); z-index: 60;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; min-width: 210px; }
.theme-menu button { display: flex; align-items: center; gap: 10px; background: none; border: none;
  padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: .9rem; text-align: left; width: 100%; }
.theme-menu button:hover { background: var(--line-soft); }
.theme-menu button.is-active {
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
  color: var(--accent-ink);
  font-weight: 600;
}
.theme-menu .sw { display: inline-flex; gap: 3px; }
.theme-menu .sw i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.theme-menu .tm-reset {
  margin-top: 2px;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px dashed color-mix(in srgb, var(--accent) 38%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.theme-menu .tm-reset:hover {
  background: color-mix(in srgb, var(--accent) 16%, var(--card));
  border-style: solid;
  border-color: var(--accent);
  color: var(--accent-ink);
}
.theme-menu .tm-reset-ico {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 16%, var(--card));
  color: var(--accent); font-size: .95rem;
  transition: transform .18s ease;
}
.theme-menu .tm-reset-ico ion-icon { display: block; }
.theme-menu .tm-reset:hover .tm-reset-ico { transform: rotate(-50deg); }

/* ---- Sunucu tarafı render: sayfa yükleniş animasyonu ---- */
main.view { animation: viewIn .5s cubic-bezier(.22,.8,.3,1) both; }
a.tag:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 760px) {
  .theme-menu { right: 12px; }
}

/* ============================================================
   İçerik blokları - uyarı kutuları, prompt, indirme, kod, detay
   ============================================================ */
.about-photo.has-img { padding: 0; overflow: hidden; }
.about-photo.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Uyarı / not kutuları ---- */
.callout { border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 10px;
  padding: 14px 16px 14px 46px; margin: 20px 0; position: relative; background: var(--card); font-size: .95rem; }
.callout::before { content: ""; position: absolute; left: 14px; top: 15px; width: 19px; height: 19px;
  background-color: var(--callout-renk, var(--muted));
  -webkit-mask: var(--callout-ikon) center / contain no-repeat; mask: var(--callout-ikon) center / contain no-repeat; }
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.callout-bilgi   { border-left-color: #2E86DE; background: rgba(46,134,222,.07);
  --callout-renk: #2E86DE; --callout-ikon: url("https://cdn.jsdelivr.net/npm/ionicons@7.2.2/dist/svg/information-circle-outline.svg"); }
.callout-uyari   { border-left-color: #E9A23B; background: rgba(233,162,59,.09);
  --callout-renk: #C97F16; --callout-ikon: url("https://cdn.jsdelivr.net/npm/ionicons@7.2.2/dist/svg/warning-outline.svg"); }
.callout-tehlike { border-left-color: #D64545; background: rgba(214,69,69,.08);
  --callout-renk: #D64545; --callout-ikon: url("https://cdn.jsdelivr.net/npm/ionicons@7.2.2/dist/svg/alert-circle-outline.svg"); }
.callout-ipucu   { border-left-color: #2FBF71; background: rgba(47,191,113,.08);
  --callout-renk: #2FBF71; --callout-ikon: url("https://cdn.jsdelivr.net/npm/ionicons@7.2.2/dist/svg/bulb-outline.svg"); }
.callout-not     { border-left-color: #8E7CC3; background: rgba(142,124,195,.09);
  --callout-renk: #8E7CC3; --callout-ikon: url("https://cdn.jsdelivr.net/npm/ionicons@7.2.2/dist/svg/create-outline.svg"); }

/* ---- Prompt bloğu (AI prompt paylaşımı) ---- */
.prompt-block { border: 1px solid rgba(142,124,195,.45); border-radius: 12px; margin: 22px 0;
  background: linear-gradient(135deg, rgba(142,124,195,.10), rgba(46,134,222,.07)); overflow: hidden; }
.prompt-block .code-head { background: #6C5CE7; color: #fff; border: 0;
  align-items: center; padding: 0 12px 0 14px;
  border-radius: 11px 11px 0 0; margin: 0; width: 100%; box-sizing: border-box; }
.prompt-block .code-head .copy-btn { margin-bottom: 0; }
.prompt-block .code-head .ai-tag { flex: none; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.38);
  color: #fff; border-radius: 5px; padding: 1px 7px; font-size: .64rem; font-weight: 700; letter-spacing: .1em; line-height: 1.5; }
.prompt-block .code-head .lang { text-transform: none; color: inherit; font-weight: 600; opacity: .95; }
.prompt-block .code-head .dot { background: rgba(255,255,255,.5); }
.prompt-block pre { margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink);
  font-family: var(--font-mono); font-size: .88rem; line-height: 1.65; padding: 16px 18px; white-space: pre-wrap; word-break: break-word; }

/* ---- Kod bloğu zenginleştirme (JS ile sarılır) ---- */
.code-box { border-radius: 12px; overflow: hidden; margin: 22px 0; border: 1px solid var(--line); }
.code-head { display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px 0 14px;
  height: 36px; min-height: 36px; max-height: 36px; box-sizing: border-box;
  background: #141A28; color: #B8C2DE; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em;
  border-bottom: 1px solid rgba(255,255,255,.06); }
.code-head .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin: 0 0 10px; }
.code-head .dot:nth-child(1) { background: #FF5F56; }
.code-head .dot:nth-child(2) { background: #FFBD2E; }
.code-head .dot:nth-child(3) { background: #27C93F; }
.code-head .lang { text-transform: uppercase; font-weight: 600; color: #7FA3E8; }
.code-head .file {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 11px; margin: 0 0 -1px; max-width: min(260px, 60%);
  height: 28px; min-height: 28px; max-height: 28px; box-sizing: border-box; line-height: 1; flex: none;
  background: #1B2233; color: #E6EDF7; font-weight: 500; opacity: 1;
  border: 1px solid rgba(255,255,255,.08); border-bottom-color: #1B2233;
  border-radius: 7px 7px 0 0; white-space: nowrap; overflow: hidden;
  position: relative; z-index: 1;
}
.code-head .file .lang-icon { width: 13px; height: 13px; flex: none; object-fit: contain; }
.code-head .file .file-name { overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.code-head > .lang-icon { width: 14px; height: 14px; flex: none; object-fit: contain; margin: 0 0 9px; }
.code-head .copy-btn { margin-left: auto; margin-bottom: 5px; background: rgba(255,255,255,.09); border: none; color: inherit;
  border-radius: 6px; padding: 0 10px; font-family: inherit; font-size: .72rem; cursor: pointer; transition: background .15s;
  height: 24px; line-height: 24px; box-sizing: border-box; flex: none; }
.code-head .copy-btn:hover { background: rgba(255,255,255,.2); }
.code-head .copy-btn.ok { background: #2FBF71; color: #fff; }
.code-box pre { margin: 0; border-radius: 0; border: 0; background: #1B2233; }

/* ---- İndirme kartı ---- */
a.dl-card { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin: 20px 0; background: var(--card); text-decoration: none; color: var(--ink);
  transition: border-color .18s, transform .18s; }
a.dl-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
a.dl-card .dl-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
a.dl-card .dl-meta { flex: 1; min-width: 0; }
a.dl-card b { display: block; font-family: var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.dl-card small { color: var(--muted); font-family: var(--font-mono); font-size: .74rem; }
a.dl-card .dl-btn { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  background: var(--accent); color: #fff; border-radius: 999px; padding: 9px 18px;
  font-weight: 600; font-size: .86rem; transition: transform .15s, box-shadow .15s; }
a.dl-card .dl-btn ion-icon { font-size: 1rem; }
a.dl-card:hover .dl-btn { transform: scale(1.05); }
@media (max-width: 480px) { a.dl-card .dl-btn span { display: none; } a.dl-card .dl-btn { padding: 9px 12px; } }

/* ---- CTA buton bağlantısı ---- */
a.btn-cta { display: inline-block; background: var(--accent); color: #fff !important; padding: 12px 26px;
  border-radius: 999px; font-weight: 600; text-decoration: none; margin: 8px 0; transition: transform .15s, box-shadow .15s; }
a.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent); text-decoration: none; }

/* ---- Açılır bölüm ---- */
.post-content details { border: 1px solid var(--line); border-radius: 10px; margin: 18px 0; background: var(--card); }
.post-content summary { padding: 13px 16px; cursor: pointer; font-weight: 600; font-family: var(--font-display);
  list-style: none; position: relative; padding-left: 38px; }
.post-content summary::before { content: "▸"; position: absolute; left: 16px; color: var(--accent); transition: transform .2s; }
.post-content details[open] summary::before { transform: rotate(90deg); }
.post-content details > *:not(summary) { padding: 0 16px; }
.post-content details > *:last-child { padding-bottom: 14px; }
/* Prompt bloğu kenarlara yaslanır; yan boşluk margin ile korunur */
.post-content details > .prompt-block {
  padding: 0; margin-left: 16px; margin-right: 16px;
}
.post-content details > .prompt-block:last-child {
  padding-bottom: 0; margin-bottom: 14px;
}

/* ---- Tablo ---- */
.post-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .92rem; }
.post-content th { background: var(--line-soft); font-family: var(--font-display); text-align: left; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 9px 12px; }

@media (max-width: 640px) {
  .callout { padding-left: 40px; }
  a.dl-card { padding: 12px 14px; }
}

/* ============================================================
   DÜZELTME: tema menüsü [hidden] - display:flex hidden'ı eziyordu
   ============================================================ */
.theme-menu[hidden] { display: none !important; }
.theme-menu { max-height: 70vh; overflow-y: auto; }
.tm-title { font-size: .64rem; letter-spacing: .12em; color: var(--muted); font-weight: 700;
  padding: 8px 12px 4px; font-family: var(--font-mono); }
.tm-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---- Arka plan seçenekleri ---- */
.bg-sw { width: 30px; height: 18px; border-radius: 4px; border: 1px solid var(--line); display: inline-block; }
.bg-sw.bg-izgara { background: var(--paper) linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 6px 6px; }
.bg-sw.bg-noktalar { background: var(--paper) radial-gradient(var(--line) 1px, transparent 1px); background-size: 6px 6px; }
.bg-sw.bg-cizgiler { background: var(--paper) linear-gradient(var(--line-soft) 1px, transparent 1px); background-size: 100% 6px; }
.bg-sw.bg-duz { background: var(--paper); }
.bg-sw.bg-degrade { background: linear-gradient(135deg, var(--paper), var(--line-soft)); }

html[data-bg="noktalar"] .grid-bg { background-image: radial-gradient(var(--line) 1.1px, transparent 1.1px); background-size: 26px 26px; }
html[data-bg="cizgiler"] .grid-bg { background-image: linear-gradient(var(--line-soft) 1px, transparent 1px); background-size: 100% 32px; }
html[data-bg="duz"] .grid-bg { background-image: none; }
html[data-bg="degrade"] .grid-bg { background-image: radial-gradient(1200px 600px at 80% -10%, var(--line-soft), transparent 60%), radial-gradient(900px 500px at -10% 110%, var(--line-soft), transparent 55%); background-size: auto; }

/* ---- Sosyal ikonlar ---- */
.social-links a { display: inline-flex; align-items: center; gap: 7px; }
.social-links svg { width: 18px; height: 18px; flex-shrink: 0; }
.site-footer .social-links a { color: var(--muted); }
.site-footer .social-links a:hover { color: var(--accent); }
.site-footer .social-links svg { width: 20px; height: 20px; }

/* ---- Sertifika kartı (buton oldu) + modal ---- */
button.cert { text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%;
  background: var(--card); border: 1px solid var(--line); }
button.cert:hover { border-color: var(--accent); }
.cert-more { display: inline-block; margin-top: 8px; font-size: .8rem; color: var(--accent-ink);
  font-family: var(--font-mono); }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(10, 16, 30, .55);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px;
  overflow: hidden; overscroll-behavior: contain;
  animation: fadeIn .2s both; }
.modal-backdrop[hidden] { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  max-width: 520px; width: 100%; max-height: 88vh; overflow-y: auto; position: relative;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); animation: modalIn .28s cubic-bezier(.22,.8,.3,1.2) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: none;
  border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 1rem; cursor: pointer; z-index: 2; }
.modal-close:hover { background: var(--accent); }
.modal-media { background: var(--line-soft); display: grid; place-items: center; padding: 26px;
  border-radius: 18px 18px 0 0; }
.modal-media img { max-width: 240px; max-height: 240px; border-radius: 12px; }
.modal-media.empty { display: none; }
.modal-body { padding: 22px 26px 28px; }
.modal-body h2 { font-size: 1.25rem; margin-bottom: 8px; }
.modal-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .85rem;
  font-family: var(--font-mono); margin-bottom: 14px; }
.modal-body p { color: var(--ink-soft); font-size: .93rem; line-height: 1.7; margin-bottom: 18px; }

/* ---- Özgeçmiş ekleri ---- */
.timeline-item .subtitle { color: var(--muted); font-size: .84rem; font-style: italic; margin: 2px 0 6px; }
.bullets { margin: 10px 0 0 2px; padding-left: 18px; }
.bullets li { color: var(--ink-soft); font-size: .9rem; line-height: 1.6; margin-bottom: 4px; }
.bullets li::marker { color: var(--accent); }
.skill-note { color: var(--muted); font-size: .76rem; margin-top: 5px; font-family: var(--font-mono); }

@media (max-width: 640px) {
  .modal-media img { max-width: 170px; max-height: 170px; }
}

/* ---- Özgeçmiş bilgi kartları ---- */
.fact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.fact-card { border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; background: var(--card);
  height: auto; min-height: 0; }
.fact-card .k { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--font-mono); margin-bottom: 3px; }
.fact-card .v { font-size: .92rem; font-weight: 600; line-height: 1.35; }
.fact-card .fact-subtitle { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.35; }
.fact-card .fact-sub { margin: 6px 0 0; padding: 0; list-style: none; }
.fact-card .fact-sub li { font-size: .74rem; color: var(--muted); padding-left: 14px; position: relative; line-height: 1.5; }
.fact-card .fact-sub li::before { content: "•"; position: absolute; left: 2px; color: var(--accent); }
@media (max-width: 480px) { .fact-cards { grid-template-columns: 1fr; } }


/* ============================================================
   DÜZELTME: kısa sayfalarda footer en altta sabit kalsın
   ============================================================ */
body { display: flex; flex-direction: column; min-height: 100vh; }
main.view { flex: 1 0 auto; width: 100%; }
.site-footer { flex-shrink: 0; margin-top: auto; }

/* ---- Ara sayfa (yönlendirme / indirme): ortak ölçü, header-footer arası ortalı ---- */
main.view:has(.redirect-wrap) {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  flex: 1 1 auto; width: 100%; max-width: none;
  padding: 24px 16px; animation: none;
}
.redirect-wrap { display: grid; place-items: center; width: min(100%, 440px); min-height: 0; padding: 0; }
.redirect-card { text-align: center; width: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow); box-sizing: border-box; }
.redirect-ring { width: 120px; height: 120px; margin: 0 auto 20px; position: relative; }
.redirect-ring svg { transform: rotate(-90deg); width: 120px; height: 120px; }
.redirect-ring .iz { fill: none; stroke: var(--line-soft); stroke-width: 7; }
.redirect-ring .dolgu { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 339; stroke-dashoffset: 339; animation: rdDolgu 3s linear forwards; }
@keyframes rdDolgu { to { stroke-dashoffset: 0; } }
.redirect-ring .terminal-cursor { position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.2rem; color: var(--accent); animation: none; }
.redirect-card h1 { font-size: 1.5rem; margin: 8px 0 14px; }
.redirect-target b { display: block; margin-bottom: 4px; }
.redirect-target { min-height: 3.1em; }
.redirect-target .host { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); display: block; overflow-wrap: anywhere; }
@media (max-width: 480px) { .redirect-card { padding: 28px 20px; } }
.redirect-note { color: var(--muted); font-size: .84rem; line-height: 1.55; margin: 14px 0 22px; min-height: 3.9em; }
.redirect-note .dl-hazir { color: var(--notif-ok, var(--ok)); font-weight: 700; }
.redirect-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#rdSay:not(:empty)::before { content: "("; } #rdSay:not(:empty)::after { content: ")"; }
#dlSimdi:disabled { opacity: .38; cursor: not-allowed; pointer-events: none; transform: none; box-shadow: none; }
.dl-print-meta { color: var(--muted); font-size: .85rem; margin: 0 0 22px; }
.dl-kaynak { margin-top: 48px; }
.dl-kaynak-cizgi { border: none; border-top: 1px dashed var(--line); margin: 0 0 22px; }
.dl-kaynak-kutu {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.dl-kaynak-kutu:not(:has(.dl-kaynak-yazar)) { grid-template-columns: 1fr; }
.dl-kaynak-yazar { display: flex; gap: 14px; align-items: center; min-width: 0; }
.dl-kaynak-foto { width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--line); flex-shrink: 0; }
.dl-kaynak-bas { display: grid; place-items: center; background: var(--line-soft);
  color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.dl-kaynak-yazar-metin, .dl-kaynak-site { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-kaynak-etiket { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); }
.dl-kaynak-ad, .dl-kaynak-site-ad { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); font-weight: 700; }
.dl-kaynak-rol { color: var(--muted); font-size: .84rem; }
.dl-kaynak-site { padding-left: 22px; border-left: 1px dashed var(--line); }
.dl-kaynak-kutu:not(:has(.dl-kaynak-yazar)) .dl-kaynak-site { border: none; padding-left: 0; }
.dl-kaynak-link { color: var(--accent-ink); font-size: .78rem; font-family: var(--font-mono);
  text-decoration: none; overflow-wrap: anywhere; }
.dl-kaynak-link:hover { text-decoration: none; color: var(--accent); }
.dl-kaynak-copy { color: var(--muted); font-size: .78rem; margin-top: 4px; }
@media (max-width: 560px) {
  .dl-kaynak-kutu { grid-template-columns: 1fr; }
  .dl-kaynak-site { border-left: none; padding-left: 0; border-top: 1px dashed var(--line); padding-top: 14px; }
}

@media screen {
  /* 1px klipli kutu: yazı kopyası belgeyi uzatmasın (main.view transform fixed'i bozar) */
  .dl-print-hold {
    position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden;
    clip: rect(0, 0, 0, 0); clip-path: inset(50%); border: 0; white-space: nowrap; pointer-events: none;
  }
  .dl-print-src { width: 820px; position: static; }
}

/* ---- Kategori seçicili arama ---- */
.search-combo { display: flex; width: 100%; max-width: 560px; }
.search-combo .search-input { border-radius: 0 12px 12px 0; flex: 1; }

/* ---- Sertifika: özet, rozet, favicon, doğrulama kodu ---- */
.cert-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.cstat { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .82rem;
  background: var(--card); color: var(--ink-soft); font-family: var(--font-mono); }
.cstat b { color: var(--accent-ink); }
.cstat.total { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cstat.total b { color: var(--accent); }
.issuer-fav { width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin-right: 4px; }
.type-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .64rem; letter-spacing: .05em; padding: 2px 8px;
  border-radius: 999px; margin-left: 8px; font-family: var(--font-mono); border: 1px solid var(--line); color: var(--muted); }
.type-badge ion-icon { width: 12px; height: 12px; font-size: 12px; flex: none; pointer-events: none; }
button.type-badge {
  margin: 0; cursor: pointer; appearance: none; -webkit-appearance: none;
  background: transparent; font: inherit; line-height: 1.2; color: inherit;
  padding: 2px 8px; box-sizing: border-box;
}
.cert-modal .cert-type-row .type-badge,
.cert-modal button.type-badge {
  margin: 0; font-size: .62rem; padding: 2px 8px; line-height: 1.2;
  min-height: 0; height: auto;
}
.cert-modal button.type-badge.is-filter:hover {
  filter: brightness(0.96); border-color: currentColor; text-decoration: none;
}
.cert-modal button.type-badge.is-filter:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.type-badge.t-devlet { background: rgba(47,191,113,.12); color: #1F7A5C; border-color: rgba(47,191,113,.4); }
.type-badge.t-universite { background: rgba(46,134,222,.1); color: #2464A8; border-color: rgba(46,134,222,.35); }
.type-badge.t-platform { background: rgba(142,124,195,.12); color: #6C5CE7; border-color: rgba(142,124,195,.4); }
.type-badge.t-ozel { background: rgba(233,162,59,.14); color: #A8731B; border-color: rgba(233,162,59,.4); }
.type-badge.t-yazilim { background: rgba(37,99,235,.12); color: #2563EB; border-color: rgba(37,99,235,.38); }
.type-badge.t-guvenlik { background: rgba(220,38,38,.12); color: #DC2626; border-color: rgba(220,38,38,.38); }
.type-badge.t-tasarim { background: rgba(124,58,237,.12); color: #7C3AED; border-color: rgba(124,58,237,.38); }
.type-badge.t-kalite { background: rgba(15,118,110,.12); color: #0F766E; border-color: rgba(15,118,110,.38); }
.type-badge.t-havacilik { background: rgba(3,105,161,.12); color: #0369A1; border-color: rgba(3,105,161,.38); }
.type-badge.t-kisisel-gelisim { background: rgba(234,88,12,.12); color: #EA580C; border-color: rgba(234,88,12,.38); }
.type-badge.t-saglik { background: rgba(22,163,74,.12); color: #16A34A; border-color: rgba(22,163,74,.38); }
.type-badge.t-dil { background: rgba(202,138,4,.12); color: #CA8A04; border-color: rgba(202,138,4,.38); }
.type-badge.t-diger { background: rgba(107,114,128,.12); color: #6B7280; border-color: rgba(107,114,128,.38); }
#cmFav { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.cred-code { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--line); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 18px; background: var(--line-soft); flex-wrap: wrap; }
.cred-code .k { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--font-mono); }
.cred-code code { font-family: var(--font-mono); font-weight: 600; letter-spacing: .04em; flex: 1; }
.cred-code .copy-btn { background: var(--ink); color: var(--paper); border: none; border-radius: 7px;
  padding: 6px 14px; font-size: .74rem; cursor: pointer; font-family: var(--font-mono); }
.cred-code .copy-btn.ok { background: #2FBF71; }

/* ---- Bilgi kartı alt maddeleri (özgeçmiş .fact-card ile yukarıda) ---- */
/* ---- Alt bilgi sürümü ---- */
.site-version { font-family: var(--font-mono); font-size: .74rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; margin-left: 8px; }

/* ---- Çerez bildirimi ---- */
.cerez-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; margin: 0 auto; max-width: 680px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 16px 20px; display: flex; align-items: center; gap: 16px; animation: cerezIn .45s cubic-bezier(.22,.8,.3,1) both; }
.cerez-bar[hidden] { display: none !important; }
.cerez-bar p { font-size: .86rem; color: var(--ink-soft); flex: 1; margin: 0; }
.cerez-bar .btn { white-space: nowrap; }
.cerez-bar.kapaniyor { animation: cerezOut .35s ease both; }
@keyframes cerezIn { from { opacity: 0; transform: translateY(24px); } }
@keyframes cerezOut { to { opacity: 0; transform: translateY(24px); } }
@media (max-width: 560px) { .cerez-bar { flex-direction: column; text-align: center; } }

/* ============================================================
   YENİ TUR: modal blur, sertifika grid+modal, proje modalı,
   blog eylemleri, footer grid, scrollbar, print
   ============================================================ */

/* ---- Modal arka planı: tam bulanıklık ---- */
.modal-backdrop { background: rgba(15, 20, 35, .42); backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%); z-index: 999; animation: none; }

/* ---- Sertifika: kompakt düzenli grid ---- */
.cert-grid .cert { display: flex; flex-direction: column; padding: 0; border-radius: 12px; overflow: hidden;
  text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; min-width: 0;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .22s cubic-bezier(.22,.8,.3,1), box-shadow .22s, border-color .22s; }
.cert-grid .cert:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: var(--shadow); }
.cert-media { position: relative; aspect-ratio: 16/8; background: linear-gradient(135deg, var(--line-soft), transparent);
  display: grid; place-items: center; overflow: hidden; }
.cert-media img { width: 92px; height: 92px; object-fit: contain; border-radius: 12px;
  transition: transform .4s ease; }
.cert-grid .cert:hover .cert-media img { transform: scale(1.05); }
.cert-fallback { width: 70px; height: 70px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: 1.6rem; }
.cert-media .type-badge { margin: 0; background: var(--card); }
.cert-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.cert-badges .type-badge { margin: 0; font-size: .62rem; }
.cert-type-row { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 4px; }
.cert-type-row .type-badge { margin: 0; }
.cert-modal .cert-type-row { display: flex; margin: 0 0 14px; margin-left: 0; flex: none; }
.cert-modal .cm-title-row {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 0 10px;
  margin-bottom: 10px; min-width: 0; flex: none; padding-right: 40px;
}
.cert-modal .cm-issuer-line {
  margin-bottom: 0; flex: none; gap: 6px; min-width: 0;
  font-size: .72rem; letter-spacing: .08em; line-height: 1.2;
}
.cert-modal .cm-issuer-line #cmIssuer { min-width: 0; flex: 1 1 auto; }
.cert-modal .cm-issuer-line img {
  width: 16px; height: 16px; border-radius: 4px; flex: none;
}
.cert-modal .cm-title-sep {
  color: var(--muted); font-weight: 400; font-size: .95rem;
  line-height: 1; flex: none; opacity: .45; user-select: none;
  transform: translateY(-0.5px);
}
.cert-modal .modal-body h2#cmTitle {
  margin: 0; flex: 1 1 auto; min-width: 0;
  font-size: 1.22rem; line-height: 1.25; font-weight: 700;
}
/* Kısa: tek satır, taşanı ... */
.cert-modal .cm-title-row:not(.is-stacked) .cm-issuer-line { max-width: 40%; }
.cert-modal .cm-title-row:not(.is-stacked) #cmIssuer {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.cert-modal .cm-title-row:not(.is-stacked) h2#cmTitle {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Uzun: alt alta, | yok, satır kırılımı */
.cert-modal .cm-title-row.is-stacked {
  flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 6px;
}
.cert-modal .cm-title-row.is-stacked .cm-title-sep { display: none; }
.cert-modal .cm-title-row.is-stacked .cm-issuer-line {
  max-width: 100%; width: 100%;
}
.cert-modal .cm-title-row.is-stacked #cmIssuer {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; white-space: normal;
}
.cert-modal .cm-title-row.is-stacked h2#cmTitle {
  flex: none; width: 100%; font-size: 1.12rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; white-space: normal;
}
.cert-body { padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; width: 100%; }
.cert-body .issuer { font-size: .7rem; color: var(--muted); display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.cert-body .issuer .issuer-fav { flex: none; }
.cert-body .issuer .issuer-name {
  min-width: 0; flex: 1 1 auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cert-body h3 {
  font-size: .9rem; line-height: 1.28; margin: 0; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
  word-break: break-word; overflow-wrap: anywhere;
}
.cert-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  gap: 8px; width: 100%; min-width: 0; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.cert-foot .date { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .68rem; color: var(--muted); font-family: var(--font-mono);
  display: inline-flex; align-items: center; gap: 4px; }
.cert-foot .date ion-icon { font-size: 13px; color: var(--accent); flex-shrink: 0; }
.cert-foot .cert-more { flex: 0 0 auto; margin: 0; font-size: .72rem; color: var(--accent-ink);
  font-family: var(--font-mono); white-space: nowrap; }

/* ---- Sertifika modalı: görsel sahne sol, metin sağ ---- */
.cert-modal {
  width: min(1120px, 100%);
  max-width: min(1120px, 100%);
  height: auto;
  max-height: 100%; padding: 0; overflow: hidden;
  display: grid;
  grid-template-columns: minmax(380px, 1.28fr) minmax(300px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
}
.cm-banner { grid-column: 1; grid-row: 1; }
.cert-modal > .modal-body { grid-column: 2; grid-row: 1; }
.cert-modal.img-portrait {
  grid-template-columns: minmax(240px, 0.82fr) minmax(320px, 1.18fr);
}
.cert-modal.img-wide {
  grid-template-columns: minmax(440px, 1.38fr) minmax(280px, 0.9fr);
}
.cm-banner {
  background: var(--card); padding: 16px 18px 18px 22px; overflow: hidden;
  display: flex; align-items: stretch; justify-content: center;
  border-radius: 18px 0 0 18px; min-height: 0; min-width: 0;
  box-sizing: border-box;
}
.cm-stack {
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  width: 100%; max-width: 100%; min-width: 0; min-height: 0;
  align-self: stretch;
}
/* Açıklama görselden uzunsa: görsel üstte, kimlik kartın altına yapışır */
.cm-stack:has(.cred-panel:not([hidden])) { justify-content: space-between; }
.cm-banner img,
.cm-banner.is-landscape img,
.cm-banner.is-wide img,
.cm-banner.is-portrait img,
.cm-banner.is-square img {
  display: block; width: auto; height: auto; flex: none;
  max-width: 100%; max-height: min(62vh, 500px);
  object-fit: contain; object-position: center;
  align-self: center; border-radius: 10px; box-shadow: none;
}
.cm-stack:has(.cred-panel:not([hidden])) img {
  max-height: min(56vh, 460px);
}
.cm-banner.is-square img {
  box-shadow: 0 18px 44px -18px rgba(0,0,0,.55);
}
.cm-banner.empty {
  background: linear-gradient(135deg, #2453B3, #3D7BE8); min-height: 280px;
  align-items: stretch;
}
.cm-banner.empty img { display: none; }
.cm-banner.empty .cm-stack { flex: 1; width: 100%; }
.cm-banner.empty .cred-panel { margin-top: auto; }
.cert-modal .modal-body {
  padding: 16px 22px 22px 10px; overflow-y: auto; overscroll-behavior: contain;
  max-height: 100%; min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
}
.cm-issuer-line { display: flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-ink); font-weight: 700; margin-bottom: 8px; font-family: var(--font-mono); }
.cm-issuer-line img { width: 18px; height: 18px; border-radius: 5px; }
.meta-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px; font-size: .8rem; color: var(--ink-soft); background: var(--line-soft); }
.meta-chip ion-icon { font-size: 14px; color: var(--accent); flex-shrink: 0; }
.meta-chip.meta-validity.is-suresiz { background: rgba(47,191,113,.10); color: #1F7A5C; border-color: rgba(47,191,113,.35); }
.meta-chip.meta-validity.is-suresiz ion-icon { color: #1F7A5C; }
.meta-chip.meta-validity.is-sureli { background: rgba(233,162,59,.12); color: #A8731B; border-color: rgba(233,162,59,.4); }
.meta-chip.meta-validity.is-sureli ion-icon { color: #A8731B; }
.cert-modal .modal-meta {
  margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  flex: none;
}
.cert-modal p#cmDesc {
  border-left: 3px solid var(--accent);
  padding-left: 14px; margin: 0;
  flex: 0 0 auto; width: 100%; height: fit-content;
  box-sizing: border-box;
}
.cert-modal .cred-panel {
  margin: 0; padding: 0; width: 100%; min-width: 0;
  flex: none; box-sizing: border-box;
}
.cert-modal .cred-panel[hidden] { display: none !important; }
.cert-modal.cred-in-body .cm-stack { justify-content: flex-start; }
.cert-modal.cred-in-body .modal-meta { margin-bottom: 0; }
.cert-modal.cred-in-body p#cmDesc {
  margin-top: auto; margin-bottom: auto;
}
.cert-modal.cred-in-body .modal-body .cred-panel {
  margin-top: 0; padding-top: 0; flex: none;
}
.cert-modal .cred-id {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 10px 11px 16px; min-width: 0;
  background: color-mix(in srgb, var(--ink) 4.5%, var(--card));
  border: 1.5px solid var(--line); border-radius: 12px;
}
.cert-modal .cred-id::before {
  content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px;
  background: var(--accent); border-radius: 0 2px 2px 0;
}
.cert-modal .cred-id-mark {
  width: 8px; height: 8px; flex: none;
  border: 1.5px solid var(--accent); transform: rotate(45deg);
}
.cert-modal .cred-id-body {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.cert-modal .cred-id-label {
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); line-height: 1.2;
}
.cert-modal .cred-id-body code,
.cert-modal #cmCode {
  display: block; min-width: 0; max-width: 100%;
  font-family: var(--font-mono); font-size: .92rem; font-weight: 600;
  letter-spacing: .08em; line-height: 1.3; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cert-modal #cmCode[hidden] { display: none !important; }
.cert-modal .cred-id-actions { display: flex; gap: 6px; flex: none; }
.verify-btn { display: inline-flex; align-items: center; gap: 5px; background: var(--accent); color: #fff; border-radius: 999px; padding: 7px 16px;
  font-size: .76rem; font-weight: 700; text-decoration: none; font-family: var(--font-mono); }
.verify-btn ion-icon { font-size: 14px; flex-shrink: 0; }
.verify-btn:hover { text-decoration: none; filter: brightness(1.08); }
.cert-modal .cred-id .copy-btn,
.cert-modal .cred-id .verify-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: 999px; flex: none;
}
.cert-modal .cred-id .copy-btn { background: var(--ink); color: var(--paper); border: none; cursor: pointer; }
.cert-modal .cred-id .copy-btn.ok { background: var(--ok, #1F7A5C); }
.cert-modal .cred-id .copy-btn[hidden] { display: none !important; }
.cert-modal .cred-id .copy-btn ion-icon,
.cert-modal .cred-id .verify-btn ion-icon { font-size: 16px; flex-shrink: 0; margin: 0; }
@media (max-width: 720px) {
  .cert-modal,
  .cert-modal.img-portrait,
  .cert-modal.img-wide,
  .cert-modal.img-landscape,
  .cert-modal.img-square {
    grid-template-columns: 1fr; grid-template-rows: auto;
    width: min(520px, 100%);
    max-width: 520px; height: auto !important; max-height: 100%;
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  }
  .cm-banner {
    grid-column: 1; grid-row: auto; order: 1;
    border-radius: 18px 18px 0 0; max-height: none; padding: 18px 18px 14px;
  }
  .cert-modal > .modal-body { grid-column: 1; grid-row: auto; order: 2;
    max-height: none; overflow: visible; padding: 18px 22px 26px; }
  .cm-stack,
  .cm-stack:has(.cred-panel:not([hidden])) { justify-content: flex-start; align-self: center; }
  .cert-modal .cm-title-row { padding-right: 40px; }
  .cm-banner img,
  .cm-banner.is-landscape img,
  .cm-banner.is-wide img,
  .cm-banner.is-portrait img,
  .cm-banner.is-square img,
  .cm-stack:has(.cred-panel:not([hidden])) img {
    width: auto; height: auto; max-width: 100%; max-height: min(30vh, 240px); border-radius: 10px;
  }
}

/* ---- Proje modalı: sertifika modalı ile aynı ölçü/düzen ---- */
.proj-modal {
  max-width: 920px; padding: 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(260px, 1.05fr) minmax(280px, 1fr);
  align-items: stretch;
}
.pm-media {
  background: var(--paper); padding: 22px; overflow: hidden;
  display: grid; place-items: center; border-radius: 18px 0 0 18px; min-height: 0;
}
.pm-media img {
  max-width: 100%; max-height: min(72vh, 560px); width: auto; height: auto;
  object-fit: contain; object-position: center; display: block;
  border-radius: 8px; box-shadow: 0 18px 44px -16px rgba(0,0,0,.4);
}
.pm-media.empty {
  background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--accent) 35%, var(--ink)));
  min-height: 280px;
}
.pm-media.empty::before { content: "/>"; font-family: var(--font-mono); font-size: 3rem; color: color-mix(in srgb, var(--paper) 55%, transparent); }
.pm-media.empty img { display: none; }
.pm-body {
  padding: 28px 28px 26px; overflow-y: auto; max-height: 88vh;
  display: flex; flex-direction: column; min-width: 0;
}
.pm-body .modal-meta { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pm-body .modal-meta[hidden] { display: none !important; }
.pm-title-row {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 0 10px;
  margin-bottom: 10px; min-width: 0;
}
.pm-title-row h2 {
  margin: 0; flex: 1 1 auto; min-width: 0;
  font-size: 1.22rem; line-height: 1.25; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pm-title-sep {
  color: var(--muted); font-weight: 400; font-size: .95rem;
  line-height: 1; flex: none; opacity: .45; user-select: none;
  transform: translateY(-0.5px);
}
.pm-kat { margin: 0; flex: none; max-width: 40%; min-width: 0; }
.pm-kat .card-cat {
  font-size: .72rem; padding: 6px 10px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-align: center; line-height: 1.15; max-width: 100%; border-radius: 10px;
}
.pm-kat .card-cat ion-icon { width: 16px; height: 16px; font-size: 16px; flex-shrink: 0; color: currentColor; margin: 0; }
.pm-body p#pmDesc {
  color: var(--ink-soft); border-left: 3px solid var(--line);
  padding-left: 14px; margin: 0 0 18px;
  flex: 0 0 auto; width: 100%; box-sizing: border-box;
  height: fit-content;
}
.pm-tools {
  --pm-tech-surface: color-mix(in srgb, var(--ink) 5.5%, var(--card));
  margin-top: auto; width: 100%; min-width: 0;
  display: flex; flex-direction: column; gap: 0;
}
.pm-tools[hidden] { display: none !important; }
.pm-tech-tabstrip {
  display: flex; align-items: flex-end; min-height: 0;
  padding: 0; margin: 0; background: transparent; border: 0;
}
.pm-tech-tab {
  display: inline-flex; align-items: center; position: relative; z-index: 1;
  margin: 0; padding: 6px 14px 7px; border: 0; line-height: 1.2;
  font-size: .64rem; letter-spacing: .06em; text-transform: uppercase;
  font-family: var(--font-mono); font-weight: 700; color: var(--ink);
  background: var(--pm-tech-surface);
  border-radius: 10px 10px 0 0;
}
.pm-tech-body {
  background: var(--pm-tech-surface);
  border-radius: 0 16px 16px 16px;
  padding: 12px 14px;
}
.pm-tech-body .tags { margin: 0; }
.pm-tech-body button.tag {
  margin: 0; cursor: pointer; appearance: none; -webkit-appearance: none;
  font: inherit; line-height: inherit; color: inherit; background: var(--paper);
  border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .72rem;
}
.pm-tech-body button.tag.tag-chip.is-filter:hover {
  filter: brightness(0.93); color: inherit; border-color: inherit; text-decoration: none;
}
.pm-tech-body button.tag.is-filter:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.pm-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pm-body .pm-link { background: var(--line-soft); color: var(--accent-ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-size: .8rem; font-weight: 600; text-decoration: none; }
.pm-body .pm-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }
.pm-body .pm-link.muted { opacity: .6; pointer-events: none; color: var(--muted); background: transparent; }
.proj-open { cursor: pointer; }
@media (max-width: 720px) {
  .proj-modal { grid-template-columns: 1fr; max-width: 520px; overflow-y: auto; }
  .pm-media { border-radius: 18px 18px 0 0; max-height: 42vh; }
  .pm-media img { max-height: 36vh; }
  .pm-body { max-height: none; overflow: visible; }
}

/* ---- Blog eylemleri ---- */
.post-meta-hero { display: flex; gap: 16px; flex-wrap: wrap; }
.post-meta-hero span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta-hero ion-icon { font-size: 15px; color: var(--accent); flex-shrink: 0; vertical-align: -2px; }
.post-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 30px 0 18px; }
.pa-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); border-radius: 999px; padding: 10px 20px; font-size: .88rem;
  font-weight: 600; cursor: pointer; transition: all .18s; text-decoration: none; }
.pa-btn:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); text-decoration: none; }
.pa-like .heart { transition: transform .25s; }
.pa-like.liked { background: rgba(228,87,46,.1); border-color: var(--accent); color: var(--accent-ink); }
.pa-like.liked:disabled { cursor: default; opacity: 1; transform: none; }
.pa-like.liked:disabled:hover { border-color: var(--accent); color: var(--accent-ink); transform: none; }
.pa-like.liked .heart { color: #E4572E; }
.pa-like.pop .heart { animation: heartPop .5s cubic-bezier(.2,2,.4,1); }
@keyframes heartPop { 40% { transform: scale(1.6); } }
.pa-share { position: relative; }
.share-menu { position: absolute; bottom: calc(100% + 8px); left: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px;
  display: flex; flex-direction: column; min-width: 210px; z-index: 30; }
.share-menu[hidden] { display: none !important; }
.share-menu a, .share-menu button { text-align: left; padding: 9px 12px; border-radius: 8px; border: none;
  background: none; font-size: .86rem; color: var(--ink); cursor: pointer; text-decoration: none; font-family: inherit; }
.share-menu a:hover, .share-menu button:hover { background: var(--line-soft); text-decoration: none; }
.post-tags-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.ptf-label { font-size: .8rem; color: var(--muted); font-family: var(--font-mono); }

/* ---- Footer: simetrik 3 kolon ---- */
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  max-width: var(--page-max); margin: 0 auto; padding: 26px clamp(16px, 4vw, 48px); }
.f-left { display: flex; align-items: center; gap: 12px; }
.f-left small { color: var(--muted); }
.f-mid { display: flex; gap: 16px; justify-content: center; }
.f-right { text-align: right; color: var(--muted); font-size: .84rem; }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .f-left { justify-content: center; }
  .f-right { text-align: center; }
}

/* ---- Temaya uyumlu kaydırma çubuğu ---- */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---- Yazdırma / PDF: temiz makale düzeni ---- */
@media print {
  .site-header, .site-footer, .theme-menu, .cerez-bar, .no-print, .back-link, .grid-bg { display: none !important; }
  body { background: #fff; color: #000; display: block; }
  main.view { animation: none; }
  .post-detail { max-width: 100%; }
  .post-content pre, .code-box { break-inside: avoid; border: 1px solid #ccc; }
  .post-cover img { max-height: 300px; object-fit: cover; }
  a { color: #000; text-decoration: underline; }
  .redirect-wrap { display: none !important; }
  .dl-print-hold { position: static !important; width: auto !important; height: auto !important;
    overflow: visible !important; clip: auto !important; clip-path: none !important; white-space: normal !important; }
  .dl-print-src { position: static !important; opacity: 1 !important; width: auto !important;
    max-width: 820px; margin: 0 auto; pointer-events: auto !important; z-index: auto !important; }
  .dl-print-src details { display: block; }
  .dl-print-src details > * { display: block !important; }
  .dl-print-src .callout.dl-callout-fix::before { display: none !important; }
  .dl-print-src .dl-callout-ico { position: absolute; left: 14px; top: 15px; width: 19px; height: 19px; }
  .dl-print-src .prompt-block, .dl-print-src .prompt-block pre { background: #EFEAF8 !important; }
}

/* ---- Özgeçmiş: zaman çizelgesi logosu (hover'da büyür) ---- */
.timeline-item.has-logo::before { display: none; }
.tl-logo { position: absolute; left: -33px; top: 0; width: 26px; height: 26px; border-radius: 7px;
  border: 2px solid var(--accent); background: var(--paper); display: grid; place-items: center;
  overflow: hidden; z-index: 2; transition: transform .22s cubic-bezier(.22,.8,.3,1.3), box-shadow .22s;
  cursor: zoom-in; }
.tl-logo img { width: 100%; height: 100%; object-fit: cover; }
.tl-logo:hover { transform: scale(2.4); box-shadow: 0 10px 26px -8px rgba(0,0,0,.35); border-radius: 6px; }
.timeline-item.has-logo { padding-left: 2px; }
@media (max-width: 640px) { .tl-logo:hover { transform: scale(1.9); } }

/* ============================================================
   CİLA TURU: searchbar, sertifika düzeni, belge modalı,
   merkez footer, taşma korumaları
   ============================================================ */

/* ---- Searchbar: hizalı, tek tip, profesyonel ---- */
.blog-toolbar {
  display: flex; justify-content: flex-start; margin: 6px 0 26px;
  width: 100%; max-width: 620px;
}
.search-combo {
  display: flex; flex-wrap: wrap; align-items: stretch;
  width: 100%; max-width: 100%; height: 52px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); overflow: hidden; box-shadow: none;
  transition: border-color .18s, box-shadow .18s; position: relative;
}
form.search-combo { margin: 0; padding: 0; border: 1px solid var(--line); }
.search-combo:focus-within { border-color: var(--accent); box-shadow: none; }
/* Açıkken tek kart olarak aşağı uzar; menü barın parçası */
.search-combo.is-open,
.search-combo:has(.nice-select.is-open) {
  height: auto; overflow: hidden; z-index: 40;
}

/* Özel kategori select */
.search-combo .nice-select {
  position: relative; box-sizing: border-box;
  flex: 0 0 var(--ns-w, 7.25rem); width: var(--ns-w, 7.25rem); max-width: 40%;
  height: 52px; min-width: 0;
}
.search-combo .nice-select [data-cat-select] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; pointer-events: none;
}
.search-combo .nice-select-btn {
  width: 100%; height: 100%; box-sizing: border-box; border: 0; border-right: 1px solid var(--line);
  border-radius: 13px 0 0 13px; margin: 0; padding: 0 10px; text-align: center;
  background-color: var(--line-soft); color: var(--ink);
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  overflow: hidden; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.search-combo .nice-select-btn .ns-icon {
  width: 15px; height: 15px; font-size: 15px; flex: none; pointer-events: none;
}
.search-combo .nice-select-btn .ns-btn-txt {
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.search-combo .nice-select-btn:hover {
  background-color: color-mix(in srgb, var(--line-soft) 65%, var(--accent) 18%);
  color: var(--accent-ink);
}
.search-combo .nice-select.is-open .nice-select-btn {
  border-radius: 13px 0 0 0;
}
.search-combo .nice-select-btn:focus,
.search-combo .nice-select-btn:focus-visible { outline: none; }

/* Menü: search-combo çocuğu → tam satır, aynı kartın içinde */
.search-combo > .nice-select-menu {
  position: static; order: 10;
  flex: 1 1 100%; width: 100%; max-width: none; min-width: 0; box-sizing: border-box;
  margin: 0; padding: 6px; list-style: none;
  background: var(--card); color: var(--ink);
  border: 0; border-top: 1px solid var(--line); border-radius: 0;
  box-shadow: none; z-index: auto;
  max-height: min(240px, 45vh); overflow-x: hidden; overflow-y: auto;
}
.nice-select-menu[hidden] { display: none !important; }
.nice-select-menu li {
  display: flex; align-items: center; justify-content: flex-start; gap: 8px;
  padding: 11px 14px; border-radius: 8px; cursor: pointer;
  font-family: var(--font-mono); font-size: .84rem; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-soft); transition: background .12s, color .12s;
  white-space: nowrap;
}
.nice-select-menu li .ns-icon {
  width: 16px; height: 16px; font-size: 16px; flex: none; pointer-events: none; color: currentColor;
}
.nice-select-menu .ns-label {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nice-select-menu .ns-count {
  flex: none; white-space: nowrap; margin-left: auto; opacity: .75;
}
.nice-select-menu li:hover { background: var(--line-soft); color: var(--ink); }
.nice-select-menu li.is-selected {
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
  color: var(--accent-ink);
}
.nice-select-menu li.is-selected .ns-count { opacity: 1; }

.search-combo .search-input {
  height: 52px; border: 0; border-radius: 0 13px 13px 0; background: transparent;
  box-shadow: none; padding: 0 16px; font-size: .95rem;
  flex: 1 1 auto; min-width: 0; order: 0;
}
.search-combo .search-input:focus { outline: none; box-shadow: none; }

/* Tablet */
@media (max-width: 900px) {
  .blog-toolbar { max-width: none; }
  .search-combo { max-width: none; }
  .search-combo .nice-select {
    flex: 0 0 clamp(6.5rem, 22vw, 9rem);
    width: clamp(6.5rem, 22vw, 9rem);
    max-width: 38%;
  }
  .nice-select-menu li { font-size: .82rem; padding: 12px 14px; }
}

/* Mobil: kategori → arama → (açıkken) liste; tek kart */
@media (max-width: 640px) {
  .blog-toolbar { max-width: none; margin: 4px 0 20px; }
  .search-combo {
    flex-direction: column; flex-wrap: nowrap; height: auto; max-width: none;
  }
  .search-combo .nice-select {
    width: 100%; max-width: none; height: 48px; flex: none;
  }
  .search-combo .nice-select-btn {
    height: 48px; border-right: 0; border-bottom: 1px solid var(--line);
    border-radius: 13px 13px 0 0; padding: 0 14px;
    justify-content: flex-start; text-align: left;
  }
  .search-combo .nice-select.is-open .nice-select-btn {
    border-radius: 13px 13px 0 0;
  }
  .search-combo .search-input {
    width: 100%; height: 48px; min-width: 0; flex: none;
    border-radius: 0 0 13px 13px;
    padding: 0 14px; font-size: 1rem; line-height: 48px;
  }
  .search-combo.is-open .search-input,
  .search-combo:has(.nice-select.is-open) .search-input {
    border-radius: 0; border-bottom: 1px solid var(--line);
  }
  .search-combo > .nice-select-menu {
    flex: none; width: 100%; max-height: min(220px, 40vh);
    padding: 6px 6px 8px;
  }
  .nice-select-menu li {
    padding: 12px 14px; font-size: .88rem; gap: 14px;
  }
}
/* ---- Sertifika kartları: belge oranlı, eşit ve hizalı ---- */
.cert-media { aspect-ratio: 1414 / 1000; background: #EDEBE4; padding: 8px; overflow: hidden; }
.cert-media img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px;
  box-shadow: 0 6px 18px -8px rgba(20,33,61,.35); transition: transform .4s ease; }
.cert-grid .cert:hover .cert-media img { transform: scale(1.05); }

/* ---- Footer: her şey merkezde ---- */
.footer-center { text-align: center; padding: 30px 20px 34px; display: flex; flex-direction: column;
  gap: 8px; align-items: center; }
.fc-brand { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.fc-line { color: var(--muted); font-size: .86rem; }

/* ---- Taşma korumaları: gereksiz yatay scroll asla ---- */
html, body { overflow-x: clip; }
.post-content img, .post-content video, .post-content iframe { max-width: 100%; height: auto; }
.post-content pre { max-width: 100%; overflow-x: auto; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 20px 0; }
.table-wrap > table { margin: 0; }

/* ---- Blog paylaş menüsü: SVG ikon düzeni ---- */
.share-menu a, .share-menu button { display: flex; align-items: center; gap: 10px; }
.share-menu svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ---- Yukarı çık: kaydırma halkası ---- */
.to-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 50px; height: 50px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--card); color: var(--ink);
  cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s, transform .3s; z-index: 80;
}
.to-top.gorunur { opacity: 1; pointer-events: auto; transform: none; }
.to-top-ring { position: absolute; inset: 5px; width: auto; height: auto; transform: rotate(-90deg); pointer-events: none; }
.to-top-iz { fill: none; stroke: var(--line); stroke-width: 3.4; }
.to-top-dolgu { fill: none; stroke: var(--accent); stroke-width: 3.4; stroke-linecap: round;
  transition: stroke-dashoffset .1s linear; }
.to-top-ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.to-top-ico svg { width: 18px; height: 18px; display: block; }
@media print { .to-top { display: none !important; } }

/* ---- Müşteriler & İş Birlikleri ---- */
.clients-section { margin-top: 54px; }
.client-block { margin-bottom: 36px; }
.client-title { font-size: 1.05rem; color: var(--muted); font-weight: 600; letter-spacing: .04em;
  margin-bottom: 18px; text-align: center; }
.client-wall { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
a.client-logo { text-decoration: none; color: inherit; cursor: pointer; }
.client-logo { border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  padding: 14px 22px; display: grid; place-items: center; transition: all .2s; }
.client-logo img { height: clamp(40px, 2.4vw, 56px); width: auto; max-width: min(220px, 28vw); object-fit: contain;
  filter: grayscale(1) opacity(.65); transition: filter .25s; }
.client-logo:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.client-logo:hover img { filter: none; }

/* ---- Footer: marka + sosyal + alt telif satırı ---- */
.footer-center { display: none; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.footer-socials .fs-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--line-soft); color: var(--ink-soft); display: grid; place-items: center;
  text-decoration: none; transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.footer-socials .fs-btn ion-icon { font-size: 18px; }
.footer-socials a.fs-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--card);
  transform: translateY(-1px); }
.footer-contact { justify-self: end; display: flex; flex-direction: column; gap: 7px; align-items: flex-end; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-soft); font-size: .84rem; text-decoration: none; }
.footer-contact a:hover { color: var(--accent-ink); }
.footer-contact ion-icon { font-size: 16px; color: var(--accent); flex-shrink: 0; }
@media (max-width: 720px) {
  .footer-main .f-left { justify-self: center; }
  .f-brand-row { justify-content: center; }
  .footer-main .f-nav { align-items: center; }
  .footer-main .f-right, .footer-contact { justify-self: center; align-items: center; }
  .footer-socials { justify-content: center; }
}

/* ============================================================
   MENÜ: ikon + etiket; mobil/tablette uygulama tarzı alt çubuk
   ============================================================ */
.site-nav a { display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  line-height: 1.1; padding: 8px 13px; border-radius: 12px; }
.site-nav a ion-icon,
.site-nav a .nav-ico {
  font-size: 19px;
  width: 1.15em; height: 1.15em;
  display: inline-block; flex-shrink: 0;
  contain: strict;
}
.site-nav a .nav-ico { fill: none; }
.contact-btn .nav-ico { width: 1.15em; height: 1.15em; display: block; }
.site-nav a span { font-size: .78rem; }
.site-nav a.nav-cta { flex-direction: row; gap: 7px; }
.site-nav a.nav-cta ion-icon { font-size: 16px; }

@media (max-width: 900px) {
  /* Hamburger yerine kalıcı alt uygulama çubuğu */
  .nav-toggle { display: none !important; }
  .site-nav { display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; top: auto !important;
    max-height: none !important; overflow: visible !important;
    z-index: 95; background: color-mix(in srgb, var(--card) 92%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around; gap: 0; box-shadow: 0 -8px 24px -14px rgba(0,0,0,.25);
    flex-direction: row; transform: none !important; height: auto; }
  .site-nav a { flex: 1; max-width: 92px; padding: 7px 2px; border: none; border-radius: 0;
    color: var(--muted); background: none; box-shadow: none; }
  .site-nav a::after { display: none; }
  .site-nav a:focus, .site-nav a:focus-visible { outline: none; }
  .site-nav a ion-icon,
  .site-nav a .nav-ico { font-size: 22px; width: 1.25em; height: 1.25em; }
  .site-nav a span { font-size: .62rem; font-weight: 600; letter-spacing: .01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .site-nav a.active { color: var(--accent-ink); background: none; border: none; box-shadow: none; }
  .site-nav a.active ion-icon,
  .site-nav a.active .nav-ico { transform: translateY(-1px); }
  .site-nav a.nav-cta { flex-direction: column; gap: 3px; background: none; border: none; color: var(--muted); }
  .site-nav a.nav-cta.active { color: var(--accent-ink); background: none; border: none; }
  /* Alt boşluk footer'ın İÇİNE alınır: footer zemini sabit menünün arkasına kadar uzanır,
     böylece footer ile menü arasında farklı renkte bir şerit görünmez */
  body { padding-bottom: 0; }
  .site-footer { margin-bottom: 0; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .to-top { bottom: 88px; }
  .cerez-bar { bottom: 84px; }
}
@media print { .site-nav { display: none !important; } body { padding-bottom: 0; } }

/* ============================================================
   REFERANSLAR + LOGO BANDI
   ============================================================ */
.sec-title { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin-bottom: 22px; }
.sec-bar { width: 5px; height: 26px; border-radius: 4px; background: var(--accent); display: inline-block; }
.ref-section { margin-top: 56px; }
.ref-slider { overflow: hidden; padding: 16px 4px 10px; margin: -8px -4px 0; }
.ref-track { display: flex; transition: transform .45s cubic-bezier(.22,.8,.3,1); --pv: 3; }
.ref-card { flex: 0 0 calc(100% / var(--pv)); padding: 0 9px; box-sizing: border-box; background: none;
  border: none; text-align: center; cursor: pointer; font: inherit; color: inherit; }
.ref-card > * { pointer-events: none; }
.ref-card h3 { font-size: 1.05rem; margin: 12px 0 4px; }
.ref-avatar { width: var(--avatar-ref); height: var(--avatar-ref); border-radius: 18px; object-fit: cover; border: 1px solid var(--line);
  background: var(--card); display: inline-grid; place-items: center; font-weight: 800; font-size: 1.6rem;
  transition: transform .2s; }
.ref-card:hover .ref-avatar { transform: scale(1.04); }
.ref-role { color: var(--muted); font-size: .8rem; font-family: var(--font-mono); }
.ref-quote { color: var(--ink-soft); font-size: .92rem; line-height: 1.65; margin: 12px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ref-more { font-size: .78rem; color: var(--accent-ink); font-family: var(--font-mono); }
.ref-card { border: 1px solid var(--line); border-radius: 18px; background: var(--card); margin: 0 9px;
  flex-basis: calc(100% / var(--pv) - 18px); padding: 26px 20px 22px; overflow: visible;
  transition: border-color .2s, box-shadow .2s; }
.ref-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.ref-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 22px; }
.ref-arrow { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 18px; transition: all .18s; }
.ref-arrow:hover { border-color: var(--accent); color: var(--accent-ink); }
.ref-dots { display: flex; gap: 8px; }
.ref-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line); cursor: pointer;
  transition: all .2s; padding: 0; }
.ref-dot.active { background: var(--accent); transform: scale(1.3); }

.ref-modal { max-width: 560px; }
.rm-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.rm-head img { width: 68px; height: 68px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); }
.rm-head h2 { font-size: 1.25rem; margin-bottom: 2px; }
.rm-full { color: var(--ink-soft); line-height: 1.75; border-left: 3px solid var(--accent); padding-left: 16px;
  margin-bottom: 20px; font-style: italic; }
.rm-contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-contact { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none;
  background: var(--line-soft); transition: border-color .18s, color .18s, transform .18s, background .18s; }
.rm-contact:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--card);
  text-decoration: none; transform: translateY(-2px); }
.rm-contact ion-icon { font-size: 20px; color: var(--accent); }
.rm-yok { color: var(--muted); font-size: .84rem; }

/* Sonsuz kayan logo bandı */
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding: 6px 0; }
.logo-track { display: flex; gap: 16px; width: max-content; animation: kayanLogo var(--marquee-s, 48s) linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes kayanLogo { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}
.client-wall { display: none; }

/* ---- Hakkımda: fotoğraf altı iletişim bloğu ---- */
.about-side { display: flex; flex-direction: column; gap: 16px; }
.about-contact { display: flex; flex-direction: column; gap: 8px; }
.about-contact a, .about-contact .ac-item { display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--card);
  color: var(--ink-soft); font-size: .84rem; text-decoration: none; transition: all .18s; }
.about-contact a:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateX(3px); text-decoration: none; }
.about-contact ion-icon { font-size: 17px; color: var(--accent); flex-shrink: 0; }
.about-contact span span { overflow: hidden; text-overflow: ellipsis; }

/* Mobil: İletişim alt barda değil, tema düğmesinin yanında */
.contact-btn { display: none; }
@media (max-width: 900px) {
  .site-nav a.nav-cta { display: none; }
  .contact-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 18px; }
  .contact-btn.active { color: var(--accent); border-color: var(--accent); }
}
.ci-links { margin-bottom: 26px; }

/* ---- Mobil: kaydırma çubuklarını gizle (uygulama hissi) ----
   Kaydırma çalışmaya devam eder, yalnızca çubuk çizilmez */
@media (hover: none) and (pointer: coarse), (max-width: 900px) {
  * { scrollbar-width: none; -ms-overflow-style: none; }
  *::-webkit-scrollbar { width: 0; height: 0; display: none; }
}

/* hidden özniteliği, display tanımlı bileşenlerde de çalışsın */
.verify-btn[hidden] { display: none !important; }

/* ============================================================
   BLOG: yazar kutusu, önceki/sonraki gezinme, yorumlar
   ============================================================ */
.author-box { display: flex; gap: 16px; align-items: center; margin-top: 34px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.author-photo { width: 62px; height: 62px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--line); flex-shrink: 0; }
.author-bas { display: grid; place-items: center; background: var(--line-soft);
  color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.author-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.author-label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); }
.author-name { font-family: var(--font-display); font-size: 1.02rem; }
.author-role { color: var(--muted); font-size: .84rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; align-items: stretch; }
.pn-card { display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  text-decoration: none; min-width: 0; min-height: 96px; box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s, transform .18s; }
.pn-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.pn-next { flex-direction: row-reverse; text-align: left; align-items: center; }
.pn-ok { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  display: grid; place-items: center; transition: background .18s, border-color .18s, color .18s; }
.pn-ok svg { width: 15px; height: 15px; display: block; }
.pn-next .pn-ok { align-self: center; margin-left: auto; }
.pn-card:hover .pn-ok { background: var(--accent); border-color: var(--accent); color: #fff; }
.pn-metin { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; flex: 1; align-self: stretch; }
.pn-next .pn-metin { align-items: flex-start; }
.pn-dir { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pn-title { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  line-height: 1.38; width: 100%; text-align: left;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pn-card:hover .pn-dir, .pn-card:hover .pn-title { color: var(--accent-ink); }
.pn-bos { display: block; border: 1px dashed var(--line); border-radius: 12px; min-height: 96px; background: transparent; }
@media (max-width: 560px) {
  .post-nav { grid-template-columns: 1fr; }
  .pn-next { flex-direction: row-reverse; text-align: left; }
  .pn-next .pn-metin { align-items: flex-start; }
  .pn-bos { display: none; }
}

.comments { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 30px; }
.comments-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-size: 1.35rem; margin-bottom: 20px; }
.comments-title ion-icon { color: var(--accent); font-size: 22px; }
.c-count { color: var(--muted); font-size: .95rem; font-weight: 500; }
.comment-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.c-empty { color: var(--muted); font-size: .92rem; background: var(--line-soft);
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 18px; }
.comment-form h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }
.c-form-hint { color: var(--muted); font-size: .82rem; margin-bottom: 14px; }
.comment-form .form-grid-2c { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .comment-form .form-grid-2c { grid-template-columns: 1fr; } }
.comment-form label .opt { color: var(--muted); font-weight: 400; font-size: .78rem; }
.comment-form .form-row { position: relative; }
.c-sayac { position: absolute; right: 2px; bottom: -16px; font-family: var(--font-mono);
  font-size: .66rem; color: var(--muted); }
.comment-form textarea { resize: vertical; }

/* ---- Okuma ilerleme çubuğu ---- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: transparent; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .08s linear; }

/* ---- Yorum eylemleri: beğeni + yanıtla ---- */
.c-reply-bar { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; color: var(--ink-soft);
  background: color-mix(in srgb, var(--accent) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.c-reply-bar[hidden] { display: none !important; }
.c-reply-bar ion-icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.c-reply-quote { flex: 1; min-width: 0; }
.c-reply-who { font-size: .8rem; }
.c-reply-msg { margin: 4px 0 0; font-size: .86rem; color: var(--ink); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.c-reply-bar button { margin-left: auto; flex-shrink: 0; background: none; border: none; color: var(--muted);
  font-size: .76rem; padding: 2px 6px; border-radius: 6px; }
.c-reply-bar button:hover { color: var(--accent-ink); }

/* ============ Yorumlar: YouTube tarzı iş parçacığı ============ */
.yt-comment { display: flex; gap: 13px; align-items: flex-start; }
.yt-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 1.05rem; font-family: var(--font-display); user-select: none; }
.yt-avatar-admin { background: var(--ink); outline: 2px solid var(--accent); outline-offset: 2px; }
.yt-avatar-img { padding: 0; overflow: hidden; background: var(--ink); }
.yt-avatar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-main { flex: 1; min-width: 0; }
.yt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.yt-name { font-size: .88rem; font-weight: 700; }
.yt-badge { background: var(--accent); color: #fff; font-size: .62rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; letter-spacing: .04em; }
.yt-date { color: var(--muted); font-size: .76rem; }
.yt-text { margin: 3px 0 6px; font-size: .92rem; line-height: 1.6; overflow-wrap: anywhere; }
.yt-mention { color: var(--accent-ink); font-weight: 700; }
.yt-to, .yt-got { font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  padding: 2px 8px; border-radius: 999px; line-height: 1.4; }
.yt-to { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.yt-got { color: #1F7A5C; background: color-mix(in srgb, #1F7A5C 14%, transparent); }

/* Aksiyon satırı: 👍 sayı · 👎 · kalp · Yanıtla */
.yt-acts { display: flex; align-items: center; gap: 4px; }
.yt-vote { display: inline-flex; align-items: center; gap: 6px; border: none; background: none;
  color: var(--ink-soft); font: inherit; font-size: .8rem; cursor: pointer;
  padding: 6px 10px; border-radius: 999px; transition: background .15s; }
.yt-vote ion-icon { font-size: 1.05rem; }
.yt-vote:hover { background: var(--line-soft); }
.yt-vote.active { color: var(--accent-ink); font-weight: 700; }
.yt-n:empty::before { content: ""; }
.yt-reply { border: none; background: none; color: var(--ink-soft); font: inherit;
  font-size: .78rem; font-weight: 700; cursor: pointer; padding: 6px 12px; border-radius: 999px; }
.yt-reply:hover { background: var(--line-soft); color: var(--accent-ink); }

/* Yazar kalbi: küçük yazar avatarı + üstünde kırmızı kalp (YouTube creator heart) */
.yt-heart { position: relative; display: inline-flex; width: 26px; height: 22px;
  margin: 0 4px; cursor: default; }
.yt-heart img, .yt-heart .yt-heart-av { width: 18px; height: 18px; border-radius: 50%;
  object-fit: cover; background: var(--ink); color: #fff; font-size: .6rem; font-weight: 700;
  display: grid; place-items: center; }
.yt-heart ion-icon { position: absolute; right: 0; bottom: 0; font-size: .8rem;
  color: #f00; filter: drop-shadow(0 0 1px var(--card)); }

/* "N yanıt" — YouTube expander: ana yorum metninin altında */
.yt-toggle { display: inline-flex; align-items: center; gap: 7px; margin: 8px 0 2px 53px;
  border: none; background: none; color: var(--accent-ink); font: inherit; font-size: .8rem;
  font-weight: 700; cursor: pointer; padding: 4px 8px; border-radius: 999px; }
.yt-toggle:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.yt-toggle ion-icon { transition: transform .2s; }
.yt-toggle.open ion-icon { transform: rotate(180deg); }

/* YouTube ağacı: gövde (avatar merkezi) + yanıta kadar kesintisiz dirsek */
.yt-thread {
  --yt-rail-x: 20px;
  --yt-rail-w: 2px;
  --yt-reply-x: 52px;
  --yt-elbow-h: 12px;
  --yt-line: var(--line);
  position: relative; padding: 8px 0; overflow: visible;
}
.yt-thread.has-replies > .yt-comment > .yt-main {
  background: color-mix(in srgb, var(--ink) 4%, var(--card));
  border: 1px solid color-mix(in srgb, var(--ink) 8%, var(--line));
  border-radius: 12px; padding: 6px 12px 8px;
}
.yt-thread > .yt-comment > .yt-avatar { position: relative; z-index: 3; }
.yt-hitbox {
  display: none; position: absolute; left: 0; top: calc(8px + 40px + 8px); bottom: -2px;
  width: var(--yt-reply-x); padding: 0; border: 0; background: none;
  cursor: pointer; z-index: 2;
}
.yt-thread.is-open > .yt-hitbox { display: block; }
.yt-hitbox::before {
  content: ""; position: absolute; left: calc(var(--yt-rail-x) - 1px); top: 0; bottom: 14px;
  width: var(--yt-rail-w); border-radius: 99px;
  background: linear-gradient(to bottom, var(--line), color-mix(in srgb, var(--accent) 55%, var(--line)));
}
.yt-hitbox::after {
  content: ""; position: absolute; left: calc(var(--yt-rail-x) - 6px); bottom: 0;
  width: 12px; height: 12px; box-sizing: border-box;
  border: 2.5px solid var(--accent); background: var(--paper);
  transform: rotate(45deg); pointer-events: none;
}
.yt-hitbox:hover::before, .yt-hitbox:focus-visible::before {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 28%, var(--line)), var(--accent));
}
.yt-hitbox:hover::after, .yt-hitbox:focus-visible::after { background: var(--accent); }

.yt-replies {
  position: relative;
  margin: 8px 0 0 var(--yt-reply-x);
  display: flex; flex-direction: column; gap: 16px;
}
.yt-replies[hidden] { display: none !important; }
.yt-replies .yt-comment { position: relative; }
/* Düz ok: raydaki dörtgenden yanıt avatarına */
.yt-replies .yt-comment::after {
  content: ""; position: absolute; z-index: 3; pointer-events: none;
  left: calc(var(--yt-rail-x) - var(--yt-reply-x) - 4px);
  top: 8px; width: 8px; height: 8px; box-sizing: border-box;
  border: 2px solid var(--accent); background: var(--paper);
  transform: rotate(45deg);
}
.yt-replies .yt-comment::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  left: calc(var(--yt-rail-x) - var(--yt-reply-x) + 3px);
  top: 12px;
  width: calc(var(--yt-reply-x) - var(--yt-rail-x) - 10px);
  height: 1px;
  background: var(--yt-line);
  border: none; border-radius: 0;
}
.yt-replies .yt-comment.is-nested::before {
  background: color-mix(in srgb, var(--accent) 70%, var(--yt-line));
}
.yt-replies .yt-comment.is-nested::after {
  border-color: color-mix(in srgb, var(--accent) 85%, var(--yt-line));
}
.yt-replies .yt-comment.is-target::before {
  background: color-mix(in srgb, #1F7A5C 70%, var(--yt-line));
}
.yt-replies .yt-comment.is-target::after {
  border-color: color-mix(in srgb, #1F7A5C 80%, var(--yt-line));
}
.yt-replies .yt-comment.is-admin::after {
  border-color: var(--accent); background: var(--paper);
}
.yt-replies .yt-avatar { flex-basis: 24px; width: 24px; height: 24px; font-size: .72rem;
  position: relative; z-index: 4; }
.yt-replies .yt-toggle { display: none; }
.yt-comment.is-nested > .yt-main {
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 12px; padding: 6px 12px 8px;
}
.yt-comment.is-target > .yt-main {
  background: color-mix(in srgb, #1F7A5C 8%, var(--card));
  border: 1px solid color-mix(in srgb, #1F7A5C 26%, var(--line));
  border-radius: 12px; padding: 6px 12px 8px;
}
.yt-comment.is-nested.is-target > .yt-main {
  background: color-mix(in srgb, var(--accent) 6%, color-mix(in srgb, #1F7A5C 6%, var(--card)));
}

@media (max-width: 640px) {
  .yt-thread { --yt-rail-x: 18px; --yt-reply-x: 46px; }
  .yt-toggle { margin-left: 45px; }
}

/* ============ Footer: sade & profesyonel ============ */
.site-footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 70px; }
body:has(.redirect-wrap) .site-footer { margin-top: 0; }
.footer-in { max-width: var(--page-max); margin: 0 auto; padding: 26px 24px 20px; }
.f-top { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.f-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-brand, var(--font-display)); }
.f-brand .brand-mark { color: var(--accent); font-weight: 800; }
.f-brand .brand-logo { height: 26px; }
.f-brand b { font-size: .95rem; }
.f-social { display: flex; align-items: center; gap: 6px; }
.f-social .fs-btn { display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line); color: var(--ink-soft); font-size: 1rem; }
.f-social .fs-btn:hover { color: var(--accent-ink); border-color: var(--accent); }
.f-sep { height: 1px; background: var(--line-soft); margin: 18px 0 14px; }
.f-bot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  color: var(--muted); font-size: .78rem; }
.f-bot .site-version.footer-version {
  display: inline-flex; align-items: center; gap: 5px; justify-self: start; margin-left: 0;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-soft); line-height: 1;
  background: color-mix(in srgb, var(--accent) 9%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 999px; padding: 4px 9px 4px 7px;
}
.f-bot .site-version.footer-version ion-icon { font-size: .82rem; color: var(--accent); }
.f-bot .footer-version:not(.site-version) { padding: 0; border: none; background: none; }
.f-bot > span:nth-child(2) { text-align: center; }
.f-bot > span:last-child { justify-self: end; }
@media (max-width: 900px) {
  .f-top { flex-direction: column; text-align: center; gap: 16px; }
  .f-bot { grid-template-columns: 1fr; justify-items: center; gap: 8px; text-align: center; }
  .f-bot .footer-version,
  .f-bot .site-version.footer-version { justify-self: center; }
  .f-bot > span:nth-child(2) { order: -1; text-align: center; }
  .f-bot > span:last-child { display: none; }
}

/* Görsel gösterim iyileştirmeleri: sabit oranlı kapaklar (yerleşim zıplaması önlenir) */
.post-card img, .blog-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.proj-card img, .project-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
img { height: auto; }
.meta-link { color: inherit; }
.meta-link:hover { color: var(--accent-ink); }

/* Yerleşik temalarda bildirim renkleri (özel temalar panelden ayrıca seçebilir) */
html[data-theme="gece"]    { --notif-ok: #5CE0A1; --notif-err: #FF8A72; }
html[data-theme="okyanus"] { --notif-ok: #6FE3B0; --notif-err: #FF9A85; }
html[data-theme="orman"]   { --notif-ok: #2E8B62; --notif-err: #C0492E; }
html[data-theme="bordo"]   { --notif-ok: #2F7D5C; --notif-err: #B33A2B; }

/* Taslak önizleme şeridi */
.draft-band { display: flex; align-items: center; gap: 9px; justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--card)); color: var(--accent-ink);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, var(--card));
  padding: 10px 16px; font-size: .85rem; }
.draft-band ion-icon { font-size: 1.05rem; }

/* İlgili yazılar */
.related { margin-top: 54px; }
.related-title { display: flex; align-items: center; gap: 9px; font-size: 1.15rem; margin-bottom: 18px; }
.related-title ion-icon { color: var(--accent); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none;
  transition: transform .16s, box-shadow .16s; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.related-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.related-noimg { aspect-ratio: 16 / 9; display: grid; place-items: center; width: 100%;
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.related-body { display: flex; flex-direction: column; gap: 6px; padding: 13px 15px 15px; }
.related-cat { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.related-body b { font-size: .92rem; line-height: 1.45; }
.related-body time { color: var(--muted); font-size: .76rem; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }
