/* ==========================================
   CONTENT AREA (archives, single, page)
   ========================================== */

/* Archive header */
.archive-header {
  margin-bottom: var(--space-lg);
}
.archive-title {
  font-size: 1.5rem;
  font-weight: 700;
}
.archive-description {
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
}

/* ==========================================
   SINGLE POST
   ========================================== */

.single-post .entry-content { padding: var(--space-lg) 0; }
.post-thumbnail img {
  width: 100%;
  border-radius: var(--radius-md);
}
.entry-header { margin-bottom: var(--space-md); }
.entry-title {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.3;
  margin: var(--space-sm) 0;
}
.entry-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
}
.entry-meta a { color: var(--newsmath-primary); }
.entry-meta .posted-in { display: block; margin-top: var(--space-xs); }
.entry-meta .posted-in a {
  color: var(--newsmath-primary);
  font-weight: 500;
}
.entry-content { font-size: 1rem; line-height: 1.75; }
.entry-content p { margin-bottom: 1.2em; }
.entry-tags { margin: var(--space-lg) 0; }
.tags-label { font-weight: 600; margin-right: var(--space-xs); }
.entry-footer { margin: var(--space-lg) 0; }

/* ==========================================
   COMMENTS — Luxury Modern
   ========================================== */

.comments-area {
  margin: var(--space-2xl) 0 var(--space-xl);
  padding: var(--space-xl);
  background: linear-gradient(180deg, #fbfaf7 0%, #f5f2ec 100%);
  border: 1px solid rgba(201,162,75,.25);
  border-radius: var(--radius-xl);
}
.comments-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}
.comment-list { margin-bottom: var(--space-xl); list-style: none; padding: 0; }
.comment { margin-bottom: var(--space-md); }
.comment-body {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.comment-meta { font-size: var(--font-size-xs); color: var(--color-text-light); margin-bottom: var(--space-sm); }
.comment-content { font-size: .92rem; line-height: 1.7; }

/* Reply title */
.comment-reply-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-text);
  position: relative;
  margin-bottom: var(--space-xs);
  padding-bottom: var(--space-sm);
}
.comment-reply-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  background: var(--color-luxury-gold);
}

/* Notes text */
.comment-notes-friendly {
  font-size: var(--font-size-md);
  color: var(--color-text);
  margin: var(--space-md) 0 var(--space-xs);
}
.comment-notes-responsibility {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
}

/* Form card */
.comment-form-luxury {
  background: var(--color-white);
  border: 1px solid rgba(201,162,75,.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 10px 30px rgba(20,20,20,.05);
}
.comment-form-luxury p { margin: 0 0 var(--space-md); }
.comment-form-luxury label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}
.comment-form-luxury input[type="text"],
.comment-form-luxury input[type="email"],
.comment-form-luxury input[type="url"],
.comment-form-luxury textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fafafa;
  font-size: var(--font-size-md);
  font-family: var(--font-sans);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.comment-form-luxury textarea { resize: vertical; min-height: 140px; }
.comment-form-luxury input[type="text"]:focus,
.comment-form-luxury input[type="email"]:focus,
.comment-form-luxury input[type="url"]:focus,
.comment-form-luxury textarea:focus {
  outline: none;
  border-color: var(--color-luxury-gold);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(201,162,75,.15);
}
.comment-form-luxury input::placeholder,
.comment-form-luxury textarea::placeholder { color: var(--color-text-lighter); }

/* Cookies checkbox */
.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}
.comment-form-cookies-consent input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  border: 1.5px solid var(--color-border);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  transition: border-color .2s ease, background .2s ease;
}
.comment-form-cookies-consent input[type="checkbox"]:checked {
  background: var(--color-luxury-gold);
  border-color: var(--color-luxury-gold);
}
.comment-form-cookies-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.comment-form-cookies-consent label {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  margin: 0;
}

/* Cloudflare Turnstile widget wrapper */
.turnstile-wrapper {
  margin: 0 0 var(--space-md);
  display: flex;
  justify-content: flex-start;
}
.turnstile-wrapper .cf-turnstile { max-width: 100%; }

