/* ============================================================
   Reviews Page
   ============================================================ */

#reviews-hero {
  padding: 8rem 0 3rem;
  background: var(--bg-dark);
  color: white;
}

#reviews-hero .section-tag {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

#reviews-hero h1 {
  color: white;
  margin: 0.75rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

#reviews-hero p {
  color: #94a3b8;
  font-size: 1.0625rem;
  max-width: 560px;
  line-height: 1.75;
}

/* ============================================================
   Filter Bar
   ============================================================ */
.filter-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 56px;
  z-index: 50;
}

.filter-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.75rem 0;
  overflow-x: auto;
}

.filter-btn {
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: inherit;
}

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

.filter-btn.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   Reviews List
   ============================================================ */
#reviews-grid {
  background: var(--bg);
  padding: 3rem 0 6rem;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 760px;
}

.review-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.2s;
}

.review-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.review-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.review-card.in-progress {
  background: var(--bg);
  border-style: dashed;
}

/* Header row */
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

/* Category tags */
.review-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

.tag-book      { background: #e0e7ff; color: #4338ca; }
.tag-course    { background: rgba(251, 191, 36, 0.15); color: #b45309; }
.tag-livestream { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.tag-article   { background: rgba(6, 182, 212, 0.12); color: #0e7490; }

/* Status badges */
.review-status {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.status-done     { background: #dcfce7; color: #15803d; }
.status-reading  { background: #fef9c3; color: #a16207; }
.status-upcoming { background: #f0f9ff; color: #0369a1; }

.review-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Star rating */
.review-rating { display: flex; gap: 2px; }

.star {
  font-size: 1.125rem;
  color: #d1d5db;
  line-height: 1;
}

.star.filled { color: #f59e0b; }

/* Title & author */
.review-card h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.review-author {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

/* Takeaway highlight */
.review-takeaway {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.875rem 1.125rem;
  margin-bottom: 1.25rem;
}

.takeaway-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.375rem;
}

.review-takeaway p {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
  font-weight: 500;
}

/* Body text */
.review-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.review-body p:last-child { margin-bottom: 0; }

/* Active nav link */
.nav-active {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  #reviews-hero { padding: 7rem 0 2.5rem; }
  .review-card { padding: 1.5rem; }
  .review-header { flex-direction: column; align-items: flex-start; }
}
