/* ==========================================
   SINGLE POST — Halaman Detail Artikel
   ========================================== */

/* Breadcrumb */
.breadcrumb-bar {
  background: var(--putih);
  border-bottom: 1px solid var(--abu-gelap);
  padding: 8px 0;
  font-size: 12px;
}

.breadcrumb-bar .container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb-bar a {
  color: var(--biru);
  font-weight: 600;
}

.breadcrumb-bar a:hover {
  color: var(--merah);
}

.bc-sep {
  color: var(--abu-teks);
  font-size: 14px;
}

.bc-current {
  color: var(--abu-teks);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

/* Layout */
.single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ===== ARTICLE HEADER ===== */
.article-header {
  margin-bottom: 16px;
}

.article-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--biru-teks);
  margin: 10px 0;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--biru);
  color: var(--putih);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--hitam);
}

.article-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--abu-teks);
}

.article-share-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid var(--abu);
  border-bottom: 1px solid var(--abu);
}

.share-label {
  font-size: 11px;
  color: var(--abu-teks);
  font-weight: 600;
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: var(--putih) !important;
  transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.8; }

.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #000; }
.share-btn.wa { background: #25d366; color: #fff !important; }
.share-btn.ig { background: #e4405f; }
.share-btn.copy { background: var(--abu-teks); }

/* ===== FEATURED IMAGE ===== */
.article-featured-img {
  margin-bottom: 20px;
}

.featured-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #ccc;
  border-radius: 8px;
}

.article-featured-img figcaption {
  font-size: 11px;
  color: var(--abu-teks);
  margin-top: 6px;
  font-style: italic;
  text-align: center;
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.article-lead {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--abu);
}

.article-content p {
  margin-bottom: 14px;
  text-align: justify;
}

.article-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--biru-teks);
  margin: 24px 0 12px;
}

.article-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--biru-teks);
  margin: 20px 0 10px;
}

.article-content ul,
.article-content ol {
  margin: 10px 0 14px 18px;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 6px;
  text-align: justify;
}

.article-content blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: #f0f7ff;
  border-left: 4px solid var(--biru);
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  font-style: italic;
}

.article-content blockquote strong {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  color: var(--biru);
}

.article-content a {
  color: var(--biru);
  text-decoration: underline;
}

.article-content a:hover {
  color: var(--merah);
}

.article-inline-img {
  margin: 20px 0;
}

.inline-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #ccc;
  border-radius: 8px;
}

.article-inline-img figcaption {
  font-size: 11px;
  color: var(--abu-teks);
  margin-top: 6px;
  font-style: italic;
  text-align: center;
}

/* ===== TAGS ===== */
.article-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 24px 0;
  padding: 14px 0;
  border-top: 1px solid var(--abu);
  border-bottom: 1px solid var(--abu);
}

.tags-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--hitam);
  margin-right: 4px;
}

.tag-item {
  display: inline-block;
  padding: 4px 10px;
  background: var(--abu);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #555 !important;
  transition: all 0.2s;
}

.tag-item:hover {
  background: var(--biru);
  color: var(--putih) !important;
}

/* ===== SHARE BOTTOM ===== */
.article-share-bottom {
  margin: 20px 0;
  padding: 14px;
  background: var(--abu-muda);
  border-radius: 8px;
}

.article-share-bottom > span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--hitam);
}

.share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn-big {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--putih) !important;
  transition: opacity 0.2s;
}

.share-btn-big:hover { opacity: 0.85; }

.share-btn-big.fb { background: #1877f2; }
.share-btn-big.tw { background: #000; }
.share-btn-big.wa { background: #25d366; }
.share-btn-big.telegram { background: #0088cc; }

/* ===== RELATED ARTICLES ===== */
.related-section {
  margin: 28px 0;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.related-item {
  border-radius: 6px;
  overflow: hidden;
  background: var(--abu-muda);
}

.related-item a { display: block; }

.related-img {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #ccc;
}

.related-item h3 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  padding: 8px 10px 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item .meta {
  padding: 0 10px 8px;
}

/* ===== COMMENT ===== */
.comment-section {
  margin: 28px 0;
}

.comment-box {
  margin-bottom: 16px;
}

.comment-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--abu-gelap);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 13px;
  resize: vertical;
  transition: border-color 0.2s;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--biru);
}

.comment-btn {
  margin-top: 8px;
  padding: 8px 24px;
  background: var(--biru);
  color: var(--putih);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-btn:hover {
  background: var(--biru-gelap);
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--abu-muda);
  border-radius: 8px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--merah);
  color: var(--putih);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

.comment-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--hitam);
}

.comment-time {
  font-size: 10px;
  color: var(--abu-teks);
  margin: 2px 0 6px;
}

.comment-text {
  font-size: 13px;
  line-height: 1.5;
  color: #444;
}

/* ===== SIDEBAR WIDGETS ===== */
.sidebar-widget {
  background: var(--putih);
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.sidebar-ad .ad-placeholder {
  width: 100%;
  height: 200px;
  background: var(--abu);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 12px;
  color: var(--abu-teks);
  font-weight: 600;
}

.latest-list {
  display: grid;
  gap: 10px;
}

.latest-item {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--abu);
}

.latest-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.latest-item a {
  display: flex;
  gap: 10px;
}

.latest-img {
  width: 80px;
  min-height: 55px;
  background-size: cover;
  background-position: center;
  background-color: #ccc;
  border-radius: 4px;
  flex-shrink: 0;
}

.latest-body h4 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== TABLET (min 600px) ===== */
@media (min-width: 600px) {
  .featured-img { height: 320px; }
  .inline-img { height: 280px; }
  .related-grid { grid-template-columns: 1fr 1fr 1fr; }
  .related-img { height: 130px; }
  .article-title { font-size: 26px; }
}

/* ===== DESKTOP (min 900px) ===== */
@media (min-width: 900px) {
  .single-layout {
    grid-template-columns: 1fr 300px;
  }

  .featured-img { height: 400px; }
  .inline-img { height: 320px; }
  
  .article-title {
    font-size: 30px;
  }

  .article-content {
    font-size: 16px;
  }

  .bc-current {
    max-width: 400px;
  }

  .latest-img {
    width: 90px;
    min-height: 60px;
  }
}

/* ===== DESKTOP LARGE ===== */
@media (min-width: 1100px) {
  .featured-img { height: 450px; }
  .article-title { font-size: 32px; }
}
