/* ===============================
   blog.css (CLEAN - RESTORED)
   Kullanım:
   - Blog liste:  <body class="blog-page">
   - Blog yazı:   <body class="blog-post">
   =============================== */

/* =========================================================
   1) BLOG TOPBAR
   ========================================================= */
body.blog-page header.blog-topbar,
body.blog-post header.blog-topbar{
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

body.blog-page header.blog-topbar .container,
body.blog-post header.blog-topbar .container{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Topbar logo boyut */
body.blog-page header.blog-topbar a.blog-logo img,
body.blog-post header.blog-topbar a.blog-logo img{
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

/* Dil dropdown sağ üst */
.blog-lang-dropdown{
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.blog-lang-dropdown .btn{
  font-size: .85rem;
  padding: 4px 10px;
}

/* =========================================================
   2) BLOG LİSTE SAYFASI (Kartlar) - body.blog-page
   ========================================================= */
body.blog-page .blog-card{
  overflow: hidden;
  border-radius: 14px;
}

/* (Senin index.html inline style'ın cover/contain işini yapıyor)
   Burada minimum tutuyoruz. */
body.blog-page .blog-title a{ text-decoration: none; color: inherit; }
body.blog-page .blog-title a:hover{ text-decoration: underline; }

/* =========================================================
   2.1) Kategori Badge (tıklanabilir)
   ========================================================= */
.blog-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

/* Badge artık BUTTON olduğu için: default buton stillerini sıfırla */
button.blog-badge,
button.blog-badge.badge-link{
  border: none !important;
  outline: none !important;
  cursor: pointer !important;

  /* Yazı beyaz + koyu zemin (isteğe göre değiştirirsin) */
  color: #ffffff !important;
  background: rgba(0,0,0,.75) !important;
}

button.blog-badge.badge-link:hover{
  background: rgba(0,0,0,.90) !important;
}

/* =========================================================
   3) TEKİL BLOG YAZISI (Modern tema) - body.blog-post
   ========================================================= */
body.blog-post{
  margin: 0;
  background: #f4f6fb;
  color: #1f2937;
  line-height: 1.75;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Sol üst geri link */
body.blog-post .blog-back{
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: .9rem;
  color: #444;
  text-decoration: none;
  opacity: .75;
  z-index: 10;
}
body.blog-post .blog-back:hover{
  opacity: 1;
  text-decoration: underline;
}

/* Üst logo (topbar kullanmıyorsan) */
body.blog-post .blog-logo{
  display: flex;
  justify-content: center;
  margin: 26px 0 14px;
}
body.blog-post .blog-logo img{
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

/* Yazı kartı */
body.blog-post .post-shell{
  max-width: 900px;
  margin: 36px auto 60px;
  padding: 32px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

/* Kapak çerçevesi */
body.blog-post .post-cover{
  margin: 12px 0 24px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3ede0;
}

/* Kapak görsel */
body.blog-post .post-cover img{
  width: 100%;
  max-height: 420px; /* 360–520 arası oynayabilirsin */
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* Başlık + meta */
body.blog-post .post-title{
  font-size: 2.2rem;
  margin: 0 0 10px;
  font-weight: 800;
  line-height: 1.2;
}
body.blog-post .post-meta{
  margin: 0 0 16px;
  opacity: .7;
}

/* Paragraflar */
body.blog-post p{
  margin: 0 0 14px;
  font-size: 1.05rem;
}

/* Başlıklar */
body.blog-post h2{
  font-size: 1.4rem;
  margin: 36px 0 12px;
  font-weight: 700;
}
body.blog-post h3{
  font-size: 1.1rem;
  margin: 24px 0 6px;
  font-weight: 700;
}

/* Alıntı */
body.blog-post blockquote{
  margin: 28px 0;
  padding: 20px;
  background: #e3eefc;
  border-left: 5px solid #4c7219; /* Mindova yeşili */
  border-radius: 12px;
  font-style: italic;
}

/* Highlight kutusu */
body.blog-post .highlight{
  background: #f8fafc;
  border-radius: 14px;
  padding: 18px;
  margin-top: 20px;
}

/* CTA kutusu */
body.blog-post .cta{
  margin-top: 32px;
  padding: 20px;
  background: #e3eefc;
  color: #1f2937;
  border-radius: 14px;
}
body.blog-post .cta strong{
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: #4c7219;
}

/* CTA buton */
body.blog-post .post-cta{ margin-top: 14px; }

body.blog-post .post-cta a{
  display: inline-block;
  margin-top: 6px;
  padding: 12px 22px;
  border-radius: 28px;
  background: #4c7219;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
body.blog-post .post-cta a:hover{ opacity: .92; }

/* Bölücü + kaynaklar */
body.blog-post .post-sep{
  margin: 36px 0;
  border: 0;
  border-top: 1px solid rgba(0,0,0,.12);
}
body.blog-post .post-sources{
  padding-left: 18px;
  opacity: .75;
  font-size: .95rem;
}

/* Listeler */
body.blog-post ul{
  margin-top: 12px;
  padding-left: 18px;
}
body.blog-post li{
  margin-bottom: 6px;
  font-size: .95rem;
}

/* Kapak varyasyonları (opsiyonel) */
body.blog-post .post-cover.cover-top img{ object-position: center top; }
body.blog-post .post-cover.cover-tall img{ max-height: 520px; }

/* Mobil */
@media (max-width: 768px){
  body.blog-post .post-shell{
    margin: 24px 12px 48px;
    padding: 20px;
  }
  body.blog-post .post-title{ font-size: 1.8rem; }
  body.blog-post .post-cover img{ max-height: 260px; }
}

/* =========================================================
   4) ETİK NOT (ortala + italik + kalın)
   ========================================================= */
.etik-not,
.etik-note{
  text-align: center;
  font-style: italic;
  font-weight: 700;
  font-size: 0.95rem;
  color: #555;
  margin-top: 2rem;
}

/* =========================================================
   5) WhatsApp Sabit Buton (BLOG)
   ========================================================= */
.whatsapp-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  text-decoration: none;
  z-index: 99999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float:hover{
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
  color: #ffffff;
}

.whatsapp-float i{
  line-height: 1;
  display: block;
}
