/* =========================================
   БудьЗдрав — Article Page Styles
   Page-specific CSS for blog article pages
   ========================================= */

/* READING PROGRESS BAR */
.progress-bar {
  position: fixed;
  top: 61px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(201,168,76,0.1);
  z-index: 99;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width .1s linear;
}

/* ARTICLE HERO */
.article-hero {
  padding: 100px 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.breadcrumb a {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--warm-grey);
  text-decoration: none;
  transition: color .3s;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep {
  color: rgba(138,130,120,0.4);
  font-size: 11px;
}
.breadcrumb-current {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.article-category {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp .7s forwards .1s;
}

.article-category a {
  color: inherit;
  text-decoration: none;
}
.article-category::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--parchment);
  max-width: 860px;
  opacity: 0;
  animation: fadeUp .7s forwards .2s;
}
.article-title em { font-style: italic; color: var(--gold); }

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp .7s forwards .3s;
  flex-wrap: wrap;
}

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

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--moss), rgba(61,90,62,0.4));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--sage);
}

.author-info {}
.author-name {
  font-size: 12px;
  font-weight: 400;
  color: var(--parchment);
}
.author-role {
  font-size: 10px;
  color: var(--warm-grey);
  margin-top: 1px;
}

.meta-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.meta-item {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--warm-grey);
}
.meta-item strong { color: var(--parchment); font-weight: 400; }

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.article-tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid rgba(122,158,126,0.3);
  padding: 5px 12px;
}

/* HERO IMAGE */
.article-hero-image {
  margin-top: 48px;
  width: 100%;
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, #1a2a1a 0%, #0e160e 40%, #1c2010 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn .9s forwards .4s;
}

.hero-image-inner {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(61,90,62,0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 40%, rgba(45,70,45,0.3) 0%, transparent 50%);
}

.hero-image-caption {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(138,130,120,0.5);
}

/* ARTICLE BODY LAYOUT */
.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  padding: 0 60px;
  align-items: start;
}

/* ARTICLE CONTENT */
.article-content {
  padding: 60px 80px 60px 0;
  border-right: 1px solid var(--border);
}

/* Lead paragraph */
.article-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(245,240,232,0.9);
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

/* Body text */
.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--parchment);
  margin: 52px 0 20px;
}
.article-body h2 em { font-style: italic; color: var(--gold); }

.article-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--parchment);
  margin: 36px 0 14px;
}

.article-body p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(245,240,232,0.78);
  margin-bottom: 20px;
}

.article-body strong { font-weight: 500; color: var(--parchment); }

.article-body a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  transition: border-color .2s;
}
.article-body a:hover { border-bottom-color: var(--gold); }

/* Pullquote */
.pullquote {
  margin: 40px 0;
  padding: 32px 36px;
  border-left: 3px solid var(--gold);
  background: rgba(201,168,76,0.04);
}
.pullquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--parchment);
  margin-bottom: 0;
}
.pullquote cite {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-grey);
  font-style: normal;
}

/* Info box */
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin: 36px 0;
}
.info-box-title {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-box-title::before { content: '\2726'; font-size: 8px; }
.info-box ul { list-style: none; }
.info-box ul li {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245,240,232,0.75);
  padding: 6px 0;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  padding-left: 16px;
  position: relative;
}
.info-box ul li:last-child { border-bottom: none; }
.info-box ul li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 10px;
  top: 9px;
}

/* Herb mention cards in article */
.herb-mention-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 36px 0;
}

.herb-mention {
  background: var(--surface);
  padding: 24px;
  border-bottom: 2px solid transparent;
  transition: border-color .25s, background .25s;
  text-decoration: none;
  display: block;
  cursor: none;
}
.herb-mention:hover { border-bottom-color: var(--gold); background: var(--surface2); }

.herb-mention-latin {
  font-size: 10px;
  font-style: italic;
  color: var(--warm-grey);
  margin-bottom: 6px;
}

.herb-mention-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--parchment);
  margin-bottom: 8px;
}

.herb-mention-desc {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--warm-grey);
}

/* Inline image */
.article-image {
  margin: 40px 0;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.article-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: linear-gradient(to top, rgba(14,12,9,0.8), transparent);
  font-size: 11px;
  color: var(--warm-grey);
  letter-spacing: 0.05em;
}

/* Article footer */
.article-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.article-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

a.article-footer-tag {
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-grey);
  border: 1px solid var(--border);
  padding: 6px 16px;
  transition: all .25s;
  cursor: none;
}
a.article-footer-tag:hover { border-color: var(--gold); color: var(--gold); }

.article-share {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.share-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-grey);
}

.share-btns {
  display: flex;
  gap: 8px;
}

