/* ============================================
   AI Search Visibility Checker — Styles
   ============================================ */

/* LLM Checkbox Cards */
.llm-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 3px solid #000;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
}

.llm-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

.llm-card.checked {
  background: #f3e8ff;
  border-color: #9400ff;
  box-shadow: 4px 4px 0 #000;
}

.llm-card .llm-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.llm-card .llm-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 15px;
}

.llm-card .llm-check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border: 3px solid #000;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.llm-card.checked .llm-check {
  background: #9400ff;
  border-color: #9400ff;
}

.llm-card.checked .llm-check::after {
  content: '✓';
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}

/* Right Panel States */
.panel-placeholder,
.panel-progress,
.panel-report {
  display: none;
}

.panel-placeholder.active,
.panel-progress.active,
.panel-report.active {
  display: block;
}

/* Progress Bar */
.progress-container {
  margin: 24px 0;
}

.progress-track {
  width: 100%;
  height: 28px;
  background: #e2e8f0;
  border: 3px solid #000;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #9400ff, #8b5cf6, #f59e0b);
  transition: width 0.5s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.4) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-pct {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: #000;
  z-index: 2;
}

/* Progress Steps */
.progress-steps {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #94a3b8;
  transition: color 0.3s ease;
}

.progress-step.active {
  color: #0f172a;
}

.progress-step.completed {
  color: #16a34a;
}

.step-indicator {
  width: 28px;
  height: 28px;
  border: 3px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  font-size: 12px;
}

.progress-step.active .step-indicator {
  border-color: #9400ff;
  background: #f3e8ff;
}

.progress-step.completed .step-indicator {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}

.step-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 3px solid #e2e8f0;
  border-top-color: #9400ff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.progress-step.active .step-spinner {
  display: block;
}

.progress-step.active .step-number {
  display: none;
}

.step-check {
  display: none;
}

.progress-step.completed .step-check {
  display: block;
}

.progress-step.completed .step-number,
.progress-step.completed .step-spinner {
  display: none;
}

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

/* Blurred Report */
.report-wrapper {
  position: relative;
}

.report-content {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

/* Score Cards */
.score-card {
  border: 3px solid #000;
  padding: 16px;
  text-align: center;
  background: #fff;
}

.score-card .score-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 1.1;
}

.score-card .score-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Chart containers */
.chart-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 140px;
  padding: 0 8px;
}

.chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.chart-bar .bar {
  width: 100%;
  border: 2px solid #000;
  min-height: 10px;
  transition: height 0.5s ease;
}

.chart-bar .bar-label {
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
}

.chart-bar .bar-value {
  font-size: 13px;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 4px;
}

/* Pie chart via conic-gradient */
.pie-chart {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid #000;
  background: conic-gradient(
    #9400ff 0deg 122deg,
    #f59e0b 122deg 223deg,
    #8b5cf6 223deg 302deg,
    #e2e8f0 302deg 360deg
  );
}

.pie-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pie-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.pie-legend-dot {
  width: 14px;
  height: 14px;
  border: 2px solid #000;
  flex-shrink: 0;
}

/* Line chart SVG */
.line-chart-svg {
  width: 100%;
  height: 100px;
}

/* Report data table */
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.report-table th {
  background: #0f172a;
  color: #fff;
  padding: 10px 12px;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.report-table td {
  padding: 10px 12px;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
}

.report-table tr:nth-child(even) {
  background: #f8fafc;
}

.sentiment-positive {
  color: #16a34a;
  font-weight: 900;
}

.sentiment-neutral {
  color: #f59e0b;
  font-weight: 900;
}

.sentiment-negative {
  color: #dc2626;
  font-weight: 900;
}

/* Unlock Modal */
.unlock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(255,255,255,0.15);
}

.unlock-modal {
  background: #fff;
  border: 5px solid #000;
  box-shadow: 12px 12px 0 #000;
  padding: 40px 36px;
  text-align: center;
  max-width: 440px;
  width: 90%;
}

.unlock-modal .lock-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: inline-block;
}

.unlock-modal h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 28px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.unlock-modal p {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
}

.unlock-btn {
  display: inline-block;
  width: 100%;
  padding: 16px 32px;
  background: #9400ff;
  color: #fff;
  border: 4px solid #000;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 6px 6px 0 #000;
}

.unlock-btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 #000;
}

.unlock-btn:active {
  transform: translate(6px, 6px);
  box-shadow: none;
}

.unlock-subtext {
  font-size: 13px !important;
  color: #94a3b8 !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 1023px) {
  .tool-grid {
    grid-template-columns: 1fr !important;
  }

  .llm-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 640px) {
  .llm-grid {
    grid-template-columns: 1fr !important;
  }

  .score-cards-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .unlock-modal {
    padding: 28px 20px;
  }

  .unlock-modal h3 {
    font-size: 22px;
  }
}