/* Submit button — gradient gold on dark navy, luxury feel */
.comment-submit-btn,
.comment-form-luxury input[type="submit"] {
  display: block;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, #17173f 0%, #0e0e2e 100%);
  border: 1px solid var(--color-luxury-gold);
  color: var(--color-luxury-gold-light);
  font-weight: 700;
  font-size: var(--font-size-md);
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.comment-submit-btn:hover,
.comment-form-luxury input[type="submit"]:hover {
  background: linear-gradient(135deg, #0e0e2e 0%, #17173f 100%);
  box-shadow: 0 10px 24px rgba(201,162,75,.25);
  transform: translateY(-2px);
  color: var(--color-white);
}

@media (max-width: 767px) { /* --bp-mobile */
  .comments-area { padding: var(--space-md); }
  .comment-form-luxury { padding: var(--space-md); }
}


/* ==========================================
   SINGLE POST — gaya editorial ala Nomina
   ========================================== */

/* Breadcrumb */
.post-breadcrumb {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}
.post-breadcrumb a { color: var(--color-text-light); }
.post-breadcrumb a:hover { color: var(--newsmath-primary); }
.post-breadcrumb .breadcrumb-sep { margin: 0 var(--space-xs); color: var(--color-text-lighter); }

/* Judul & sub-judul (deck) */
.entry-title { font-size: 1.75rem; }
.entry-deck {
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0 0 var(--space-md);
}

/* Baris identitas penulis */
.entry-author-row { margin-bottom: var(--space-md); }
.entry-author-identity { display: flex; align-items: center; gap: var(--space-sm); }
.entry-author-avatar img { border-radius: var(--radius-full); display: block; }
.entry-author-text { display: flex; flex-direction: column; gap: 2px; }
.entry-author-line { font-size: var(--font-size-sm); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.entry-author-line a { color: var(--newsmath-primary); }
.entry-author-line .verified-badge { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.entry-date-indo { font-size: var(--font-size-xs); color: var(--color-text-light); }

/* Share buttons */
.share-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
}
.share-label { font-size: var(--font-size-xs); font-weight: 600; color: var(--color-text-muted); margin-right: var(--space-xs); }
.share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-bg-subtle);
  color: var(--color-text-muted);
  border: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.share-link svg { width: 16px; height: 16px; }
.share-link:hover { transform: translateY(-1px); }

/* Warna brand per platform, ala Nomina */
.share-facebook { background: #1877f2; color: var(--color-white); }
.share-facebook:hover { background: #145dbf; color: var(--color-white); }
.share-x { background: #000000; color: var(--color-white); }
.share-x:hover { background: #262626; color: var(--color-white); }
.share-whatsapp { background: #25d366; color: var(--color-white); }
.share-whatsapp:hover { background: #1eb85a; color: var(--color-white); }
.share-telegram { background: #229ed9; color: var(--color-white); }
.share-telegram:hover { background: #1c85b8; color: var(--color-white); }
.share-copy { background: var(--color-bg-subtle); color: var(--color-text-muted); }
.share-copy:hover { background: var(--color-text); color: var(--color-white); }
.share-copied-note {
  display: none;
  font-size: var(--font-size-2xs);
  color: var(--color-white);
  background: var(--color-text);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  position: absolute;
  right: 0;
  top: -28px;
}
.share-copied-note.visible { display: inline-block; }

/* Featured image + caption */
.post-thumbnail { margin: var(--space-md) 0; }
.post-thumbnail img { width: 100%; border-radius: var(--radius-md); display: block; }
.post-thumbnail-caption {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  font-style: italic;
  padding: var(--space-xs) var(--space-sm);
  border-left: 3px solid var(--newsmath-primary);
  margin-top: var(--space-xs);
  background: var(--color-bg-subtle);
}

/* Toolbar ukuran font */
.entry-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-sm);
}
.font-size-toggle { display: flex; gap: 2px; background: var(--color-bg-subtle); border-radius: var(--radius-sm); padding: 2px; }
.font-size-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
  font-weight: 700;
  line-height: 1;
}
.font-size-btn[data-size="small"] { font-size: .75rem; }
.font-size-btn[data-size="medium"] { font-size: .95rem; }
.font-size-btn[data-size="large"] { font-size: 1.15rem; }
.font-size-btn.is-active { background: var(--newsmath-primary); color: var(--color-white); }

/* Ukuran teks entry-content sesuai pilihan */
.entry-content.font-size-small { font-size: .88rem; }
.entry-content.font-size-medium { font-size: 1rem; }
.entry-content.font-size-large { font-size: 1.2rem; }

/* Heading di dalam konten */
.entry-content h2 { font-size: 1.25rem; font-weight: 700; margin: 1.5em 0 .6em; }
.entry-content h3 { font-size: 1.1rem; font-weight: 700; margin: 1.3em 0 .5em; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.2em 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
  border-left: 4px solid var(--newsmath-primary);
  padding: var(--space-sm) var(--space-md);
  margin: 1.2em 0;
  background: var(--color-bg-subtle);
  font-style: italic;
}

/* Slot iklan tengah artikel */
.in-content-ads {
  margin: var(--space-xl) 0;
  padding: var(--space-md) 0;
  text-align: center;
  border-top: 1px dashed var(--color-border);
  border-bottom: 1px dashed var(--color-border);
}
.in-content-ads-label {
  display: block;
  font-size: var(--font-size-2xs);
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--color-text-lighter);
  margin-bottom: var(--space-sm);
}
.in-content-ads-widget img,
.in-content-ads-widget iframe { max-width: 100%; height: auto; }
.in-content-ads-scroll-note {
  display: block;
  font-size: var(--font-size-2xs);
  color: var(--color-text-lighter);
  margin-top: var(--space-sm);
  letter-spacing: .06em;
}

/* Ajakan follow WhatsApp Channel */
.wa-channel-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  background: #e9fbf0;
  border: 1px solid #b7ecc8;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin: var(--space-lg) 0;
}
.wa-channel-cta p { margin: 0; font-size: var(--font-size-sm); font-weight: 600; color: #146c34; }
.wa-channel-btn {
  background: #25d366;
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--font-size-sm);
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.wa-channel-btn:hover { opacity: var(--opacity-hover); }

/* Slot iklan bawah komentar (single post) */
.below-comments-ads {
  margin: var(--space-xl) 0 var(--space-lg);
  padding: var(--space-md) 0;
  text-align: center;
  border-top: 1px dashed var(--color-border);
  border-bottom: 1px dashed var(--color-border);
}
.below-comments-ads-label {
  display: block;
  font-size: var(--font-size-2xs);
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--color-text-lighter);
  margin-bottom: var(--space-sm);
}
.below-comments-ads-widget img,
.below-comments-ads-widget iframe { max-width: 100%; height: auto; }

/* Slot iklan bawah gambar utama (single post) */
.below-thumbnail-ads {
  margin: var(--space-lg) 0 var(--space-xl);
  padding: var(--space-md) 0;
  text-align: center;
  border-top: 1px dashed var(--color-border);
  border-bottom: 1px dashed var(--color-border);
}
.below-thumbnail-ads-label {
  display: block;
  font-size: var(--font-size-2xs);
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--color-text-lighter);
  margin-bottom: var(--space-sm);
}
.below-thumbnail-ads-widget img,
.below-thumbnail-ads-widget iframe { max-width: 100%; height: auto; }

/* Slot iklan bawah berita terkait (single post) */
.below-related-ads {
  margin: var(--space-lg) 0 var(--space-xl);
  padding: var(--space-md) 0;
  text-align: center;
  border-top: 1px dashed var(--color-border);
  border-bottom: 1px dashed var(--color-border);
}
.below-related-ads-label {
  display: block;
  font-size: var(--font-size-2xs);
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--color-text-lighter);
  margin-bottom: var(--space-sm);
}
.below-related-ads-widget img,
.below-related-ads-widget iframe { max-width: 100%; height: auto; }

/* Related posts (Berita Terkait) */
.related-posts { margin: var(--space-xl) 0; padding-top: var(--space-lg); border-top: 1px solid var(--color-border-light); }
.related-heading { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-md); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.related-thumb img { width: 100%; aspect-ratio: var(--aspect-thumb-wide); object-fit: cover; border-radius: var(--radius-sm); }
.related-title { font-size: var(--font-size-sm); font-weight: 600; margin-top: var(--space-xs); line-height: 1.4; }
.related-title a { color: var(--color-text); }
.related-title a:hover { color: var(--newsmath-primary); }

/* Footer meta: view counter + tags */
.entry-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
}
.post-views-count strong { color: var(--color-text); }
.entry-tags { margin: 0; }

@media (max-width: 767px) { /* --bp-mobile */
  .entry-title { font-size: 1.4rem; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .wa-channel-cta { flex-direction: column; align-items: flex-start; }
}
