/* ═══════════════════════════════════════
   BERITA DETAIL — berita-detail.css
═══════════════════════════════════════ */
.detail-wrap {
  background: #f8fafc;
  min-height: 100vh;
  padding-top: 64px;
}
.detail-inner {
  max-width: 896px;
  margin: 0 auto;
  padding: 2rem 1rem 5rem;
}
@media (min-width: 640px) { .detail-inner { padding: 2rem 1.5rem 5rem; } }

/* Back button */
.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  padding: 8px 16px;
  border-radius: 12px;
  color: #2563eb;
  font-weight: 700;
  background: #fff;
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 2px 8px rgba(37,99,235,0.10);
  transition: all 0.2s;
  text-decoration: none;
  opacity: 0;
  animation: fadeInLeft 0.4s ease forwards;
}
.detail-back-btn:hover {
  background: #eff6ff;
  transform: translateX(-2px);
}

/* Article card */
.detail-article {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 8px 40px rgba(15,23,42,0.09);
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}
.detail-top-bar { height: 6px; }
.detail-hero-img-wrap {
  position: relative;
  overflow: hidden;
  height: clamp(200px, 40vw, 380px);
}
.detail-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.detail-hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(15,23,42,0.65) 0%, transparent 55%);
}
.detail-hero-cat {
  position: absolute;
  bottom: 20px; left: 24px;
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
}
.detail-hero-views {
  position: absolute;
  bottom: 20px; right: 24px;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.78rem; font-weight: 600;
}

/* Content */
.detail-body { padding: 1.25rem; }
@media (min-width: 640px) { .detail-body { padding: 2rem; } }
@media (min-width: 768px) { .detail-body { padding: 2.5rem; } }

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.detail-meta-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 800;
}
.detail-meta-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-weight: 600;
}
.detail-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.detail-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
}
.detail-isi p {
  color: #334155;
  line-height: 1.95;
  font-size: 0.97rem;
  margin-bottom: 1.4rem;
}
.detail-isi p:last-child { margin-bottom: 0; }
.detail-article-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.detail-footer-kat {
  display: flex; align-items: center; gap: 8px;
}
.detail-footer-kat-label { font-size: 0.78rem; color: #94a3b8; font-weight: 600; }
.detail-footer-kat-badge { font-size: 0.75rem; padding: 4px 10px; border-radius: 8px; font-weight: 800; }
.detail-footer-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

/* Berita lainnya */
.related-section { margin-top: 3.5rem; }
.related-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 1.75rem;
}
.related-title { font-size: 1.15rem; font-weight: 900; color: #0f172a; }
.related-bars { display: flex; align-items: center; gap: 6px; }
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(3,1fr); } }

.related-card {
  display: block;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  height: 100%;
}
.related-card:hover { transform: translateY(-6px); }
.related-card-top { height: 5px; }
.related-card-img-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.related-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.related-card:hover .related-card-img { transform: scale(1.10); }
.related-card-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(15,23,42,0.45) 0%, transparent 55%);
}
.related-card-cat {
  position: absolute;
  bottom: 10px; left: 10px;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
}
.related-card-body { padding: 1rem; }
.related-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.related-card:hover .related-card-title { color: #2563eb; }
.related-card-date {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: #94a3b8;
}

/* Not found */
.detail-notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  padding-top: 80px;
}
.detail-notfound-icon {
  width: 80px; height: 80px;
  border-radius: 1rem;
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
