/* ==========================================================================
   Honeyvia Journal & Article Detail Page Styles
   ========================================================================== */

.article-detail-page {
  padding: 32px 0 80px;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}

.article-container {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Botanical Edge Features (Flowers & Bees in diverse postures along screen boundaries - Static) */
.article-edge-flower {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.article-edge-flower .edge-flower-img {
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(120, 80, 20, 0.12));
}

/* 1. Top Left - Flying Bee approaching blossom */
.article-edge-flower-top-left {
  top: 15px;
  left: -15px;
}
.article-edge-flower-top-left .edge-top-left-img {
  width: clamp(165px, 16vw, 240px);
  height: auto;
}

/* 2. Top Right - Perched Bee drinking nectar */
.article-edge-flower-top-right {
  top: 15px;
  right: -15px;
}
.article-edge-flower-top-right .edge-top-right-img {
  width: clamp(160px, 15.5vw, 230px);
  height: auto;
}

/* 3. Mid Left - Hovering Bee with spread wings */
.article-edge-flower-mid-left {
  top: 800px;
  left: -18px;
}
.article-edge-flower-mid-left .edge-mid-left-img {
  width: clamp(150px, 14.5vw, 220px);
  height: auto;
}

/* 4. Mid Right - Bee resting on green leaf */
.article-edge-flower-mid-right {
  top: 1140px;
  right: -18px;
}
.article-edge-flower-mid-right .edge-mid-right-img {
  width: clamp(150px, 14.5vw, 215px);
  height: auto;
}

/* 5. Lower Left - Bee climbing branch between jasmine flowers */
.article-edge-flower-low-left {
  bottom: 0;
  left: -18px;
}
.article-edge-flower-low-left .edge-low-left-img {
  width: clamp(155px, 15vw, 225px);
  height: auto;
}

/* 6. Lower Right - Bee landing with wings spread */
.article-edge-flower-low-right {
  bottom: 140px;
  right: -18px;
}
.article-edge-flower-low-right .edge-low-right-img {
  width: clamp(150px, 14.5vw, 215px);
  height: auto;
}

@media (max-width: 1200px) {
  .article-edge-flower .edge-flower-img {
    opacity: 0.88;
  }
}

@media (max-width: 992px) {
  /* On tablets, keep top 2 and hide mid/low edge flowers */
  .article-edge-flower-mid-left,
  .article-edge-flower-mid-right,
  .article-edge-flower-low-left,
  .article-edge-flower-low-right {
    display: none;
  }
  .article-edge-flower-top-left .edge-top-left-img,
  .article-edge-flower-top-right .edge-top-right-img {
    width: 130px;
    opacity: 0.75;
  }
}

@media (max-width: 520px) {
  .article-edge-flower {
    display: none;
  }
}

/* 1. Top Navigation: Back to Journal */
.article-top-nav {
  margin-bottom: 24px;
}

.back-to-journal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted, #6b7280);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--transition-fast, 0.2s ease), transform var(--transition-fast, 0.2s ease);
}

.back-to-journal-link:hover {
  color: var(--honey-dark, #b45309);
  transform: translateX(-4px);
}

/* 2. Article Header */
.article-header {
  margin-bottom: 28px;
}

.article-category-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(245, 155, 20, 0.14);
  color: var(--honey-dark, #b45309);
  margin-bottom: 16px;
}

.article-main-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(2.1rem, 3.8vw, 2.9rem);
  font-weight: 800;
  line-height: 1.22;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-subtitle {
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  line-height: 1.62;
  color: #4b5563;
  margin-bottom: 28px;
  max-width: 920px;
}

/* Author & Share Bar */
.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 32px;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #92400e;
  box-shadow: 0 2px 8px rgba(245, 155, 20, 0.2);
}

.author-text {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.article-date-meta {
  font-size: 0.85rem;
  color: #6b7280;
}

.article-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-share-article {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  color: #1f2937;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s ease);
}

.btn-share-article:hover {
  background: #fffdf5;
  border-color: #f59e0b;
  color: #b45309;
  box-shadow: 0 2px 10px rgba(245, 155, 20, 0.15);
}

/* 3. Featured Hero Image */
.article-hero-wrap {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 48px;
  background: #f3f4f6;
  max-height: 520px;
}

.article-hero-image {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* 4. Article Body Wrapper */
.article-body-wrapper {
  max-width: 820px;
  margin: 0 auto 64px;
}

.article-content-body {
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 1.1rem;
  line-height: 1.82;
  color: #374151;
}

.article-content-body p {
  margin-bottom: 24px;
}

.article-lead {
  font-size: 1.25rem;
  line-height: 1.75;
  color: #1f2937;
  font-weight: 400;
  margin-bottom: 28px;
}

.article-content-body h2 {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 42px 0 16px;
}

.article-content-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
  margin: 32px 0 14px;
}

.article-bullet-list {
  padding-left: 24px;
  margin-bottom: 28px;
}

.article-bullet-list li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.article-bullet-list strong {
  color: #111827;
}

/* Callout Box */
.article-callout-box {
  background: #fffdf5;
  border-left: 4.5px solid #f59e0b;
  border-radius: 0 16px 16px 0;
  padding: 24px 28px;
  margin: 36px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 4px 18px rgba(245, 155, 20, 0.08);
  border-top: 1px solid rgba(245, 155, 20, 0.15);
  border-right: 1px solid rgba(245, 155, 20, 0.15);
  border-bottom: 1px solid rgba(245, 155, 20, 0.15);
}

.callout-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.callout-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
}

.callout-body p {
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: #4b5563;
}

/* Honeyvia Product Pairing Card */
.article-honey-pairing-card {
  margin: 48px 0;
  background: linear-gradient(135deg, #ffffff 0%, #fffdf8 100%);
  border: 1.5px solid rgba(229, 155, 32, 0.3);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.pairing-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #b45309;
  background: #fef3c7;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.pairing-content-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
}

.pairing-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
}

.pairing-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pairing-category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--honey-primary, #f59b14);
  letter-spacing: 0.8px;
}

.pairing-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin: 4px 0 8px;
}

.pairing-desc {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: 16px;
}

.pairing-footer {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pairing-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #111827;
}

/* Article Footer CTA */
.article-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 32px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-top: 48px;
}

.footer-cta-left h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.footer-cta-left p {
  font-size: 0.92rem;
  color: #6b7280;
  margin-bottom: 0;
}

.footer-cta-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* 5. Related Articles Section */
.related-articles-section {
  border-top: 1.5px solid rgba(0, 0, 0, 0.08);
  padding-top: 48px;
  margin-top: 20px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.related-section-title {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0;
}

.view-all-journal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--honey-dark, #b45309);
  text-decoration: none;
  transition: gap var(--transition-fast, 0.2s ease);
}

.view-all-journal-link:hover {
  gap: 10px;
}

.related-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}

.news-card-thumb-link {
  display: block;
  margin: 6px 6px 0;
  width: calc(100% - 12px);
  overflow: hidden;
  border-radius: 14px;
  height: 200px;
}

.news-card-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.4s ease;
}

.news-card-thumb-link:hover img {
  transform: scale(1.04);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .pairing-content-grid {
    grid-template-columns: 1fr;
  }

  .pairing-img-wrap {
    max-width: 140px;
  }

  .article-footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
