/**
 * KabarKini — Detail Page Stylesheet
 * --------------------------------------
 * CSS tambahan khusus halaman artikel detail.
 * Pakai design token (var) yang sama dengan style.css.
 * Include SETELAH style.css di header.
 */

/* ============ CONTAINER & LAYOUT ============ */
.article-detail {
  padding: 40px 0 60px;
  background: var(--c-paper, #fdfcfa);
}

.article-detail__container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #666;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--c-red, #b91d3f);
}

.breadcrumb__sep {
  color: #ccc;
}

.breadcrumb__current {
  color: var(--c-ink, #0d0d0d);
  font-weight: 600;
}

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

.article-detail__header .story__badge {
  margin-bottom: 20px;
  display: inline-block;
}

.article-detail__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-ink, #0d0d0d);
  margin: 0 0 24px;
}

/* ============ BYLINE ============ */
.article-detail__byline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.byline__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.byline__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.byline__name {
  font-weight: 700;
  color: var(--c-ink, #0d0d0d);
  font-size: 15px;
}

.byline__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.byline__sep {
  color: #ddd;
}

/* ============ HERO IMAGE ============ */
.article-detail__hero {
  margin: 32px -24px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}

.article-detail__hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 520px;
}

@media (min-width: 768px) {
  .article-detail__hero {
    margin: 32px 0;
  }
}

/* ============ ARTICLE BODY ============ */
.article-detail__body {
  font-family: 'Manrope', sans-serif;
  color: var(--c-ink, #0d0d0d);
}

.article-detail__lead {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  line-height: 1.55;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

/* ============ SOURCE NOTICE ============ */
.source-notice {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, #fef9e7 0%, #fdf4d4 100%);
  border-left: 4px solid var(--c-yellow, #f5c518);
  border-radius: 4px;
  margin: 40px 0;
}

.source-notice__icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.source-notice__body {
  flex: 1;
}

.source-notice__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8a6d00;
  margin: 0 0 8px;
  font-weight: 600;
}

.source-notice__text {
  font-size: 15px;
  line-height: 1.55;
  color: #4a3800;
  margin: 0 0 16px;
}

.source-notice__text strong {
  color: var(--c-ink, #0d0d0d);
}

.source-notice__cta {
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  padding: 12px 20px;
}

/* ============ SHARE ROW ============ */
.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
  margin-top: 32px;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
}

.share-row__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-right: 8px;
  font-weight: 600;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--c-ink, #0d0d0d);
  background: white;
  transition: all 0.2s ease;
  cursor: pointer;
}

.share-btn:hover {
  background: var(--c-ink, #0d0d0d);
  color: white;
  border-color: var(--c-ink, #0d0d0d);
  transform: translateY(-1px);
}

.share-btn--wa:hover { background: #25D366; border-color: #25D366; }
.share-btn--tw:hover { background: #1a1a1a; border-color: #1a1a1a; }
.share-btn--fb:hover { background: #1877F2; border-color: #1877F2; }

/* ============ RELATED SECTION ============ */
.section--related {
  background: #faf8f4;
  padding: 60px 0;
  border-top: 1px solid #eee;
}

/* ============ MOBILE TWEAKS ============ */
@media (max-width: 640px) {
  .article-detail {
    padding: 24px 0 40px;
  }

  .article-detail__byline {
    flex-wrap: wrap;
  }

  .source-notice {
    flex-direction: column;
    padding: 20px;
  }

  .article-detail__lead {
    font-size: 18px;
  }
}
