/*
 * Yogalates Atelier — Single Post Styles
 * Файл: child-theme/assets/css/ya-single-post.css
 *
 * Зависи от CSS variables дефинирани в :root на темата:
 *   --primary-color, --primary-color-hover, --light-bg,
 *   --primary-font-family, --heading-color, --body-color
 */

/* ── 1. HERO ──────────────────────────────────────────────────────────────── */

.ya-single-hero {
  background: var(--light-bg);
  padding: 124px 40px 32px;
}

.ya-single-hero__inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* Breadcrumb */
.ya-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  font-family: var(--primary-font-family, 'Manrope', sans-serif);
  font-size: 16px;
  color: var(--primary-color, #94a7ae);
}

.ya-breadcrumb a:link,
.ya-breadcrumb a:visited {
  color: var(--body-color);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.ya-breadcrumb a:hover {
  color: var(--heading-color, #161616);
}

.ya-breadcrumb span[aria-hidden] {
  opacity: 0.5;
}

.ya-breadcrumb__current {
  color: var(--heading-color, #161616);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* Категория badge */
.ya-single-hero__cat {
  display: inline-block;
  font-family: var(--primary-font-family, 'Manrope', sans-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color, #94a7ae);
  background: #f0eae4;
  padding: 5px 12px;
  text-decoration: none;
  margin-bottom: 16px;
}

.ya-single-hero__cat:hover {
  background: #e0dad2;
}

/* Заглавие */
.ya-single-hero__title {
  font-family: var(--primary-font-family);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--heading-color, #161616);
  margin: 0 0 24px;
}

/* ── 2. META ЛЕНТА ────────────────────────────────────────────────────────── */

.ya-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--primary-font-family);
  font-size: 15px;
  color: var(--body-color);
  padding-top: 24px;
  border-top: 0.5px solid #e0dad2;
  font-weight: 500;
}

.ya-single-meta__item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ya-single-meta__item .ti {
  font-size: 14px;
}

.ya-single-meta__sep {
  opacity: 0.4;
}

.ya-single-meta__cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ya-single-meta__cat-pill {
  background: #fff;
  color: #1a2e35;
  font-size: 15px;
  padding: 5px 12px;
  text-decoration: none;
  transition: background 0.2s ease;
  border: 1px solid #dce6e9;
  border-radius: 99px;
}

.ya-single-meta__cat-pill:hover {
  background: #1a2e35;
  color: #fff;
}

/* ── 3. FEATURED IMAGE ────────────────────────────────────────────────────── */

.ya-single-featured-img {
  width: 100%;
  margin: 0 auto;
  display: block;
  overflow: hidden;
  height: 480px;
  background: var(--light-bg);
}

.ya-single-featured-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
}

/* ── 4. ARTICLE BODY ──────────────────────────────────────────────────────── */

.ya-single-content {
  background: var(--light-bg);
  padding: 48px 40px 40px;
}

.ya-single-content__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.ya-article-body {
  font-family: var(--primary-font-family, 'Manrope', sans-serif);
  font-size: 18px;
  line-height: 1.85;
  color: var(--body-color, #303030);
}

.ya-article-body p {
  margin-bottom: 20px;
}

.ya-article-body h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--heading-color, #161616);
  margin: 40px 0 16px;
  letter-spacing: -0.2px;
}

.ya-article-body h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--heading-color, #161616);
  margin: 32px 0 12px;
}

.ya-article-body ul,
.ya-article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.ya-article-body li {
  margin-bottom: 8px;
}

.ya-article-body blockquote {
  border-left: 2px solid var(--primary-color, #94a7ae);
  padding: 12px 20px;
  margin: 28px 0;
  background: #f0eae4;
  font-style: italic;
  color: var(--body-color, #303030);
}

.ya-article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 28px 0;
}

.ya-article-body a {
  color: var(--primary-color, #94a7ae);
  text-decoration: underline;
  text-decoration-color: rgba(148, 167, 174, 0.4);
}

.ya-article-body a:hover {
  text-decoration-color: var(--primary-color, #94a7ae);
}

/* ── 5. AUTHOR BOX ────────────────────────────────────────────────────────── */

.ya-single-author {
  background: #faf8f5;
  padding: 0 40px 48px;
}

.ya-single-author__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 0.5px solid #e0dad2;
  padding: 24px;
  background: #fff;
}

/* Avatar */
.ya-single-author__avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-color, #94a7ae);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ya-single-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ya-single-author__initials {
  font-family: var(--primary-font-family, 'Manrope', sans-serif);
  font-size: 20px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 1px;
}

/* Info */
.ya-single-author__info {
  flex: 1;
}

.ya-single-author__label {
  font-family: var(--primary-font-family, 'Manrope', sans-serif);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color, #94a7ae);
  margin-bottom: 4px;
}

.ya-single-author__name {
  font-family: var(--primary-font-family, 'Manrope', sans-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--heading-color, #161616);
  margin-bottom: 8px;
}

.ya-single-author__name a {
  color: inherit;
  text-decoration: none;
}

.ya-single-author__name a:hover {
  color: var(--primary-color, #94a7ae);
}

.ya-single-author__bio {
  font-family: var(--primary-font-family, 'Manrope', sans-serif);
  font-size: 13px;
  line-height: 1.7;
  color: var(--body-color, #303030);
  opacity: 0.8;
  margin-bottom: 12px;
}

.ya-single-author__roles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ya-single-author__role-pill {
  background: #f0eae4;
  color: var(--primary-color, #94a7ae);
  font-family: var(--primary-font-family, 'Manrope', sans-serif);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
}

/* ── 6. RELATED POSTS ────────────────────────────────────────────────────── */

.ya-single-related {
  background: var(--light-bg);
  padding: 56px 40px;
}

.ya-single-related__inner {
  max-width: 1000px;
  margin: 0 auto;
}
.ya-single-related a.ya-blog-card {
  background: #fff;
}

.ya-single-related__eyebrow {
  font-family: var(--primary-font-family, 'Manrope', sans-serif);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-color, #94a7ae);
  text-align: center;
  margin-bottom: 8px;
}

.ya-single-related__title {
  font-family: var(--primary-font-family, 'Manrope', sans-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--heading-color, #161616);
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: -0.3px;
}

/* Ресетваме стила на blog grid картите вътре в related секцията */
.ya-single-related .ya-blog-card {
  background: #faf8f5;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .ya-single-hero {
    padding: 72px 20px 20px;
  }

  .ya-single-hero__title {
    font-size: 24px;
  }

  .ya-single-featured-img {
    height: 260px;
  }

  .ya-single-content {
    padding: 32px 20px;
  }

  .ya-single-author {
    padding: 0 20px 32px;
  }

  .ya-single-author__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ya-single-author__roles {
    justify-content: center;
  }

  .ya-single-related {
    padding: 40px 20px;
  }

  .ya-breadcrumb__current {
    max-width: 140px;
  }
}
