/* Blog – Alparslan Ceylan Sürücü Kursu */
:root {
  --blue: #0079B3;
  --blue-700: #005F8C;
  --blue-50: #EEF6FB;
  --red: #E8161B;
  --ink: #10202F;
  --ink-2: #22374A;
  --muted: #5A6D7F;
  --line: #E3EAF0;
  --bg-soft: #F5F8FA;
  --ui: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --baslik: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --metin: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--ui); color: var(--ink-2); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--baslik); color: var(--ink); letter-spacing: -.005em; margin: 0; }

/* Üst menü */
.bh { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bh__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; height: 64px; margin: 0 auto; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 15px; font-weight: 800; color: var(--ink); }
.brand small { font-size: 12px; font-weight: 600; color: var(--red); }
.bh__nav { display: flex; align-items: center; gap: 6px; }
.bh__link { padding: 8px 12px; font-size: 15px; font-weight: 500; text-decoration: none; border-radius: 8px; }
.bh__link:hover { color: var(--blue); }
.bh__sinav { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #FDECEC; color: var(--red); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bh__sinav:hover { background: #FBD9D9; }
.canli { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.canli::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: canli 1.6s ease-out infinite; }
@keyframes canli { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
.bbtn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.bbtn:hover { background: var(--blue-700); }
.bbtn--lg { height: 50px; padding: 0 24px; font-size: 16px; }
.bbtn--acik { background: var(--blue-50); color: var(--blue); }
.bbtn--acik:hover { background: #D9ECF6; }

/* 404 */
.nf { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 150px); max-width: 680px; margin: 0 auto; padding: 48px 20px 72px; text-align: center; }
.nf__yol { width: 100%; max-width: 520px; height: auto; margin: 0 auto 28px; }
.nf__arac { animation: nfFren 1.6s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes nfFren { from { transform: translate(-140px, 25px); } to { transform: translate(250px, 25px); } }
.nf__kod { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.nf h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.nf__metin { margin: 14px auto 0; max-width: 520px; font-size: 18px; color: var(--muted); }
.nf__butonlar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.nf__alt { margin-top: 28px; font-size: 14.5px; color: var(--muted); }
.nf__alt a { color: var(--blue); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .nf__arac, .canli::after { animation: none; } }

/* Liste */
.bl { max-width: 1120px; margin: 0 auto; padding: 56px 20px 80px; }
.bl__head { max-width: 680px; margin-bottom: 44px; }
.kicker { display: inline-block; margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); text-decoration: none; }
.bl__head h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.bl__head p { margin: 14px 0 0; font-size: 18px; color: var(--muted); }
.bl__empty { padding: 60px 0; color: var(--muted); font-size: 18px; }

.feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; margin-bottom: 48px; padding: 18px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 32, 47, .04), 0 12px 32px rgba(16, 32, 47, .06); text-decoration: none; transition: box-shadow .25s; }
.feat:hover { box-shadow: 0 2px 4px rgba(16, 32, 47, .05), 0 22px 48px rgba(16, 32, 47, .1); }
.feat img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.feat > div { padding: 8px 18px 8px 0; }
.feat h2 { margin-top: 14px; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; font-weight: 800; }
.feat p { margin: 14px 0 18px; font: 400 18px/1.55 var(--metin); color: var(--muted); }
.feat:hover h2, .post:hover h3 { color: var(--blue); }

/* Kategori filtreleri */
.kategoriler { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 36px; }
.kategori { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.kategori small { font-size: 12px; font-weight: 700; color: var(--muted); }
.kategori:hover { border-color: var(--blue); color: var(--blue); }
.kategori.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.kategori.is-on small { color: rgba(255, 255, 255, .7); }

.etiket { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: 12.5px; font-weight: 700; }
.etiket--yeni { background: #FDECEC; color: var(--red); }

/* Yazı kartları */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.post:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16, 32, 47, .05), 0 18px 40px rgba(16, 32, 47, .1); }
.post__gorsel { display: block; overflow: hidden; }
.post img, .post__ph { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: linear-gradient(135deg, var(--blue-50), #fdecec); transition: transform .4s; }
.post:hover img { transform: scale(1.04); }
.post__govde { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 18px 20px 20px; }
.post h3 { margin-top: 12px; font-size: 20px; line-height: 1.25; font-weight: 700; transition: color .2s; }
.post p { margin: 8px 0 14px; font: 400 16px/1.5 var(--metin); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .meta { margin-top: auto; }

/* Sayfalar (kaydırınca otomatik yüklenir) */
.sayfalar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 44px; }
.sayfalar a, .sayfalar span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 700; text-decoration: none; }
.sayfalar a:hover { border-color: var(--blue); color: var(--blue); }
.sayfalar [aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.sayfalar.is-yukleniyor { opacity: .5; }
.meta { font-size: 13.5px; color: var(--muted); }

/* Yazı */
.art { max-width: 728px; margin: 0 auto; padding: 48px 24px 80px; }
.draft { margin: 0 0 24px; padding: 10px 14px; border-radius: 10px; background: #FFF6E5; color: #8A5A00; font-weight: 600; font-size: 14px; }
.art__head h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.art__lead { margin: 16px 0 0; font: 400 22px/1.45 var(--metin); color: var(--muted); }
.byline { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; padding: 18px 0; border-block: 1px solid var(--line); }
.byline img { height: 40px; width: auto; }
.byline strong { display: block; color: var(--ink); font-size: 15px; }
.byline span { font-size: 14px; color: var(--muted); }
.art__cover { margin: 36px -40px 0; }
.art__cover img { width: 100%; border-radius: 14px; }

.prose { margin-top: 36px; font: 400 20px/1.75 var(--metin); color: #1c2b39; }
.prose > * { margin: 0 0 1.3em; }
.prose h2 { font: 800 30px/1.2 var(--baslik); margin: 1.8em 0 .5em; }
.prose h3 { font: 700 23px/1.25 var(--baslik); margin: 1.6em 0 .4em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin-left: 0; padding-left: 22px; border-left: 3px solid var(--blue); font-style: italic; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li > p { margin: 0; }
.prose hr { border: 0; text-align: center; margin: 2.2em 0; }
.prose hr::before { content: "· · ·"; letter-spacing: .6em; color: var(--muted); font-size: 22px; }
.prose code { font-size: .85em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: 12px; }
.prose figcaption { margin-top: 10px; text-align: center; font: 400 15px var(--ui); color: var(--muted); }
.embed--video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.embed--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--insta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.embed--insta blockquote:not([class*="instagram-media-rendered"]) { margin: 0; padding: 16px 20px; border: 1px solid #e3eaf0; border-radius: 12px; }
.insta-yukle { height: 40px; padding: 0 16px; border: 1.5px solid #e3eaf0; border-radius: 999px; background: #fff; font: 600 14px var(--metin); color: #10202F; cursor: pointer; }
.insta-yukle:hover { border-color: #0079B3; color: #0079B3; }
.embed--insta .instagram-media { margin: 0 auto !important; min-width: 280px !important; max-width: 540px !important; width: 100% !important; }

.cta { margin-top: 56px; padding: 32px; border-radius: 18px; background: linear-gradient(120deg, var(--blue), var(--blue-700)); color: #fff; }
.cta h2 { color: #fff; font-size: 24px; font-weight: 800; }
.cta p { margin: 8px 0 20px; opacity: .9; }
.cta .bbtn { background: #fff; color: var(--blue-700); }

/* SSS ve yazar kutusu */
.faq { margin-top: 48px; }
.faq h2 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; font: 400 17px/1.65 var(--metin); color: #1c2b39; }
.about-author { display: flex; gap: 16px; margin-top: 40px; padding: 22px; border-radius: 16px; background: var(--bg-soft); }
.about-author img { height: 52px; width: auto; flex: none; }
.about-author strong { color: var(--ink); }
.about-author p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.about-author a { color: var(--blue); font-weight: 600; }

/* Okumaya devam */
.devam { padding: 64px 0 72px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.devam__in { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.devam__ust { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.devam h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.devam__tumu { color: var(--blue); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Alt bilgi */
.bf { border-top: 1px solid var(--line); }
.bf__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: 1120px; margin: 0 auto; padding: 28px 20px; font-size: 14px; color: var(--muted); }
.bf a { color: var(--ink-2); }

@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; gap: 6px; padding: 12px; }
  .feat > div { padding: 8px 8px 10px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .art__cover { margin-inline: 0; }
}
@media (max-width: 600px) {
  .bh__link { display: none; }
  .bh__in { gap: 10px; padding: 0 14px; }
  .brand span { display: none; }
  .bh__sinav { padding: 8px 12px; font-size: 14px; }
  .bh .bbtn { height: 38px; padding: 0 14px; font-size: 14px; }
  .bl { padding-top: 36px; }
  .grid { grid-template-columns: 1fr; }
  .kategoriler { flex-wrap: nowrap; overflow-x: auto; margin: -16px -20px 28px; padding: 0 20px 4px; scrollbar-width: none; }
  .kategoriler::-webkit-scrollbar { display: none; }
  .kategori { flex: none; }
  .art { padding: 32px 18px 64px; }
  .prose { font-size: 18.5px; }
  .art__lead { font-size: 19px; }
  .cta { padding: 24px 20px; }
}