.share-btn {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--warm-grey);
  border: 1px solid var(--border);
  padding: 8px 18px;
  cursor: none;
  text-decoration: none;
  transition: all .25s;
}
.share-btn:hover { border-color: var(--gold); color: var(--gold); }

/* SIDEBAR */
.article-sidebar { padding: 60px 0 60px 48px; }

.sidebar-widget { margin-bottom: 40px; }

.sidebar-widget-title {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(138,130,120,0.5);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* TOC */
.toc-list { list-style: none; }

.toc-item a {
  display: block;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 300;
  color: var(--warm-grey);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 14px;
  transition: all .25s;
  line-height: 1.4;
}
.toc-item a:hover,
.toc-item a.active {
  color: var(--gold);
  border-left-color: var(--gold);
}
.toc-item.sub a {
  padding-left: 24px;
  font-size: 11px;
  opacity: 0.7;
}

/* Related articles */
.related-article {
  display: block;
  text-decoration: none;
  cursor: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: background .25s;
}
.related-article:last-child { border-bottom: none; }

.related-article-cat {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.related-article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.2;
  margin-bottom: 6px;
  transition: color .25s;
}
.related-article:hover .related-article-title { color: var(--gold); }

.related-article-meta {
  font-size: 10px;
  color: var(--warm-grey);
}

/* Newsletter widget */
.newsletter-widget {
  background: var(--moss);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.newsletter-widget::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(245,240,232,0.1);
  border-radius: 50%;
}
.newsletter-widget::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(245,240,232,0.08);
  border-radius: 50%;
}

.newsletter-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 10px;
  line-height: 1.2;
}
.newsletter-title em { font-style: italic; color: var(--gold-light); }

.newsletter-desc {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(245,240,232,0.65);
  margin-bottom: 20px;
}

.newsletter-input {
  width: 100%;
  background: rgba(245,240,232,0.1);
  border: 1px solid rgba(245,240,232,0.2);
  outline: none;
  padding: 12px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: var(--cream);
  margin-bottom: 8px;
  transition: border-color .3s;
}
.newsletter-input::placeholder { color: rgba(245,240,232,0.35); }
.newsletter-input:focus { border-color: var(--gold-light); }

.newsletter-btn {
  width: 100%;
  background: var(--gold);
  border: none;
  padding: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: none;
  transition: background .3s;
}
.newsletter-btn:hover { background: var(--gold-light); }

.newsletter-note {
  font-size: 10px;
  color: rgba(245,240,232,0.3);
  margin-top: 8px;
  text-align: center;
}

/* Herb of day widget */
.herb-of-day {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
}

.herb-of-day-visual {
  width: 100%;
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, rgba(61,90,62,0.4), rgba(14,12,9,0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.herb-of-day-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  color: rgba(201,168,76,0.15);
}

.herb-of-day-latin {
  font-size: 10px;
  font-style: italic;
  color: var(--warm-grey);
  margin-bottom: 6px;
}

.herb-of-day-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--parchment);
  margin-bottom: 8px;
}

.herb-of-day-desc {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--warm-grey);
  margin-bottom: 16px;
}

.herb-of-day-link {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap .25s;
}
.herb-of-day-link:hover { gap: 14px; }
.herb-of-day-link::after { content: '\2192'; }

/* MORE ARTICLES */
.more-articles {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 60px 80px;
  border-top: 1px solid var(--border);
}

.more-articles-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--parchment);
  margin-bottom: 36px;
}
.more-articles-title em { font-style: italic; color: var(--gold); }

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.more-card {
  background: var(--surface);
  padding: 32px;
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid transparent;
  cursor: none;
  text-decoration: none;
  transition: border-color .3s, background .3s;
}
.more-card:hover { border-bottom-color: var(--gold); background: var(--surface2); }

.more-card-cat {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.more-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.2;
  margin-bottom: 12px;
  flex: 1;
}

.more-card-excerpt {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--warm-grey);
  margin-bottom: 20px;
}

.more-card-meta {
  font-size: 10px;
  color: rgba(138,130,120,0.5);
  padding-top: 16px;
  border-top: 1px solid rgba(201,168,76,0.08);
  display: flex;
  gap: 16px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
  .article-hero { padding: 90px 24px 0; }
  .article-meta-row { gap: 16px; }
  .article-tags { display: none; }

  .article-layout {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  .article-content {
    padding: 40px 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .article-sidebar { padding: 40px 0; }

  /* TOC widget hidden on mobile */
  .sidebar-widget.toc-widget { display: none; }

  .herb-mention-grid { grid-template-columns: 1fr; }

  .more-articles { padding: 40px 24px 60px; }
  .more-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .article-title { font-size: 36px; }
  .article-lead { font-size: 18px; }
  .article-body h2 { font-size: 28px; }
  .article-hero-image { aspect-ratio: 4/3; }
}
