/* ==========================================================================
   EK TUNING — BLOG REHBER YAZILARI CRO, IX (ETKİLEŞİM) VE GEO STİL PAKETİ
   Yalnızca tekil blog yazılarında (is_singular('post')) yüklenir.
   Palet: #ff0022 (vurgu) | #1a1d20 (koyu) | #65718a (ikincil) | #e2e8f0 (çizgi)
   ========================================================================== */

/* 1. Kompakt Blog Üst Başlık ve Meta Şeridi (İlk Ekran / Above-the-Fold Kazancı) */
.mars-single-post.mars-content-card {
  padding: 24px 28px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.mars-single-post .mars-page-header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f6;
}

.mars-single-post .mars-page-header h1 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 10px 0;
  display: block;
}

.ek-post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 12.5px;
  color: #64748b;
}

.ek-post-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

/* Öne çıkan kapak görseli artık üst ürün vitrininden sonra ve kompakt oranda görünür */
.mars-single-post .mars-single-cover {
  width: 100%;
  max-height: 340px;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin: 18px 0 24px;
  border: 1px solid #e2e8f0;
}

/* 2. En Üst Ürün & Araç Dönüşüm Vitrini (Above-the-Fold Commerce Hub) */
.ek-blog-commerce-box {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1.5px solid #e2e8f0;
  border-top: 4px solid #ff0022;
  border-radius: 12px;
  padding: 18px 18px 16px;
  margin: 0 0 24px 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.ek-blog-commerce-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.ek-blog-commerce-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.ek-blog-commerce-kicker {
  display: inline-flex;
  align-items: center;
  background: #ff0022;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
}

.ek-blog-commerce-sub {
  font-size: 12px;
  color: #475569;
  font-weight: 500;
}

/* Hızlı Araç Modeli & Kategori Hapları (Pills) */
.ek-blog-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px 0;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
}

.ek-blog-pills-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  margin-right: 4px;
}

.entry-content .ek-blog-pill,
.ek-blog-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  color: #1e293b !important;
  border: 1px solid #cbd5e1;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none !important;
  transition: all 0.16s ease;
}

.entry-content .ek-blog-pill:hover,
.ek-blog-pill:hover {
  background: #1a1d20;
  color: #ffffff !important;
  border-color: #1a1d20;
  transform: translateY(-1px);
}

.entry-content .ek-blog-pill--primary,
.ek-blog-pill--primary {
  background: #1a1d20;
  color: #ffffff !important;
  border-color: #1a1d20;
}

.entry-content .ek-blog-pill--primary:hover,
.ek-blog-pill--primary:hover {
  background: #ff0022;
  border-color: #ff0022;
}

/* 4'lü Canlı Ürün Kartı Izgarası */
.ek-blog-prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.entry-content .ek-blog-prod-card,
.ek-blog-prod-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: #0f172a !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.entry-content .ek-blog-prod-card:hover,
.ek-blog-prod-card:hover {
  border-color: #ff0022;
  box-shadow: 0 10px 22px rgba(255, 0, 34, 0.10);
  transform: translateY(-2px);
}

.ek-blog-prod-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f8fafc;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.ek-blog-prod-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  border-radius: 0 !important;
  transition: transform 0.25s ease;
}

.ek-blog-prod-card:hover .ek-blog-prod-media img {
  transform: scale(1.04);
}

.ek-blog-prod-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: 5px;
  line-height: 1.2;
}

.ek-blog-prod-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 11px 11px;
  gap: 5px;
}

.ek-blog-prod-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.ek-blog-prod-spec {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

.ek-blog-prod-foot {
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ek-blog-prod-price {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.ek-blog-prod-cta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #ff0022;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.ek-blog-prod-card:hover .ek-blog-prod-cta {
  background: #d9001d;
}

/* Alt Destek / WhatsApp Spor Yay & Uyum Barı */
.ek-blog-assist-bar {
  margin-top: 12px;
  padding: 10px 13px;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}

.ek-blog-assist-bar strong {
  color: #ffffff;
}

.entry-content .ek-blog-assist-btn,
.ek-blog-assist-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16a34a;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: opacity 0.16s ease;
}

.entry-content .ek-blog-assist-btn:hover,
.ek-blog-assist-btn:hover {
  opacity: 0.92;
}

/* 3. GEO Hızlı Özet Kutusu (TL;DR / AI Cevap Özeti) */
.ek-geo-tldr {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0f172a;
  border-radius: 10px;
  padding: 15px 18px;
  margin: 0 0 22px 0;
}

.ek-geo-tldr-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ek-geo-tldr ul {
  margin: 0;
  padding-left: 18px;
}

.ek-geo-tldr li {
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 5px;
}

.ek-geo-tldr li:last-child {
  margin-bottom: 0;
}

/* 4. Okunabilirlik, İçindekiler ve GEO Karşılaştırma Tablosu */
.mars-single-post .entry-content {
  font-size: 15px;
  line-height: 1.72;
  color: #1e293b;
}

.mars-single-post .entry-content h2 {
  font-size: clamp(19px, 2.1vw, 23px);
  font-weight: 700;
  color: #0f172a;
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
  line-height: 1.3;
}

.mars-single-post .entry-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 22px 0 8px;
  line-height: 1.35;
}

