/* ============================================================
   Halocite — AI Visibility Report Styles
   Owns: /reports/* page styling only.
   Does NOT own: landing page styles (theme.css).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0a0f1a;
  color: #e2e8f0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.r-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.r-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.r-nav-badge {
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.1);
  color: #00D4FF;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  font-weight: 500;
}

/* ── LAYOUT ── */
.r-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}
.r-section {
  padding: 56px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.r-section-alt {
  background: rgba(255,255,255,0.02);
}
.r-section-summary {
  background: rgba(0, 212, 255, 0.03);
}

/* ── SECTION HEADERS ── */
.r-section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.r-section-icon {
  font-size: 20px;
  line-height: 1;
}
.r-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
}
.r-section-sub {
  font-size: 14px;
  color: #64748b;
  margin-left: auto;
}

/* ── HERO ── */
.r-hero {
  padding: 40px 0 0;
  background: linear-gradient(180deg, rgba(0,212,255,0.04) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.r-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #64748b;
}
.r-tag {
  background: rgba(94, 106, 210, 0.2);
  color: #a5b4fc;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.r-sep { color: #334155; }
.r-date { color: #64748b; }

.r-hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.r-brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(94, 106, 210, 0.15);
  border: 1px solid rgba(94, 106, 210, 0.3);
  flex-shrink: 0;
}
.r-brand-name {
  font-size: 32px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.03em;
}
.r-brand-url {
  font-size: 14px;
  color: #64748b;
  margin-top: 2px;
}

/* ── SCORE SECTION ── */
.r-score-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 32px 0 48px;
  align-items: start;
}
@media (max-width: 680px) {
  .r-score-section { grid-template-columns: 1fr; }
}
.r-score-dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.r-dial-svg {
  width: 200px;
  height: 120px;
}
.r-score-label {
  text-align: center;
}
.r-score-grade {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.r-grade-strong  { background: rgba(0,212,255,0.15); color: #00D4FF; border: 1px solid rgba(0,212,255,0.3); }
.r-grade-moderate { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.r-grade-low     { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.r-grade-minimal { background: rgba(100,116,139,0.15); color: #94a3b8; border: 1px solid rgba(100,116,139,0.3); }

/* ── SCORE BREAKDOWN ── */
.r-breakdown-title {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}
.r-breakdown-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.r-breakdown-item {
  display: grid;
  grid-template-columns: 150px 1fr 50px;
  grid-template-rows: auto auto;
  gap: 0 12px;
  align-items: center;
}
.r-breakdown-label {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  grid-column: 1;
  grid-row: 1;
}
.r-breakdown-sub {
  font-size: 11px;
  color: #475569;
  grid-column: 1;
  grid-row: 2;
}
.r-breakdown-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  grid-column: 2;
  grid-row: 1 / 3;
  overflow: hidden;
}
.r-breakdown-bar {
  height: 100%;
  background: linear-gradient(90deg, #00D4FF, #0891b2);
  border-radius: 3px;
  transition: width 0.6s ease;
  min-width: 4px;
}
.r-breakdown-val {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  grid-column: 3;
  grid-row: 1;
  text-align: right;
}

/* ── EXECUTIVE SUMMARY ── */
.r-summary-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 24px 28px;
}
.r-summary-text {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.7;
}
.r-summary-text strong { color: #e2e8f0; }

/* ── MODEL CARDS ── */
.r-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.r-model-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.r-model-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.r-model-icon {
  font-size: 24px;
  line-height: 1;
}
.r-model-name {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}
.r-model-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.r-stat-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}
.r-stat-high { background: rgba(0,212,255,0.15); color: #00D4FF; }
.r-stat-mid  { background: rgba(245,158,11,0.15); color: #f59e0b; }
.r-stat-low  { background: rgba(100,116,139,0.15); color: #94a3b8; }
.r-stat-warn { background: rgba(239,68,68,0.12); color: #f87171; }

/* ── PROMPT TABLE ── */
.r-prompt-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.r-prompt-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.r-prompt-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.r-ind-yes { background: rgba(0,212,255,0.15); color: #00D4FF; }
.r-ind-no  { background: rgba(100,116,139,0.08); color: #475569; }
.r-prompt-info { flex: 1; min-width: 0; }
.r-prompt-text {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}
.r-prompt-meta {
  display: flex;
  gap: 6px;
  margin-top: 3px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── CATEGORY BADGES ── */
.r-cat-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.r-cat-discovery   { background: rgba(139,92,246,0.2); color: #a78bfa; }
.r-cat-comparison  { background: rgba(59,130,246,0.2); color: #93c5fd; }
.r-cat-direct      { background: rgba(0,212,255,0.15); color: #00D4FF; }
.r-cat-alternatives { background: rgba(245,158,11,0.15); color: #fbbf24; }
.r-cat-sentiment   { background: rgba(236,72,153,0.15); color: #f9a8d4; }
.r-cat-other       { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* ── SENTIMENT ── */
.r-sentiment {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 20px;
  text-transform: uppercase;
}
.r-sentiment-positive { background: rgba(34,197,94,0.15); color: #4ade80; }
.r-sentiment-neutral  { background: rgba(100,116,139,0.15); color: #94a3b8; }
.r-sentiment-negative { background: rgba(239,68,68,0.15); color: #f87171; }

.r-hall-flag {
  font-size: 10px;
  color: #f59e0b;
  font-weight: 600;
}

/* ── QUOTES ── */
.r-quotes-section {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 14px;
}
.r-quotes-label {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}
.r-quote {
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
  border-left: 2px solid rgba(0,212,255,0.3);
  padding-left: 10px;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ── HALLUCINATION SECTION ── */
.r-hall-section {
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 8px;
  padding: 12px 14px;
}
.r-hall-label {
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
  margin-bottom: 6px;
}
.r-hall-item {
  font-size: 12px;
  color: #fbbf24;
  line-height: 1.5;
  padding: 2px 0;
}
.r-hall-item::before { content: '• '; }

/* ── COVERAGE TABLE ── */
.r-coverage-table {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
}
.r-cov-header, .r-cov-row {
  display: grid;
  grid-template-columns: 1fr 90px 90px 90px 70px;
  gap: 0;
  align-items: center;
}
.r-cov-header {
  background: rgba(255,255,255,0.04);
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.r-cov-row {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.r-cov-row:last-child { border-bottom: none; }
.r-cov-row:hover { background: rgba(255,255,255,0.02); }

.r-cov-prompt-col {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.r-cov-prompt-text {
  font-size: 13px;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.r-cov-model-col {
  text-align: center;
}
.r-cov-rate-col {
  text-align: right;
}

.r-cov-dot {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.r-dot-yes { background: rgba(0,212,255,0.15); color: #00D4FF; }
.r-dot-no  { background: rgba(100,116,139,0.08); color: #334155; }

.r-rate-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.r-rate-full    { background: rgba(0,212,255,0.15); color: #00D4FF; }
.r-rate-partial { background: rgba(245,158,11,0.15); color: #f59e0b; }
.r-rate-zero    { background: rgba(100,116,139,0.08); color: #475569; }

/* ── RECOMMENDATIONS ── */
.r-recs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.r-rec-card {
  display: flex;
  gap: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 20px 24px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.r-rec-card:hover { border-color: rgba(255,255,255,0.12); }
.r-rec-high { border-left: 3px solid #ef4444; }
.r-rec-medium { border-left: 3px solid #f59e0b; }
.r-rec-low { border-left: 3px solid #64748b; }

.r-rec-num {
  font-size: 28px;
  font-weight: 800;
  color: rgba(255,255,255,0.08);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  min-width: 40px;
  padding-top: 2px;
  font-family: 'Instrument Serif', serif;
}
.r-rec-body { flex: 1; }
.r-rec-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.r-rec-title {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  flex: 1;
}
.r-priority-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.r-priority-high   { background: rgba(239,68,68,0.15); color: #f87171; }
.r-priority-medium { background: rgba(245,158,11,0.15); color: #fbbf24; }
.r-priority-low    { background: rgba(100,116,139,0.15); color: #94a3b8; }
.r-rec-detail {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.65;
}

/* ── FULL RESPONSES ── */
.r-detail-block {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.r-detail-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 14px;
  color: #94a3b8;
  list-style: none;
  transition: background 0.15s;
  user-select: none;
}
.r-detail-summary::-webkit-details-marker { display: none; }
.r-detail-summary:hover { background: rgba(255,255,255,0.02); color: #e2e8f0; }
.r-detail-q {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.r-detail-arrow {
  color: #475569;
  font-size: 12px;
  transition: transform 0.2s;
}
details[open] .r-detail-arrow { transform: rotate(90deg); }
.r-detail-content {
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.r-resp-block {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 14px 16px;
}
.r-resp-model-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.r-model-icon-sm { font-size: 16px; }
.r-resp-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}
.r-resp-mentioned     { background: rgba(0,212,255,0.12); color: #00D4FF; }
.r-resp-not-mentioned { background: rgba(100,116,139,0.1); color: #64748b; }
.r-resp-hall          { background: rgba(245,158,11,0.15); color: #f59e0b; }
.r-resp-text {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.65;
  white-space: pre-wrap;
}
.r-resp-error {
  font-size: 13px;
  color: #f87171;
  font-style: italic;
}

/* ── CTA ── */
.r-cta-section {
  padding: 56px 0;
  background: linear-gradient(180deg, rgba(0,212,255,0.04) 0%, transparent 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.r-cta-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 16px;
  padding: 36px 40px;
}
@media (max-width: 680px) {
  .r-cta-card { flex-direction: column; align-items: flex-start; }
}
.r-cta-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: #00D4FF;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}
.r-cta-title {
  font-size: 24px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.r-cta-sub {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  max-width: 480px;
}
.r-cta-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.r-cta-btn {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #00D4FF, #0891b2);
  color: #0a0f1a;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.r-cta-btn:hover { transform: translateY(-1px); opacity: 0.92; }
.r-cta-note {
  font-size: 12px;
  color: #475569;
}

/* ── FOOTER ── */
.r-footer {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  color: #475569;
}
.r-footer .r-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.r-footer-sep { color: #1e293b; }
.r-footer-link {
  color: #64748b;
  text-decoration: none;
}
.r-footer-link:hover { color: #00D4FF; }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .r-cov-header, .r-cov-row {
    grid-template-columns: 1fr 60px 60px 60px 55px;
    font-size: 12px;
  }
  .r-cov-prompt-text { font-size: 12px; }
  .r-brand-name { font-size: 26px; }
  .r-score-dial .r-dial-svg { width: 160px; height: 96px; }
}
