/* =========================
   BLOG GENEL
   ========================= */

#blogMain{
  padding-top:96px;
  padding-bottom:64px;
}

#blogMain .container{
  max-width:1120px;
  margin:0 auto;
  padding:0 16px;
}

/* =========================
   HERO + ARAMA
   ========================= */

.blog-hero{
  max-width:1120px;
  margin:0 auto 40px;   /* 24 yerine 40: arama ile kategoriler arası açılır */
}

.blog-hero h1{
  margin:0 0 6px;
  font-size:24px;
  font-weight:600;
  text-align:center;
}

.blog-hero p{
  margin:0 0 16px;
  font-size:14px;
  opacity:.8;
  text-align:center;
}

/* arama barı tasarımı (tam genişlik pil şeklinde) */
.blog-search{
  display:block;
}

.blog-search input[type="search"]{
  width:100%;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.8);
  background:#f9fafb;
  color:#0f172a;
  font-size:14px;
  box-shadow:0 0 0 2px rgba(148,163,184,.15);
}

.blog-search input::placeholder{
  color:#9ca3af;
}

/* “Ara” butonunu istersen kullan, istersen gizle */
.blog-search button{
  display:none;
}

/* =========================
   LAYOUT
   ========================= */

/* Artık sidebar sol değil, üstte kategori şeridi gibi */
.blog-layout{
  max-width:1120px !important; 
  margin:8px auto 0 !important;   /* üstte ekstra 8px boşluk */
  padding:0 16px !important; 
  display:flex !important; 
  flex-direction:column !important; 
  gap:20px !important;
}

/* =========================
   KATEGORİ ŞERİDİ
   ========================= */

.blog-sidebar{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}

.sidebar-title{
  display:none; /* “Kategoriler” başlığını gizle (isteğe bağlı) */
}

.cat-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* kategori pill */
.cat-list a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 18px;
  border-radius:999px;
  background:#f3f4f6;
  color:#0f172a;
  font-size:14px;
  text-decoration:none;
  white-space:nowrap;
  border:1px solid #e5e7eb;
  box-shadow:0 8px 20px rgba(148,163,184,.35);
  transition:background .15s, color .15s, transform .08s, box-shadow .15s;
}

.cat-list a:hover{
  background:#e5e7eb;
  transform:translateY(-1px);
}

.cat-list a.active{
  background:#0ea5e9;
  border-color:#0ea5e9;
  color:#fff;
  box-shadow:0 10px 28px rgba(14,165,233,.6);
}

/* =========================
   YAZI LİSTESİ / GRID
   ========================= */

.blog-list .empty{
  margin-top:12px;
  font-size:14px;
  opacity:.8;
}

/* ========== YAZI LİSTESİ / GRID ========== */

.post-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(230px, 1fr));
  gap:20px;
}

/* Kart ana gövde: üstte resim, altında metin */
.post-card{
  border-radius:20px;
  overflow:hidden;
  border:none;
  background:#020617;
  box-shadow:0 18px 50px rgba(15,23,42,.7);
  display:flex;
  flex-direction:column;
}

/* Görsel */
.post-card .thumb{
  display:block;
  line-height:0;
  background:#111827;
}

.post-card .thumb img{
  width:100%;
  max-height:240px;
  object-fit:cover;
  display:block;
  transition:transform .3s ease;
}

.post-card:hover .thumb img{
  transform:scale(1.03);
}

/* Metin bloğu artık resmin ALTINDA */
.post-card-body{
  position:static;
  padding:12px 14px 14px;
  background:#020617;
  color:#e5e7eb;
}


/* Kategori etiketi */
.post-chip{
  display:inline-block;
  margin:0 0 4px;
  padding:3px 8px;
  border-radius:999px;
  background:rgb(71 125 255 / 90%);
  font-size:11px;
  color:#e5e7eb;
}

/* Başlık */
.post-card-title{
  margin:0 !important;
  font-size:15px !important;
  font-weight:600 !important;
}

.post-card-title a{
  color:#f9fafb !important;
  text-decoration:none !important;
}

.post-card-title a:hover{
  color:#93c5fd !important;
}

/* Kısa açıklamayı gizleyelim (mock’taki gibi sadece başlık + kategori) */
.post-card-excerpt{
  display:none;
}

/* Tarih – istersen alt satırda küçük */
.post-card-meta{
  margin-top:4px;
  font-size:11px;
  color:#d1d5db;
}


/* =========================
   SAYFALAMA – “Devamını Göster” stili
   ========================= */

.pager {
  text-align: center;
  margin: 32px 0 12px;
}

.pager a {
  display:inline-block;
  min-width:36px;
  padding:8px 12px;
  margin:0 4px;
  border-radius:999px;
  background:#f0f4ff;
  color:#1a2740;
  text-decoration:none;
  font-weight:500;
  font-size:14px;
}

.pager a.active {
  background:#00bfff;
  color:#fff;
}

.pager a.prev,
.pager a.next {
  min-width:32px;
}



/* =========================
   TEK YAZI SAYFASI
   ========================= */

.blog-post{
  max-width:760px;
  margin:0 auto;
  padding:0 16px;
}

.post-header{
  margin-bottom:20px;
}

.post-cat a{
  font-size:13px;
  color:#f97316;
  text-decoration:none;
}

.post-title{
  margin:6px 0 8px;
  font-size:28px;
  font-weight:700;
}

.post-meta{
  margin:0;
  font-size:12px;
  color:#6b7280;
}

.post-cover{
  margin:0 0 18px;
}

.post-cover img{
  width:100%;
  border-radius:20px;
  box-shadow:0 20px 70px rgba(15,23,42,.75);
}

.post-body{
  font-size:15px;
  line-height:1.8;
  color:#111827;
}

.post-body h2{
  margin-top:24px;
  margin-bottom:10px;
  font-size:22px;
}

.post-body h3{
  margin-top:18px;
  margin-bottom:8px;
  font-size:18px;
}

.post-body p{
  margin:0 0 12px;
}

/* =========================
   MOBİL / TABLET
   ========================= */

@media (max-width: 768px){
  #blogMain{
    padding-top:80px;
    padding-bottom:40px;
  }

  .blog-hero h1{
    font-size:22px;
  }

  .blog-hero p{
    font-size:13px;
  }

  .blog-layout{
    padding:0 12px;
  }

  .cat-list{
    overflow-x:auto;
    padding-bottom:4px;
  }

  .cat-list a{
    flex:0 0 auto;
  }

  .post-grid{
    grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
    gap:14px;
  }

  .post-card .thumb img{
    height:150px;
  }
}
