/* ==========================================================================
   biMARJ — Blog listesi
   Yalnızca blog listeleme görünümlerinde yüklenir
   (controller: pageStyles => ['blog'] — blog, kategori ve etiket sayfaları).
   Diğer iç sayfalarla aynı hero, kart ve boşluk sistemi.
   ========================================================================== */

/* ---- Mini hero -------------------------------------------------------- */
.bl-hero{
  background:
    radial-gradient(760px 340px at 82% 20%, rgba(255,255,255,.7), transparent 60%),
    linear-gradient(112deg, #ffffff 0%, #f8fbf9 48%, #eef5f0 100%);
  border-bottom: 1px solid #e9efec;
  padding: 26px 0 30px;
}
.bl-hero-inner{
  display: grid; grid-template-columns: 1fr 230px;
  gap: 32px; align-items: center;
}
.bl-hero-copy{ min-width: 0; }

.bl-hero .breadcrumb{
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0 0 12px; padding: 0;
  font-size: 12.5px; color: #77848c;
}
.bl-hero .breadcrumb li + li:before{ content: "›"; margin-right: 8px; color: #b3bec4; }
.bl-hero .breadcrumb a{ color: #77848c; }
.bl-hero .breadcrumb a:hover{ color: var(--green); }

.bl-hero h1{
  position: relative;
  font-size: 36px; font-weight: 700; letter-spacing: -1.1px;
  line-height: 1.12; color: var(--ink);
  margin: 0 0 16px; padding-bottom: 11px;
}
.bl-hero h1:after{
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 52px; height: 3px; border-radius: 3px; background: #e85d4a;
}
.bl-hero p{
  font-size: 16px; line-height: 1.6; color: #44535f;
  margin: 0; max-width: 58ch;
}

.bl-hero-art{ position: relative; height: 150px; }
.bla{
  position: absolute; display: grid; place-items: center;
  border-radius: 14px; background: #fff;
  box-shadow: 0 8px 20px rgba(13,40,30,.10);
}
.bla svg{ fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.bla-1{ width: 62px; height: 62px; left: 8px;   top: 12px;   color: #0f8a5f; }
.bla-1 svg{ width: 30px; height: 30px; }
.bla-2{ width: 54px; height: 54px; right: 6px;  top: 0;      color: #c98a06; }
.bla-2 svg{ width: 26px; height: 26px; }
.bla-3{ width: 50px; height: 50px; left: 52px;  bottom: 6px; color: #e0654a; }
.bla-3 svg{ width: 24px; height: 24px; }
.bla-4{ width: 46px; height: 46px; right: 22px; bottom: 20px; color: #2f72cf; }
.bla-4 svg{ width: 22px; height: 22px; }

/* ---- Sayfa gövdesi ---------------------------------------------------- */
.bl-page{ padding: 26px 0 12px; }

/* ---- Kategori filtreleri ----------------------------------------------- */
.bl-filters{
  display: flex; flex-wrap: wrap; gap: 9px;
  margin-bottom: 26px;
}
.bl-pill{
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid #e4eae7; border-radius: 22px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 500; color: #44535f;
  transition: background-color .2s ease, border-color .2s ease,
              color .2s ease, box-shadow .2s ease;
}
.bl-pill i{
  font-style: normal; font-size: 11.5px; font-weight: 600;
  color: #8a969e; background: #f2f5f3; border-radius: 10px;
  padding: 2px 7px; line-height: 1.4;
}
.bl-pill:hover{
  border-color: #cfe0d7; background: #f7fbf9; color: var(--green-dark);
  text-decoration: none;
}
.bl-pill.is-active{
  background: var(--green); border-color: var(--green); color: #fff;
  box-shadow: 0 4px 12px rgba(0,135,96,.20);
}
.bl-pill.is-active i{ background: rgba(255,255,255,.22); color: #fff; }
.bl-pill.is-active:hover{ background: var(--green-dark); color: #fff; }

/* ---- Kart grid'i -------------------------------------------------------- */
.bl-grid{
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; align-items: stretch;
}

/* ---- Blog kartı --------------------------------------------------------- */
.bp{
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e9edeb; border-radius: 15px;
  overflow: hidden; color: inherit; text-decoration: none;
  box-shadow: 0 1px 2px rgba(25,42,57,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bp:hover{
  transform: translateY(-3px); border-color: #dbe4df;
  box-shadow: 0 12px 26px rgba(13,40,30,.10); text-decoration: none;
}

/* Kapak görseli — yaklaşık 1.8:1 */
/* Oran kutusu padding yöntemiyle kurulur: aspect-ratio her motorda
   desteklenmiyor ve bazılarında yerleşimi bozuyor. 56.25% = 16:9 */
.bp-thumb{
  position: relative; display: block;
  height: 0; padding-top: 56.25%;
  background: #f2f6f4; overflow: hidden;
}
.bp-thumb img{
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%; display: block;
  object-fit: cover;          /* kırpma dengeli, oran bozulmaz */
}

/* Görseli olmayan yazı: kategoriye göre pastel kompozisyon */
.bp-fallback{
  position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: grid; place-items: center;
  background: var(--pc-bg, #eaf4ef);
  background-image:
    radial-gradient(70px 70px at 78% 22%, var(--pc-blob, rgba(15,138,95,.16)), transparent 70%),
    radial-gradient(90px 90px at 18% 86%, var(--pc-blob, rgba(15,138,95,.12)), transparent 72%);
  color: var(--pc-fg, #0f8a5f);
}
.bp-fallback svg{
  width: 34px; height: 34px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .9;
}

/* Kategori etiketi */
.bp-tag{
  position: absolute; left: 12px; top: 12px;
  padding: 5px 11px; border-radius: 8px;
  font-size: 11.5px; font-weight: 600; line-height: 1.3;
  background: var(--pc-fg, #0f8a5f); color: #fff;
  box-shadow: 0 2px 6px rgba(13,40,30,.18);
}

/* Kategori aksanları — yalnızca etiket ve fallback'te kullanılır */
.pc-mint { --pc-fg: #0f8a5f; --pc-bg: #eaf4ef; --pc-blob: rgba(15,138,95,.16); }
.pc-coral{ --pc-fg: #dd5a2e; --pc-bg: #fdf0ea; --pc-blob: rgba(221,90,46,.16); }
.pc-blue { --pc-fg: #1e6fc4; --pc-bg: #eaf2fb; --pc-blob: rgba(30,111,196,.16); }
.pc-amber{ --pc-fg: #b8820a; --pc-bg: #fdf6e5; --pc-blob: rgba(184,130,10,.18); }

/* Kart gövdesi */
.bp-body{
  display: flex; flex-direction: column; flex: 1;
  padding: 15px 15px 13px; min-width: 0;
}
.bp-title{
  font-size: 18px; font-weight: 600; line-height: 1.3;
  color: var(--ink); margin-bottom: 7px;
}
.bp-excerpt{
  font-size: 14px; line-height: 1.55; color: #5b6a76;
  flex: 1; margin-bottom: 12px;
}
.bp-meta{
  display: flex; flex-wrap: wrap; gap: 14px;
  padding-top: 11px; border-top: 1px solid #f0f3f1;
  font-size: 12.5px; color: #77848c;
}
.bp-meta span{ display: inline-flex; align-items: center; gap: 6px; }
.bp-meta svg{
  width: 14px; height: 14px; flex: 0 0 14px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.bl-empty{
  background: #f7f9f8; border: 1px dashed #e2e8e5; border-radius: 12px;
  padding: 22px; text-align: center; color: #77848c; font-size: 14px;
}

/* ---- Sayfalama ---------------------------------------------------------- */
.bl-pagination{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.bl-page-link{
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e4eae7; border-radius: 11px;
  font-size: 14px; font-weight: 500; color: #44535f;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.bl-page-link:hover{ border-color: #cfe0d7; background: #f7fbf9; color: var(--green-dark);
  text-decoration: none; }
.bl-page-link.is-active{
  background: var(--green); border-color: var(--green); color: #fff;
  box-shadow: 0 4px 12px rgba(0,135,96,.20);
}

/* ---- Duyarlı ------------------------------------------------------------ */
@media (max-width: 1180px){
  .bl-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bl-hero h1{ font-size: 33px; }
}
@media (max-width: 980px){
  .bl-hero-inner{ grid-template-columns: 1fr; gap: 20px; }
  .bl-hero-inner > .bl-hero-art{ display: none; }
}
@media (max-width: 860px){
  .bl-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .bl-hero{ padding: 20px 0 24px; }
  .bl-hero h1{ font-size: 28px; letter-spacing: -.8px; margin-bottom: 13px; }
  .bl-hero p{ font-size: 15px; }
  .bl-page-link{ min-width: 38px; height: 38px; }
  .bl-filters{ gap: 8px; margin-bottom: 20px; }
  .bl-pill{ padding: 8px 14px; font-size: 13px; }
  .bl-grid{ grid-template-columns: 1fr; gap: 14px; }
  .bp-title{ font-size: 17px; }
  .bp-excerpt{ font-size: 13.5px; }
  .bp-body{ padding: 14px 14px 12px; }
}

/* ---- Grid desteklemeyen motorlar için yedek ---------------------------- */
@supports not (display: grid){
  .bl-hero-inner, .bl-grid{ font-size: 0; }
  .bl-hero-inner > *, .bl-grid > *{
    display: inline-block; vertical-align: top; font-size: 16px;
    box-sizing: border-box;
  }
  .bl-hero-inner > *:first-child{ width: 72%; padding-right: 3%; }
  .bl-hero-inner > *:last-child { width: 26%; }
  .bl-grid > *{ width: 24%; margin-right: .8%; margin-bottom: 18px; }
  .bp-fallback{ text-align: center; }
}
@media (max-width: 860px){
  @supports not (display: grid){
    .bl-grid > *{ width: 49%; }
    .bl-hero-inner > *:first-child, .bl-hero-inner > *:last-child{ width: 100%; padding-right: 0; }
  }
}
@media (max-width: 560px){
  @supports not (display: grid){
    .bl-grid > *{ width: 100%; margin-right: 0; }
  }
}
