/* =============================================
   ARTICLE DETAIL PAGE
   ============================================= */

/* ===== WRAPPER ===== */
.article-detail {
  padding: 32px 0 64px;
}

/* ===== BACK LINK ===== */
.article-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--yellow);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 28px;
  transition: gap .2s;
}

.article-detail__back:hover { gap: 10px; }

/* ===== HEADER ===== */
.article-detail__header {
  margin-bottom: 28px;
}

.article-detail__header h1 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
  margin-bottom: 20px;
}

/* ===== META ===== */
.article-detail__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.article-detail__meta .meta-author,
.article-detail__meta .meta-date,
.article-detail__meta .meta-share {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #6B7280;
  white-space: nowrap;
}

.article-detail__meta .meta-share {
  cursor: pointer;
  transition: color .2s;
}

.article-detail__meta .meta-share:hover { color: var(--yellow); }

/* ===== HERO IMAGE ===== */
.article-detail__img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 16 / 9;
}

.article-detail__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== BODY ===== */
.article-detail__body {
  max-width: 760px;
  margin: 0 auto;
}

.article-detail__lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 24px;
}

.article-detail__body p {
  font-size: 1rem;
  line-height: 1.85;
  color: #4B5563;
  margin-bottom: 20px;
}

.article-detail__body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin: 32px 0 12px;
}

/* ===== RELATED ARTICLES ===== */
.related-articles {
  background: #F9FAFB;
  padding: 48px 0 64px;
}

.related-articles__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 28px;
}

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

.related-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  text-decoration: none;
  display: block;
  transition: box-shadow .3s, transform .3s;
}

.related-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.09);
  transform: translateY(-3px);
}

.related-card__img {
  height: 180px;
  overflow: hidden;
}

.related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.related-card:hover .related-card__img img { transform: scale(1.06); }

.related-card__body {
  padding: 16px;
}

.related-card__body .article-badge {
  margin-bottom: 10px;
}

.related-card__body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}

.related-card:hover h3 { color: var(--yellow); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .article-detail { padding: 24px 0 48px; }
  .article-detail__img { border-radius: 10px; }
  .article-detail__meta { gap: 14px; }
  .article-detail__body { max-width: 100%; }
  .related-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 560px) {
  .related-grid { grid-template-columns: 1fr; }
}
