/* Waze-Style 30-Second Candidate Debrief Stylesheet — Elevated Benchmark Edition
   Command center dark theme, live question radar, XP gamification & answer frameworks */

.debrief-wrap {
  max-width: 1040px;
  margin: 0 auto;
}

/* Live Community Radar HUD Bar */
.debrief-hud-bar {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--r-md);
  padding: 12px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: #94A3B8;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.radar-live-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radar-ping {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 12px #10B981;
  animation: radar-pulse 2s infinite ease-in-out;
}

@keyframes radar-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.6; }
}

.radar-status-tag {
  color: #38BDF8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11.5px;
}

.radar-xp-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  color: #FCD34D;
  font-weight: 700;
  font-size: 12.5px;
}

/* Audio Controls & Actions Row */
.debrief-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.hud-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  font: 600 13px var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.25);
}

.hud-btn.primary {
  background: linear-gradient(135deg, #4F46E5, #3B82F6);
  color: #FFF;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.hud-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

/* Quick 30-Second Debrief Submission Card */
.debrief-card {
  background: radial-gradient(120% 120% at 20% 0%, #151C33 0%, #0B0E17 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.65);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.debrief-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366F1, #38BDF8, #10B981);
}

.debrief-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.debrief-card-sub {
  font-size: 14px;
  color: #94A3B8;
  margin-bottom: 24px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.debrief-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94A3B8;
  margin-bottom: 8px;
}

.debrief-input, .debrief-select, .debrief-textarea {
  width: 100%;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0A0D17;
  font: 500 14.5px var(--sans);
  color: #F8FAFC;
  padding: 12px 16px;
  outline: none;
  transition: all .15s ease;
}

.debrief-input:focus, .debrief-select:focus, .debrief-textarea:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.debrief-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.slider-readout-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

/* Submission Celebration Banner */
.xp-celebration-banner {
  display: none;
  background: radial-gradient(120% 120% at 50% 0%, #064E3B 0%, #06281E 100%);
  border: 1px solid #10B981;
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
  color: #F8FAFC;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.25);
  animation: banner-pop 0.3s ease-out;
}

@keyframes banner-pop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.celebration-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.xp-badge-large {
  font-size: 22px;
  font-weight: 900;
  background: #10B981;
  color: #042F2E;
  padding: 6px 18px;
  border-radius: var(--r-pill);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
  font-family: var(--mono);
}

/* Filter Controls Bar */
.filter-controls-card {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--hair-2);
  background: var(--paper);
  color: var(--ink);
  font: 500 14px var(--sans);
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus {
  border-color: var(--accent);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-3);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  display: none;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pill-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair-2);
  background: var(--paper);
  font: 600 13px var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.filter-pill-btn:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.filter-pill-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Radar Intel Stream */
.radar-stream-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.radar-stream-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.radar-stream-count {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 600;
}

.radar-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.radar-item {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.radar-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.radar-item.is-fresh {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.5);
}

.radar-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.radar-tags-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.company-badge {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.15);
  color: #818CF8;
}

.round-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink-2);
}

.recency-badge {
  font-size: 11.5px;
  font-family: var(--mono);
  color: #B45309;
  background: #FEF3C7;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

.radar-question {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

.radar-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--ink-3);
}

.meta-stats-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.diff-pill {
  font-weight: 800;
  font-family: var(--mono);
}

.diff-pill.high { color: #EF4444; }
.diff-pill.med { color: #F59E0B; }
.diff-pill.low { color: #10B981; }

.vibe-tag {
  font-style: italic;
  color: var(--ink-2);
}

.toggle-framework-btn {
  background: none;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font: 600 12.5px var(--sans);
  color: var(--accent);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.toggle-framework-btn:hover {
  background: var(--paper-2);
  border-color: var(--accent);
}

/* 3-Point Answering Framework Drawer */
.framework-drawer {
  display: none;
  background: var(--paper);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-top: 6px;
  animation: drawer-fade 0.2s ease-out;
}

@keyframes drawer-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.framework-drawer.is-open {
  display: block;
}

.framework-header {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.framework-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px 0;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* Pre-rendered SEO Playbook & Reference Benchmarks */
.seo-playbook-section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--hair-2);
}

.seo-playbook-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
}

.seo-playbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.seo-playbook-card {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.seo-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
}

.seo-card-body {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* Benchmark Reference Table */
.benchmark-reference-card {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
}

.benchmark-table th {
  background: var(--paper-2);
  padding: 14px 18px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--hair-2);
}

.benchmark-table td {
  padding: 15px 18px;
  font-size: 13.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--hair);
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-md);
  overflow: hidden;
}

.faq-summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 18px;
  color: var(--ink-3);
  transition: transform 0.2s;
}

.faq-item[open] .faq-summary::after {
  content: '−';
}

.faq-content {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

@media (max-width: 680px) {
  .debrief-card {
    padding: 22px 20px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .radar-item {
    padding: 18px 18px;
  }
  .radar-question {
    font-size: 15px;
  }
  .meta-stats-left {
    gap: 8px;
  }
}
