/* ══════════════════════════════════════════
   WithLore — Content Gap Report Page
   ══════════════════════════════════════════ */

.report-page {
  background: var(--black);
  color: #fff;
  min-height: 100vh;
}

.report-page .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Loading ── */

.report-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.report-loading__spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: reportSpin 0.8s linear infinite;
}

@keyframes reportSpin {
  to { transform: rotate(360deg); }
}

/* ── Invalid State ── */

.report-invalid {
  text-align: center;
  padding: 120px 24px;
}

.report-invalid h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 12px;
}

.report-invalid p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}

/* ── Header ── */

.report-header {
  padding: 100px 0 40px;
  text-align: center;
}

.report-header__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(254, 193, 6, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.report-header__greeting {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 8px;
}

.report-header__channel {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

/* ── Hero Metric ── */

.report-hero {
  padding: 24px 0 48px;
  text-align: center;
}

.report-hero__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 48px 32px;
}

.report-hero__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.report-hero__range {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.report-hero__range.severity--red { color: #e8380d; }
.report-hero__range.severity--orange { color: #f59e0b; }
.report-hero__range.severity--gold { color: var(--gold); }

.report-hero__subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Sections ── */

.report-section {
  padding: 56px 0;
}

.report-section--dark {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.report-section__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.report-section__sub {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin-bottom: 32px;
}

/* ── Bar Chart ── */

.report-bars {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.report-bar__label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.report-bar__track {
  height: 40px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  overflow: hidden;
}

.report-bar__fill {
  height: 100%;
  border-radius: 6px;
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.report-bar__fill--current {
  background: rgba(255,255,255,0.15);
}

.report-bar__fill--optimized {
  background: var(--gold);
}

.report-bar__value {
  font-size: 14px;
  font-weight: 600;
  margin-top: 6px;
  color: rgba(255,255,255,0.8);
}

/* ── Key Metrics ── */

.report-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.report-metric {
  text-align: center;
}

.report-metric__value {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 4px;
}

.report-metric__value--gold {
  color: var(--gold);
}

.report-metric__label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-transform: lowercase;
}

.report-metric__explain {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
  line-height: 1.5;
}

/* ── Projection Table ── */

.report-projection {
  margin-top: 24px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.report-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.report-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
}

.report-table tr:last-child td {
  font-weight: 600;
  color: var(--gold);
}

.report-projection__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  background: rgba(254, 193, 6, 0.08);
  border: 1px solid rgba(254, 193, 6, 0.2);
  border-radius: 8px;
  font-size: 15px;
}

.report-projection__total strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
}

/* ── Recommended Tier ── */

.report-tier {
  text-align: center;
  margin-top: 32px;
}

.report-tier__name {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 4px;
}

.report-tier__cost {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.report-tier__explain {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* ── CTA ── */

.report-cta {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.report-cta h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 12px;
}

.report-cta p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ── */

.report-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.report-btn--gold {
  background: var(--gold);
  color: var(--black);
}

.report-btn--gold:hover {
  background: var(--gold-dim);
}

/* ── Footnote ── */

.report-section--footnote {
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.report-footnote {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .report-metrics {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .report-hero__card {
    padding: 32px 20px;
  }

  .report-table {
    font-size: 13px;
  }
}
