/* ═══════════════════════════════════════════════════════════
   TrendRush24 — Article Page Styles
═══════════════════════════════════════════════════════════ */

/* Reading Progress */
#reading-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: 3px; background: var(--bg3);
}
#reading-bar {
  height: 100%;
  background: var(--acc-grad);
  width: 0%;
  transition: width .1s linear;
}

/* Article Layout */
.article-main { max-width: 1380px; margin: 0 auto; padding: 40px 24px 80px; }
.article-wrapper { max-width: 820px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text3);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text3); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--acc1); }

/* Article Header */
.article-header { margin-bottom: 32px; }
.article-badge {
  display: inline-flex; align-items: center;
  background: var(--acc-grad); color: #fff;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 16px;
}
.article-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}
.article-subtitle {
  font-size: 1.1rem; color: var(--text2);
  line-height: 1.7; margin-bottom: 24px;
}
.article-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.article-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--acc-grad);
  color: #fff; font-weight: 700; font-size: .875rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: .9rem; }
.author-role { font-size: .78rem; color: var(--text3); }
.article-info { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text3); flex-wrap: wrap; }

/* Share */
.share-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 20px 0;
}
.share-label { font-size: .82rem; color: var(--text3); font-weight: 600; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 100px;
  font-size: .8rem; font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text2);
  transition: all var(--transition);
  cursor: pointer;
}
.share-btn:hover { transform: translateY(-1px); }
.share-btn.twitter:hover { background: #1da1f2; border-color: #1da1f2; color: #fff; }
.share-btn.facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-btn.whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share-btn.copy:hover { background: var(--acc-grad); border-color: transparent; color: #fff; }

/* Featured Image */
.article-featured-img {
  margin: 24px 0; border-radius: 16px; overflow: hidden;
}
.article-featured-img img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
}
.img-caption {
  font-size: .78rem; color: var(--text3);
  padding: 8px 0; text-align: center;
  font-style: italic;
}

/* Article Content Typography */
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  margin: 32px 0;
}
.article-content p { margin-bottom: 1.5em; }
.article-content h2 {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -.02em;
  margin: 2em 0 .75em;
  color: var(--text);
}
.article-lead {
  font-size: 1.2rem !important;
  font-weight: 500;
  color: var(--text) !important;
  line-height: 1.75 !important;
  border-left: 4px solid var(--acc1);
  padding-left: 20px;
}
blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  background: var(--bg3);
  border-left: 4px solid var(--acc1);
  border-radius: 0 12px 12px 0;
}
blockquote p {
  font-size: 1.15rem; font-style: italic;
  color: var(--text); margin-bottom: .5em !important;
}
blockquote cite { font-size: .85rem; color: var(--text3); font-style: normal; }

/* Tags */
.article-tags {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 24px 0; padding: 20px 0;
  border-top: 1px solid var(--border);
}
.tag-label { font-size: .82rem; color: var(--text3); font-weight: 600; }
.article-tag {
  padding: 5px 14px; border-radius: 100px;
  background: var(--bg3); border: 1px solid var(--border);
  font-size: .8rem; color: var(--text2);
  transition: all var(--transition);
}
.article-tag:hover { border-color: var(--acc1); color: var(--acc1); }

/* Comments */
.comments-section {
  margin: 48px 0;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}
.comments-title {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 800;
  margin-bottom: 24px;
}
.comment-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px; margin-bottom: 32px;
}
.comment-form h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 16px;
}
.comment-form-fields { display: flex; flex-direction: column; gap: 12px; }
.comment-form-fields input,
.comment-form-fields textarea {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 12px 14px; font-size: .9rem; outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.comment-form-fields input:focus,
.comment-form-fields textarea:focus { border-color: var(--acc1); }
.btn-comment {
  align-self: flex-start;
  background: var(--acc-grad); color: #fff;
  font-weight: 700; font-size: .9rem;
  padding: 11px 24px; border-radius: 100px;
  transition: opacity .2s, transform .2s;
}
.btn-comment:hover { opacity: .88; transform: translateY(-1px); }
.comment-status { font-size: .82rem; margin-top: 8px; }
.comment-status.success { color: #69f0ae; }
.comment-status.error { color: var(--acc1); }

.comments-list { display: flex; flex-direction: column; gap: 20px; }
.comment-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  animation: fadeUp .4s ease both;
}
.comment-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg3); border: 2px solid var(--border);
  color: var(--text2); font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.comment-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.comment-meta strong { font-size: .9rem; }
.comment-meta span { font-size: .78rem; color: var(--text3); }
.comment-body p { font-size: .9rem; color: var(--text2); line-height: 1.6; }

/* Related */
.related-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-section .section-title { margin-bottom: 20px; }
.related-section .news-grid { grid-template-columns: repeat(3,1fr); }

@media (max-width: 768px) {
  .article-main { padding: 24px 16px 60px; }
  .article-meta-row { flex-direction: column; align-items: flex-start; }
  .related-section .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .related-section .news-grid { grid-template-columns: 1fr; }
}
