/* =========================================================
   Blog — Мери Попинз
   ========================================================= */

/* ---------- Blog Hero ---------- */
.blog-hero {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--beige) 50%, var(--peach-light) 100%);
  padding: 10rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--peach-light) 0%, transparent 70%);
  z-index: 0;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--green-light) 0%, transparent 70%);
  z-index: 0;
}

.blog-hero__inner {
  position: relative;
  z-index: 1;
}

.blog-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3.5rem, 8vw, 6rem);
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.blog-hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Category Filter ---------- */
.blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 2.5rem 0 1rem;
}

.filter-pill {
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  border: 2px solid var(--beige-dark);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-pill:hover {
  border-color: var(--peach);
  color: var(--text);
  background: var(--peach-light);
}

.filter-pill.active {
  background: linear-gradient(135deg, #FF8C69, #FFB347);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 140, 105, 0.35);
}

/* ---------- Featured Post ---------- */
.featured-post {
  margin: 2.5rem auto 0;
  max-width: 1200px;
  width: 92%;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(61, 50, 40, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(61, 50, 40, 0.15);
}

.featured-card__image {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.featured-card__body {
  padding: 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E8742A;
  margin-bottom: 1rem;
}

.featured-card__badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8C69, #FFB347);
}

.featured-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.featured-card__excerpt {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.featured-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #8a796a;
  font-weight: 500;
}

.featured-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.featured-card__read {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #E8742A;
  transition: gap var(--transition);
}

.featured-card:hover .featured-card__read {
  gap: 0.85rem;
}

/* ---------- Posts Grid ---------- */
.blog-grid-section {
  max-width: 1200px;
  width: 92%;
  margin: 3rem auto 5rem;
}

.blog-grid-section__heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--beige-dark);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* ---------- Post Card ---------- */
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(61, 50, 40, 0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(61, 50, 40, 0.13);
}

.card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .card-image-wrap img {
  transform: scale(1.06);
}

.card-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--beige-dark);
}

.card-date {
  font-size: 0.8rem;
  color: #8a796a;
  font-weight: 500;
}

.card-read-time {
  font-size: 0.8rem;
  color: #8a796a;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text);
  transition: background var(--transition), transform var(--transition);
}

.post-card:hover .card-arrow {
  background: linear-gradient(135deg, #FF8C69, #FFB347);
  color: #fff;
  transform: translateX(3px);
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state__text {
  font-size: 1.05rem;
  color: var(--text-light);
}

/* =========================================================
   Single Post Page
   ========================================================= */

/* ---------- Post Hero ---------- */
.post-hero {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--beige) 50%, var(--peach-light) 100%);
  padding: 9rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.post-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--peach-light) 0%, transparent 70%);
  z-index: 0;
}

.post-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.post-hero__category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #E8742A;
  margin-bottom: 1.25rem;
}

.post-hero__category::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8C69, #FFB347);
}

.post-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.post-hero__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.9rem;
  color: #8a796a;
  font-weight: 500;
}

.post-hero__meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ---------- Post Featured Image ---------- */
.post-featured-image {
  max-width: 900px;
  width: 92%;
  margin: -2rem auto 0;
  position: relative;
  z-index: 2;
}

.post-featured-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(61, 50, 40, 0.15);
}

/* ---------- Post Content ---------- */
.post-content-wrap {
  max-width: 760px;
  width: 92%;
  margin: 3rem auto 4rem;
}

.post-content {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  margin-bottom: 0.4rem;
  color: var(--text-light);
}

.post-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--peach);
  background: var(--beige);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---------- Post Image Layouts ---------- */
.post-img-full {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(61, 50, 40, 0.1);
}

.post-img-full img {
  width: 100%;
  height: auto;
  display: block;
}

.post-img-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.post-img-duo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(61, 50, 40, 0.08);
}

.post-img-trio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  margin: 2rem 0;
}

.post-img-trio img:first-child {
  grid-row: 1 / 3;
  height: 100%;
}

.post-img-trio img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(61, 50, 40, 0.08);
}

.post-img-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}

.post-img-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(61, 50, 40, 0.07);
  transition: transform var(--transition);
}

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

.post-img-caption {
  text-align: center;
  font-size: 0.85rem;
  color: #8a796a;
  font-style: italic;
  margin-top: 0.5rem;
}

/* ---------- Post Pull Quote ---------- */
.post-pullquote {
  margin: 2.5rem -2rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, var(--peach-light), var(--beige));
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}

.post-pullquote::before {
  content: '\201C';
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 5rem;
  color: var(--peach);
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  line-height: 1;
}

.post-pullquote p {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Post CTA ---------- */
.post-cta {
  margin: 3rem 0;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--blue-light), var(--green-light));
  border-radius: var(--radius);
  text-align: center;
}

.post-cta__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.post-cta__text {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.post-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  background: linear-gradient(135deg, #FF8C69, #FFB347);
  color: #fff;
}

.post-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 105, 0.4);
}

/* ---------- Post Navigation ---------- */
.post-nav {
  max-width: 760px;
  width: 92%;
  margin: 0 auto 4rem;
}

.post-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition), gap var(--transition);
}

.post-nav__back:hover {
  color: #E8742A;
  gap: 0.75rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card__image {
    min-height: 260px;
  }

  .featured-card__body {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding: 8rem 0 2.5rem;
  }

  .blog-hero__title {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .filter-pill {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
  }

  .post-featured-image img {
    height: 240px;
    border-radius: 14px;
  }

  .post-img-duo {
    grid-template-columns: 1fr;
  }

  .post-img-duo img {
    height: 220px;
  }

  .post-img-trio {
    grid-template-columns: 1fr;
  }

  .post-img-trio img:first-child {
    grid-row: auto;
  }

  .post-img-trio img {
    height: 220px;
  }

  .post-img-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .post-pullquote {
    margin: 2rem -0.5rem;
    padding: 1.5rem 1.25rem;
  }

  .post-pullquote p {
    font-size: 1.1rem;
  }

  .post-hero {
    padding: 8rem 0 2rem;
  }

  .post-hero__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}
