/* =========================================================
   BLOG — liste, yazı sayfası ve ana sayfadaki "Son yazılar"
   Ana sitenin style.css değişkenlerini kullanır.
   ========================================================= */

/* ---------- Kartlar (blog listesi + ana sayfa) ---------- */
.blog-kartlar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-kart {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--navy-800); border: 1px solid var(--navy-line); border-radius: var(--radius-lg, 24px);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.blog-kart:hover { transform: translateY(-4px); border-color: rgba(255, 107, 53, .5); box-shadow: var(--shadow); }
.blog-kart-gorsel { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-700); }
.blog-kart-gorsel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.blog-kart:hover .blog-kart-gorsel img { transform: scale(1.04); }
.blog-kart-bos {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--font-head); font-size: 3.4rem; font-weight: 700; color: var(--orange);
  background: radial-gradient(circle at 70% 30%, rgba(255, 107, 53, .25), transparent 60%), var(--navy-700);
}
.blog-kart-metin { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.blog-kart h2, .blog-kart h3 { font-size: 1.22rem; line-height: 1.35; margin: 0; }
.blog-kart h2 a, .blog-kart h3 a { color: var(--text-main); }
.blog-kart h2 a:hover, .blog-kart h3 a:hover { color: var(--orange); }
.blog-kart-metin > p:not(.blog-meta) {
  color: var(--text-mute); line-height: 1.65; font-size: .95rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-meta { font-size: .84rem; color: var(--orange-light); font-weight: 600; margin: 0; }
.blog-devam { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--orange); }
.blog-devam:hover { text-decoration: underline; }
.blog-bos { text-align: center; color: var(--text-mute); padding: 40px 0; }

/* ---------- Blog listesi ---------- */
.blog-liste-hero { padding-bottom: 20px; }
.blog-liste-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.12; margin: 14px 0 16px; max-width: 760px; }
.blog-liste-hero h1 span { color: var(--orange); }
.blog-liste { padding-top: 30px; }

/* ---------- Yazı sayfası ---------- */
.blog-dar { max-width: 820px; }
.blog-baslik { padding-bottom: 30px; }
.blog-baslik h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; margin: 6px 0 16px; }
.blog-baslik .blog-meta { font-size: .92rem; color: var(--text-mute); font-weight: 500; }
.blog-baslik .blog-meta span { color: var(--orange-light); font-weight: 600; }

.blog-kapak { margin: 0 0 36px; border-radius: 22px; overflow: hidden; border: 1px solid var(--navy-line); }
.blog-kapak img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }

.blog-icerik { font-size: 1.08rem; line-height: 1.85; color: var(--text-main); }
.blog-icerik > * + * { margin-top: 1.1em; }
.blog-icerik p { color: var(--text-main); opacity: .92; }
.blog-icerik h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.3; margin-top: 1.9em; }
.blog-icerik h3 { font-size: 1.25rem; line-height: 1.35; margin-top: 1.5em; color: var(--orange-light); }
.blog-icerik ul, .blog-icerik ol { padding-left: 1.4em; }
.blog-icerik ul { list-style: disc; }
.blog-icerik ol { list-style: decimal; }
.blog-icerik li { margin: .35em 0; }
.blog-icerik li::marker { color: var(--orange); }
.blog-icerik a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.blog-icerik strong { color: var(--text-main); }
.blog-icerik blockquote {
  margin-left: 0; padding: 18px 22px; border-left: 4px solid var(--orange);
  background: var(--navy-800); border-radius: 0 16px 16px 0; font-style: italic;
}
.blog-icerik blockquote p { margin: 0; }
.blog-icerik hr { border: 0; border-top: 1px dashed var(--navy-line); margin: 2em 0; }
.blog-gorsel { margin: 1.8em 0; }
.blog-gorsel img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--navy-line); }
.blog-gorsel figcaption { margin-top: 8px; font-size: .88rem; color: var(--text-mute); text-align: center; }

.blog-egitim {
  margin: 44px 0 0; padding: 26px 28px; border-radius: 20px;
  background: var(--navy-800); border: 1px solid var(--navy-line); display: grid; gap: 10px; justify-items: start;
}
.blog-egitim h3 { margin: 0; font-size: 1.25rem; }
.blog-egitim p { margin: 0; color: var(--text-mute); line-height: 1.6; }

.blog-yazar {
  display: flex; align-items: center; gap: 16px; margin: 28px 0 0; padding: 20px 0;
  border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line);
}
.blog-yazar-harf {
  flex: 0 0 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--on-accent, #0a0f22);
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
}
.blog-yazar div { display: flex; flex-direction: column; }
.blog-yazar small { color: var(--text-mute); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.blog-yazar strong { font-size: 1.05rem; }
.blog-yazar div span { color: var(--text-mute); font-size: .92rem; }

.blog-cagri { margin: 48px 0 80px; }

/* ---------- Ana sayfa: Son yazılar ---------- */
.blog-son-cta { text-align: center; margin-top: 36px; }

/* ---------- Duyarlı ---------- */
@media (max-width: 960px) {
  .blog-kartlar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-kartlar { grid-template-columns: 1fr; }
  .blog-icerik { font-size: 1.02rem; }
  .blog-egitim { padding: 22px; }
}

/* Ana sayfa: seçili yazı sayısı azsa kartlar ortalansın */
#blogSon { grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; }
@media (max-width: 640px) { #blogSon { grid-template-columns: 1fr; } }
#blog[hidden] { display: none !important; }

/* Taslak önizleme bandı */
.blog-onizleme {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; padding: 12px 90px 12px 16px; text-align: center; font-size: .9rem;
  color: #0a0f22; background: repeating-linear-gradient(45deg, #ffb74d, #ffb74d 14px, #ffc56e 14px, #ffc56e 28px);
}
.blog-onizleme b { letter-spacing: .08em; }