.ek-geo-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.ek-geo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #ffffff;
  min-width: 540px;
}

.ek-geo-table th {
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 11px 14px;
  font-size: 12.5px;
}

.ek-geo-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f6;
  color: #1e293b;
  vertical-align: top;
}

.ek-geo-table tr:nth-child(even) td {
  background: #f8fafc;
}

.ek-geo-table tr:last-child td {
  border-bottom: 0;
}

/* Satır İçi Bağlamsal Ürün / Kategori Kartı */
.ek-inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff8f8;
  border: 1px solid #fecdd3;
  border-left: 4px solid #ff0022;
  border-radius: 9px;
  padding: 12px 15px;
  margin: 14px 0 20px;
}

.ek-inline-cta__text {
  font-size: 13.5px;
  color: #1e293b;
  line-height: 1.45;
}

.entry-content .ek-inline-cta__btn,
.ek-inline-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ff0022;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 7px;
  text-decoration: none !important;
  white-space: nowrap;
}

.entry-content .ek-inline-cta__btn:hover,
.ek-inline-cta__btn:hover {
  background: #d9001d;
}

/* 5. SSS (FAQ) Kartları */
.ek-faq-section {
  margin: 28px 0 24px;
}

.ek-faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.mars-single-post .entry-content .ek-faq-item h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: #0f172a;
}

.ek-faq-item p {
  margin: 0;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.6;
}

/* 6. Alt Dönüşüm Kutusu */
.ek-blog-bottom-cta {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 12px;
  padding: 22px 20px;
  text-align: center;
  margin-top: 26px;
}

.ek-blog-bottom-cta h3 {
  color: #ffffff !important;
  margin: 0 0 8px 0 !important;
  font-size: 18px !important;
}

.ek-blog-bottom-cta p {
  color: #cbd5e1;
  margin: 0 0 16px 0;
  font-size: 13.5px;
}

.entry-content .ek-blog-bottom-cta__btn,
.ek-blog-bottom-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ff0022;
  color: #ffffff !important;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
}

.entry-content .ek-blog-bottom-cta__btn:hover,
.ek-blog-bottom-cta__btn:hover {
  background: #d9001d;
}

/* 7. Mobil Yapışkan (Sticky) Hızlı Ürün Geçiş Çubuğu */
.ek-blog-sticky-bar {
  display: none;
}

/* Responsive (Tablet & Mobil) */
@media (max-width: 991px) {
  .ek-blog-prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .mars-single-post.mars-content-card {
    padding: 16px 14px 24px;
  }

  .ek-blog-commerce-box {
    padding: 14px 12px;
    margin-bottom: 18px;
  }

  /* Mobilde 2 sütunlu kompakt ürün kartları: tek ekranda 4 ürün birden görünür! */
  .ek-blog-prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ek-blog-prod-media {
    aspect-ratio: 1 / 1;
  }

  .ek-blog-prod-body {
    padding: 8px 9px 9px;
  }

  .ek-blog-prod-title {
    font-size: 11.5px;
    min-height: 31px;
  }

  .ek-blog-prod-spec {
    display: none;
  }

  .ek-blog-prod-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .ek-blog-prod-price {
    font-size: 13px;
  }

  .ek-blog-prod-cta {
    justify-content: center;
    padding: 6px 8px;
    font-size: 11px;
  }

  .ek-blog-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ek-blog-pills::-webkit-scrollbar {
    display: none;
  }

  .ek-blog-pill,
  .ek-blog-pills-label {
    flex-shrink: 0;
  }

  .ek-blog-sticky-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 72px;
    z-index: 998;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .ek-blog-sticky-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .ek-blog-sticky-bar__info {
    font-size: 11.5px;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.25;
  }

  .ek-blog-sticky-bar__btn {
    background: #ff0022;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 11.5px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 7px;
    white-space: nowrap;
  }
}
