/* ============================================================
   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: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
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: 32px 32px;
  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: 32px; height: 32px; 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: 1120px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) clamp(18px, 4vw, 48px); }
.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: 640px; font-size: 1.05rem; }
.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(88vh - 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);
}
.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: 250px; 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 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s cubic-bezier(.22,.8,.3,1), box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.card-media { aspect-ratio: 16/9; background: linear-gradient(135deg, #1B2A4F, #14213D); position: relative; overflow: hidden; }
.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: 2rem;
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-head h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0; flex: 1; min-width: 0; }
.card-head .card-cat { flex-shrink: 0; 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; border-radius: 10px; }
.card-head .card-cat ion-icon { font-size: 16px; flex-shrink: 0; color: currentColor; margin: 0; }
.card-body p { color: var(--muted); font-size: .93rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: var(--font-mono); font-size: .72rem; padding: 3px 10px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--paper);
}
.card-links { display: flex; gap: 14px; font-size: .9rem; font-weight: 600; }
.badge-featured {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--accent); color: #fff; font-family: var(--font-mono);
  font-size: .7rem; padding: 3px 10px; border-radius: 999px; letter-spacing: .06em;
}

/* 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; font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination button {
  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);
}
.pagination button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Yazı detay */
.post-detail { max-width: 760px; 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 { font-family: var(--font-mono); font-size: .85rem; }

/* ---------- 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.ok { display: block; background: #E6F4EE; color: var(--ok); border: 1px solid #BCE3D2; }
.form-note.err { display: block; background: #FBEAE4; color: var(--accent-ink); border: 1px solid #F3C6B6; }
.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: 1120px; 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 { 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: 760px; 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 .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); }

/* ---- Sunucu tarafı render: sayfa yükleniş animasyonu ---- */
main.view { animation: viewIn .5s cubic-bezier(.22,.8,.3,1) both; }
.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 a.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination a:hover { text-decoration: none; border-color: var(--ink); }
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: 20px;
  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; }

/* ---- Arşiv ara sayfası (yönlendirme / indirme) ---- */
.redirect-wrap { display: grid; place-items: center; min-height: 55vh; padding: 40px 16px; }
.redirect-card { text-align: center; max-width: 480px; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 44px 38px; box-shadow: var(--shadow); }
.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 .host { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.redirect-note { color: var(--muted); font-size: .84rem; margin: 14px 0 22px; }
.redirect-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#rdSay:not(:empty)::before { content: "("; } #rdSay:not(:empty)::after { content: ")"; }

/* ---- 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-block; 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); }
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); }
#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 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cert-grid .cert { display: flex; flex-direction: column; padding: 0; border-radius: 16px; 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; }
.cert-modal .cm-title-row {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 0 10px;
  margin-bottom: 10px; min-width: 0;
}
.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: 14px 16px 15px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; width: 100%; }
.cert-body .issuer { font-size: .78rem; 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: 1.02rem; line-height: 1.3; 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: 12px; width: 100%; min-width: 0; padding-top: 10px; 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: .76rem; color: var(--muted); font-family: var(--font-mono);
  display: inline-flex; align-items: center; gap: 5px; }
.cert-foot .date ion-icon { font-size: 14px; color: var(--accent); flex-shrink: 0; }
.cert-foot .cert-more { flex: 0 0 auto; margin: 0; font-size: .8rem; color: var(--accent-ink);
  font-family: var(--font-mono); white-space: nowrap; }

/* ---- Sertifika modalı: görsel sol, içerik sağ ---- */
.cert-modal {
  max-width: 920px; padding: 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(260px, 1.05fr) minmax(280px, 1fr);
  align-items: stretch;
}
.cm-banner {
  background: #EDEBE4; padding: 22px; overflow: hidden;
  display: grid; place-items: center; border-radius: 18px 0 0 18px; min-height: 0;
}
.cm-banner img {
  max-width: 100%; max-height: min(72vh, 560px); width: auto; height: auto;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 18px 44px -16px rgba(0,0,0,.4);
}
.cm-banner.empty {
  background: linear-gradient(135deg, #2453B3, #3D7BE8); min-height: 280px;
}
.cm-banner.empty img { display: none; }
.cert-modal .modal-body {
  padding: 28px 28px 26px; overflow-y: auto; max-height: 88vh;
  display: flex; flex-direction: column; min-width: 0;
}
.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; }
.cert-modal p#cmDesc {
  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;
}
.cert-modal .cred-panel {
  --cred-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; align-items: stretch;
  background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
}
.cert-modal .cred-panel[hidden] { display: none !important; }
.cert-modal .cred-tabstrip {
  display: flex; align-items: flex-end; min-height: 0;
  padding: 0; margin: 0; background: transparent; border: 0;
}
.cert-modal .cred-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(--cred-surface);
  /* Yalnızca sekmenin kapladığı alanın üst köşeleri */
  border-radius: 10px 10px 0 0;
  box-shadow: none;
}
.cert-modal .cred-toolbar {
  background: transparent; padding: 0; margin: 0; border: 0; box-shadow: none;
}
.cert-modal .cred-code {
  display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: center;
  gap: 8px; border: 0; margin: 0; min-width: 0; width: 100%; box-sizing: border-box;
  padding: 7px 8px 7px 14px;
  background: var(--cred-surface);
  /* Sekmenin altında birleşik: sol üst düz, diğer köşeler yuvarlak */
  border-radius: 0 16px 16px 16px;
}
.cert-modal .cc-left {
  display: flex; flex-direction: row; align-items: center; gap: 8px;
  flex: 1 1 auto; min-width: 0;
}
.cert-modal .cc-left code,
.cert-modal #cmCode {
  flex: 1 1 auto; min-width: 0; max-width: 100%;
  font-size: .82rem; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
