/* Post Header Author Meta - Author line styling with avatar, name, comments, dates */

.post-header,
.post-header-inner {
  width: 100%;
  max-width: 100%;
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}

/* Yazar satırı: flex + wrap; merkezde hizala */
.post-author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0px;
}

/* Avatar görünümü: sabit kare, taşma yok */
.header-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 52px;
  display: block;
}

/* Metin bloğu: dikey istif ve ortalama; taşma kırılabilir olsun */
.author-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  align-items: center;
  text-align: center;
}

.author-meta * {
  min-width: 0;
}

.byline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Yorum baloncuğu ikonu: ikincil renk ile boyansın */
.byline .comments-badge {
  color: var(--theme-secondary, var(--secondary-color));
}

.byline .comments-badge .c-icon svg {
  color: var(--theme-secondary, var(--secondary-color)) !important;
  fill: currentColor;
}

/* Balon için hafif halka görünümü; tema uyumlu sınır ve gölge */
.byline .comments-badge .c-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--theme-secondary, var(--secondary-color)) 35%, #ffffff);
  box-shadow: 0 4px 14px rgba(2,6,23,.06);
}

/* Von + yazar adı: ikincil renk */
.byline .byline-by,
.byline a:not(.share-btn) {
  color: var(--theme-secondary, var(--secondary-color)) !important;
  text-decoration: none;
}

.byline a:not(.share-btn):hover {
  text-decoration: underline;
}

/* Sağdaki paylaş (yukarı ok) butonu da ikincil renge bağlı olsun ve yorum balonuyla tutarlı dursun */
.byline .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--theme-secondary, var(--secondary-color)) !important;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--theme-secondary, var(--secondary-color)) 35%, #ffffff);
  box-shadow: 0 4px 14px rgba(2,6,23,.06);
}

.byline .share-btn svg {
  color: inherit;
}

/* Yayınlanma / güncellenme satırı: tek satıra sığmadığında alt satıra geçsin */
.meta-small {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  line-height: 1.4;
}

.meta-small .dot-sep {
  margin: 0 4px;
}

/* Mobil tarih bloğu: her zaman yatay esnek düzen; responsive olarak dar alanda alt satıra iner */
.meta-mobile-block {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.meta-mobile-block > span {
  white-space: nowrap; /* her parça (Yayınlandı 5 Nov 2025) bir arada kalsın */
}

/* Masaüstündeki görsel hiyerarşiyi taklit et: Published etiketi birincil renk ve güçlü; tarihi siyah ve kalın; Updated grileşsin */
.meta-mobile-block .published-label {
  color: var(--theme-primary, #15c6a3);
  font-weight: 800;
  letter-spacing: .02em;
}

.meta-mobile-block .published-date {
  color: #111;
  font-weight: 700;
}

.meta-mobile-block .updated-label {
  color: #64748B;
  font-weight: 600;
}

.meta-mobile-block .updated-date {
  color: #6B7280;
  font-weight: 600;
}

/* İki blok arasında masaüstündeki gibi nokta ayırıcı */
.meta-mobile-block .meta-mobile-updated::before {
  content: '\00B7';
  display: inline-block;
  margin: 0 6px;
  color: #9CA3AF;
}

/* Mobil sağ-alt Ingredients FAB: KALDIRILAN */
.ing-fab {
  display: none !important;
}

/* Çok dar ekranlarda biraz daha küçült */
@media (max-width: 420px) {
  .header-author-avatar {
    width: 44px;
    height: 44px;
  }

  main article h1 {
    font-size: 1.6rem;
  }

  .ing-fab svg {
    width: 38px;
    height: 38px;
  }

  /* Byline tek satır kalsın; ikonlar küçülsün; share düşmesin */
  .byline {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .byline .share-btn {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
  }

  .byline .share-btn svg {
    width: 16px;
    height: 16px;
  }

  .byline .c-icon svg {
    width: 16px;
    height: 16px;
  }

  .byline .c-count {
    font-size: 12px;
  }

  /* Yazar adı taşarsa kısalt (ellipsis) */
  .byline a:not(.share-btn) {
    max-width: 44vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
