/* ==========================================================================
   ARTICLE HERO
   ========================================================================== */
.article-hero {
  height: 55vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-image: url('https://source.unsplash.com/1600x700/?indoor,plants,home');
  background-size: cover;
  background-position: center;
  margin-top: 80px;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(8, 28, 21, 0.9) 0%, rgba(8, 28, 21, 0.3) 100%);
}

.article-hero-content {
  position: relative;
  z-index: 10;
  padding-bottom: 4rem;
  color: var(--clr-white);
  animation: fadeIn 1s ease both;
  width: 100%;
}

.article-hero-title {
  color: var(--clr-white);
  font-size: 3.5rem;
  margin-bottom: 1rem;
  max-width: 800px;
  line-height: 1.1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
  flex-wrap: wrap;
}

.category-tag {
  background: var(--clr-green-deep);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-weight: 600;
}

/* ==========================================================================
   READING PROGRESS BAR
   ========================================================================== */
.reading-progress-container {
  position: fixed;
  top: 80px; /* Below navbar */
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 999;
}

.reading-progress-bar {
  height: 100%;
  background: var(--clr-green-deep);
  width: 0%;
  transition: width 0.1s ease;
}

/* ==========================================================================
   ARTICLE LAYOUT
   ========================================================================== */
.article-layout {
  display: flex;
  gap: 4rem;
  padding-top: 4rem;
}

.article-main {
  width: 70%;
}

.article-sidebar {
  width: 30%;
}

.sidebar-sticky {
  position: sticky;
  top: 100px;
}

/* ==========================================================================
   TOC & BODY STYLES
   ========================================================================== */
.toc {
  background: var(--clr-off-white);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  border-left: 4px solid var(--clr-green-deep);
}

.toc h3 {
  margin-bottom: 1rem;
}

.toc ul {
  padding-left: 1.5rem;
  list-style: decimal;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: var(--clr-text-main);
}

.toc a:hover {
  color: var(--clr-green-deep);
  text-decoration: underline;
}

.rich-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--clr-text-main);
}

.rich-content h2 {
  font-size: 2rem;
  margin: 3rem 0 1.5rem 0;
  color: var(--clr-green-forest);
}

.rich-content p {
  margin-bottom: 1.5rem;
}

.content-img {
  width: 100%;
  border-radius: 12px;
  margin: 2rem 0;
}

.care-callout {
  background: var(--clr-green-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border: 1px solid rgba(45, 106, 79, 0.2);
}

.care-callout h4 {
  color: var(--clr-green-deep);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pull-quote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--clr-green-deep);
  border-left: 4px solid var(--clr-green-deep);
  padding-left: 2rem;
  margin: 3rem 0;
  line-height: 1.4;
}

.article-bottom-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
}

.tags-list {
  display: flex;
  gap: 0.5rem;
}

.tags-list .tag {
  background: var(--clr-off-white);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
}

/* ==========================================================================
   SIDEBAR COMPONENTS
   ========================================================================== */
.author-card {
  text-align: center;
  background: var(--clr-off-white);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.author-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.author-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--clr-green-deep);
  margin-bottom: 0.5rem;
}

.shop-featured {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.shop-feat-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.shop-feat-item:last-child { margin-bottom: 0; }

.shop-feat-item img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.shop-feat-item h5 {
  margin: 0 0 0.25rem 0;
  font-family: var(--font-body);
}

.shop-feat-item .price {
  color: var(--clr-green-deep);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */
.comments-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--clr-border);
}

.comment-list {
  margin-bottom: 3rem;
}

.comment-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--clr-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--clr-green-deep);
  flex-shrink: 0;
}

.comment-content {
  flex-grow: 1;
  background: var(--clr-off-white);
  padding: 1.5rem;
  border-radius: 12px;
  border-top-left-radius: 0;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.comment-name {
  font-weight: 600;
  color: var(--clr-green-forest);
}

.comment-date {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

/* Comment Form */
.comment-form {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  padding: 2rem;
  border-radius: 12px;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--clr-green-deep);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
  margin-bottom: 1.5rem;
}

@keyframes newComment {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.comment-item.new {
  animation: newComment 0.5s ease both;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .article-layout { flex-direction: column; }
  .article-main, .article-sidebar { width: 100%; }
  .sidebar-sticky { position: static; }
}

@media (max-width: 768px) {
  .article-hero-title { font-size: 2.5rem; }
  .form-row { flex-direction: column; gap: 1rem; }
}