.cc-left code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-btns { 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-code .copy-btn,
.cert-modal .verify-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border-radius: 999px; flex: none;
}
.cert-modal .cred-code .copy-btn ion-icon,
.cert-modal .verify-btn ion-icon { font-size: 16px; flex-shrink: 0; margin: 0; }
@media (max-width: 720px) {
  .cert-modal { grid-template-columns: 1fr; max-width: 520px; overflow-y: auto; }
  .cm-banner { border-radius: 18px 18px 0 0; max-height: 42vh; }
  .cm-banner img { max-height: 36vh; }
  .cert-modal .modal-body { max-height: none; overflow: visible; }
}

/* ---- 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 { 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.is-filter:hover {
  border-color: var(--accent); color: var(--accent-ink); 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; }
.pa-btn:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.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(--maxw, 1120px); 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; }
}

/* ---- Ö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 12px; 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;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.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: space-between; gap: 12px;
  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 .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-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; align-items: stretch; }
.cert-media { aspect-ratio: 1414 / 1000; background: #EDEBE4; padding: 12px; 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ş/indir menüleri: SVG ikon düzeni ---- */
.share-menu a, .share-menu button, .dl-menu a, .dl-menu button {
  display: flex; align-items: center; gap: 10px; }
.share-menu svg, .dl-menu svg { width: 17px; height: 17px; flex-shrink: 0; }
.dl-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: 230px; z-index: 30; }
.dl-menu[hidden] { display: none !important; }
.dl-menu button { text-align: left; padding: 9px 12px; border-radius: 8px; border: none;
  background: none; font-size: .86rem; color: var(--ink); cursor: pointer; font-family: inherit; }
.dl-menu button:hover { background: var(--line-soft); }
.dl-menu .dl-note { font-size: .68rem; color: var(--muted); padding: 4px 12px 6px; border-top: 1px dashed var(--line); margin-top: 4px; }
.pa-dl { position: relative; }

/* ---- Yukarı çık butonu ---- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.1rem;
  cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s, transform .25s, background .25s, color .25s, border-color .25s; z-index: 80; }
.to-top.gorunur { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
@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; }
.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: 44px; width: auto; max-width: 190px; 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: sol isim / orta telif / sağ iletişim ---- */
.footer-center { display: none; }
.footer-3col { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  max-width: 1120px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px); }
.footer-3col .f-left { display: flex; align-items: center; gap: 12px; justify-self: start; }
.footer-3col .f-left small { color: var(--muted); }
.footer-3col .f-center { display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.footer-3col .f-center .footer-year { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); }
.footer-3col .f-center .footer-copy { font-size: .76rem; }
.footer-3col .f-center .footer-version { margin: 1px 0 0; font-size: .68rem; padding: 0 7px; }
.footer-3col .f-right { justify-self: end; display: flex; justify-content: flex-end; align-items: center; }
.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-3col { grid-template-columns: 1fr; text-align: center; }
  .footer-3col .f-left, .footer-3col .f-center, .footer-3col .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 { font-size: 19px; }
.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 { font-size: 22px; }
  .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 { 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; }
.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: 74px; height: 74px; 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: translateY(-4px) scale(1.05); }
.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; transition: border-color .2s, transform .2s; }
.ref-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.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: 10px; }
.rm-contact { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-size: .84rem; color: var(--ink); text-decoration: none;
  background: var(--line-soft); transition: all .18s; }
.rm-contact:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; transform: translateY(-2px); }
.rm-contact ion-icon { font-size: 16px; 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 28s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes kayanLogo { to { transform: translateX(-50%); } }
.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; }
