/* Halaman khusus Ulasan, Sorotan Sosmed & Kotak Saran */

.nav-link[aria-current="page"] {
  background: var(--bg-tint);
  color: var(--text-primary);
  font-weight: 700;
}

.ulasan-hero {
  background: var(--bg-pine);
  color: var(--text-on-pine);
  padding: 36px 0 42px;
}

.ulasan-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

.breadcrumb-nav {
  margin-bottom: 12px;
  font-size: 0.86rem;
  color: var(--text-on-pine-muted);
}

.breadcrumb-nav a {
  color: #FCD34D;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--text-on-pine-muted);
}

.ulasan-title {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  line-height: 1.15;
  color: var(--text-on-pine);
}

.ulasan-lead {
  margin: 0 0 22px;
  max-width: 58ch;
  color: var(--text-on-pine-muted);
  font-size: 1rem;
}

.ulasan-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.channels-card {
  background: var(--bg-pine-card);
  border: 1px solid var(--border-pine);
  border-radius: 12px;
  padding: 20px;
}

.channels-heading {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--text-on-pine);
}

.channels-intro {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-on-pine-muted);
}

.channels-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.channel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #142E24;
  border: 1px solid var(--border-pine);
  color: var(--text-on-pine);
  text-decoration: none;
  font-size: 0.92rem;
}

.channel-link:hover {
  border-color: #FCD34D;
  background: #10261D;
}

.channel-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-on-pine-muted);
}

.channel-action {
  font-size: 0.82rem;
  font-weight: 600;
  color: #FCD34D;
  white-space: nowrap;
}

/* Board Ulasan & Filter */
.section-board {
  padding: 48px 0;
  background: var(--bg-ground);
  border-bottom: 1px solid var(--border-subtle);
}

.board-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.google-summary-box {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.summary-score {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.summary-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border-control);
  background: var(--bg-surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}

.filter-btn:hover {
  background: var(--bg-tint);
}

.filter-btn.is-active {
  background: var(--bg-pine);
  border-color: var(--bg-pine);
  color: var(--text-on-pine);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--bg-tint);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.filter-btn.is-active .filter-count {
  background: var(--bg-pine-card);
  color: #FCD34D;
}

/* State panel (Loading / Empty / Error) */
.state-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px 24px;
  max-width: 780px;
}

.state-panel.is-error {
  border-color: var(--closed-fg);
}

.state-title {
  margin: 0 0 8px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.state-desc {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 66ch;
}

.state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Mentions Grid */
.mentions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mention-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
}

.mention-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}

.mention-source {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-tint);
  color: var(--text-primary);
  font-weight: 700;
}

.review-rating {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-pine);
  color: #FCD34D;
  font-weight: 700;
}

.mention-topic {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 600;
}

.mention-date {
  margin-left: auto;
  color: var(--text-muted);
}

.mention-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text-primary);
}

.mention-body {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.96rem;
}

.mention-embed-box {
  margin-top: 2px;
}

.mention-embed-btn {
  width: 100%;
}

.mention-iframe-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tint);
}

.mention-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.mention-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mention-author {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.mention-origin {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mention-source-link {
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Section Kotak Saran */
.section-suggest {
  padding: 48px 0;
  background: var(--bg-surface);
}

.suggest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.submit-tip-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.submit-tip-title {
  margin: 0 0 6px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  color: var(--text-primary);
}

.submit-tip-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.submit-tip-text a {
  color: var(--accent-text);
  font-weight: 600;
}

.footer-note a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .filter-btn,
  .channel-link {
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  }
}

@media (max-width: 960px) {
  .ulasan-hero-grid,
  .mentions-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-board,
  .section-suggest {
    padding: 38px 0;
  }
}

@media (max-width: 639px) {
  .ulasan-hero {
    padding: 24px 0 30px;
  }

  .ulasan-hero-actions,
  .state-actions,
  .suggest-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .state-panel {
    padding: 20px 16px;
  }
}
