/* ==============================================================================
   INDOLEKOH NEWS - ARTICLE READER STYLESHEET
   ============================================================================== */

/* Sticky Top Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-gold));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Article Container */
.article-reader-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5rem;
}

/* Breadcrumbs */
.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.article-breadcrumbs a:hover {
  color: var(--accent-primary);
}

.breadcrumb-sep {
  opacity: 0.5;
}

/* Header Area */
.article-header {
  margin-bottom: 2rem;
}

.article-category-badge {
  margin-bottom: 1rem;
}

.article-headline {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.article-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-weight: 400;
  margin-bottom: 1.75rem;
  border-left: 3px solid var(--border-strong);
  padding-left: 1.25rem;
}

/* Author & Publication Info */
.article-meta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.article-author-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.article-author-photo {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.article-author-info {
  display: flex;
  flex-direction: column;
}

.article-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.article-author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-timestamp-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-dot {
  font-size: 0.6rem;
  opacity: 0.5;
}

/* Feature Image */
.article-hero-figure {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.article-hero-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-hero-caption {
  font-size: 0.825rem;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  font-style: italic;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

/* ==============================================================================
   STICKY READER TOOLBAR (AUDIO & FONT SIZE CONTROLS)
   ============================================================================== */

.reader-toolbar {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

/* Reader Reading Indicator */
.reader-reading-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.reader-reading-indicator strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Reader Tools (Font Size & Share) */
.reader-utility-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.font-size-adjuster {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  overflow: hidden;
}

.font-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.font-btn:hover, .font-btn.active {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.font-btn + .font-btn {
  border-left: 1px solid var(--border-color);
}

.action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.action-pill-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.action-pill-btn.bookmarked {
  background-color: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

/* ==============================================================================
   ARTICLE BODY & TYPOGRAPHY
   ============================================================================== */

.article-content-body {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: font-size 0.2s ease;
}

/* Font Size Modifiers */
.article-content-body.size-sm { font-size: 1.05rem; }
.article-content-body.size-md { font-size: 1.15rem; }
.article-content-body.size-lg { font-size: 1.3rem; }

.article-content-body p {
  margin-bottom: 1.75rem;
}

/* Drop Cap for first paragraph */
.article-content-body > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  float: left;
  font-size: 4rem;
  line-height: 0.85;
  padding-top: 4px;
  padding-right: 12px;
  padding-bottom: 2px;
  color: var(--accent-primary);
  font-weight: 700;
}

.article-content-body h2, 
.article-content-body h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-content-body h2 {
  font-size: 1.85rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.article-content-body h3 {
  font-size: 1.5rem;
}

/* Editorial Pull Quote */
.article-pullquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--accent-primary);
  background-color: var(--bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
}

.article-pullquote::before {
  content: "“";
  font-family: var(--font-serif);
  font-size: 5rem;
  position: absolute;
  top: -1.25rem;
  left: 0.75rem;
  color: var(--accent-primary);
  opacity: 0.2;
  pointer-events: none;
}

.pullquote-text {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.pullquote-author {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Callout Box */
.article-callout {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.callout-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  white-space: pre-line;
  line-height: 1.6;
}

/* Callout Source Link Footer */
.callout-source-footer {
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-color);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--text-muted);
}

.callout-source-footer .source-label,
.article-source-anchor-box .source-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.callout-source-footer a.source-anchor-link,
.article-source-anchor-box a.source-anchor-link {
  color: var(--accent-gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all var(--transition-fast);
}

.callout-source-footer a.source-anchor-link:hover,
.article-source-anchor-box a.source-anchor-link:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

.article-source-anchor-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  margin: -1.5rem 0 2.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
}

/* Tags Section */
.article-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 3rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.article-tag-chip {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.article-tag-chip:hover {
  background-color: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

/* ==============================================================================
   COMMENTS SECTION
   ============================================================================== */

.comments-container {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--text-primary);
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.comments-header h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-primary);
}

.comment-form {
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.comment-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-input, .comment-textarea {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  width: 100%;
}

.comment-textarea {
  min-height: 90px;
  resize: vertical;
  margin-bottom: 1rem;
}

.comment-input:focus, .comment-textarea:focus {
  border-color: var(--accent-primary);
}

.comment-submit-btn {
  background-color: var(--accent-navy);
  color: var(--text-inverted);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color var(--transition-fast);
}

.comment-submit-btn:hover {
  background-color: var(--accent-primary);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.6rem;
  padding-bottom: 0.5rem;
  padding-top: 0.25rem;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

/* Custom Scrollbar for Comments List */
.comments-list::-webkit-scrollbar {
  width: 6px;
}

.comments-list::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
}

.comments-list::-webkit-scrollbar-thumb {
  background-color: var(--border-strong);
  border-radius: var(--radius-full);
}

.comments-list::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-primary);
}

.comment-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-item:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.commenter-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.comment-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==============================================================================
   RELATED STORIES SECTION
   ============================================================================== */

.related-stories-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .article-headline {
    font-size: 2rem;
  }
  .article-subtitle {
    font-size: 1.05rem;
  }
  .reader-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .comment-inputs-row {
    grid-template-columns: 1fr;
  }
  .comments-list {
    max-height: 400px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Sembunyikan elemen rujukan sumber luar dan tautan sumber asli */
.callout-source-footer,
.article-source-anchor-box,
.article-source-callout,
.source-label,
.source-anchor-link,
[data-source-block] {
  display: none !important;
}
