/* ADA Scanner Specific Styles */

.hero-section {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  margin: -1rem -1rem 1.5rem -1rem;
}

.hero-section h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.95;
}

.scanner-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.btn-large {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.trust-indicators {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.indicator {
  font-size: 0.875rem;
  color: #10b981;
  background: #ecfdf5;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Results Screen */
.results-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.scanned-url {
  font-size: 0.875rem;
  color: #6b7280;
  word-break: break-all;
}

.severity-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.severity-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  border-left: 4px solid;
}

.severity-card.critical {
  border-color: #ef4444;
}

.severity-card.serious {
  border-color: #f59e0b;
}

.severity-card.moderate {
  border-color: #eab308;
}

.severity-card.minor {
  border-color: #3b82f6;
}

.severity-count {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.severity-card.critical .severity-count {
  color: #ef4444;
}

.severity-card.serious .severity-count {
  color: #f59e0b;
}

.severity-card.moderate .severity-count {
  color: #eab308;
}

.severity-card.minor .severity-count {
  color: #3b82f6;
}

.severity-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

/* Risk Assessment */
.risk-assessment {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.risk-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.risk-badge.high {
  background: #fee2e2;
  color: #991b1b;
}

.risk-badge.medium {
  background: #fef3c7;
  color: #92400e;
}

.risk-badge.low {
  background: #d1fae5;
  color: #065f46;
}

.risk-assessment h3 {
  margin-bottom: 0.5rem;
}

.risk-assessment p {
  color: #6b7280;
}

/* Issues Preview */
.issues-preview {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.preview-note {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.issue-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.issue-card:last-child {
  margin-bottom: 0;
}

.issue-header {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.issue-severity {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.issue-severity.critical {
  background: #fee2e2;
  color: #991b1b;
}

.issue-severity.serious {
  background: #ffedd5;
  color: #9a3412;
}

.issue-severity.moderate {
  background: #fef3c7;
  color: #92400e;
}

.issue-severity.minor {
  background: #dbeafe;
  color: #1e40af;
}

.issue-title {
  font-weight: 600;
  flex: 1;
}

.issue-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.issue-wcag {
  font-size: 0.75rem;
  color: #9ca3af;
  font-family: monospace;
}

.issue-locked {
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  text-align: center;
}

.issue-locked .lock-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.issue-locked p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* Lead Capture */
.lead-capture-cta {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.lead-capture-cta h3 {
  margin-bottom: 0.5rem;
}

.lead-capture-cta > p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.lead-form {
  max-width: 400px;
  margin: 0 auto;
}

.lead-form .input-group {
  text-align: left;
  margin-bottom: 1rem;
}

.lead-form label {
  color: white;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.lead-form input {
  width: 100%;
  background: rgba(255,255,255,0.95);
}

.lead-form .btn-large {
  margin-top: 0.5rem;
  background: white;
  color: #6366f1;
}

.lead-form .btn-large:hover {
  background: #f9fafb;
}

.privacy-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Report Screen */
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.report-meta {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.meta-item:last-child {
  border-bottom: none;
}

.meta-label {
  font-weight: 600;
  color: #6b7280;
}

.full-issues-list .issue-card {
  background: white;
}

.issue-fix {
  background: #f0fdf4;
  border-left: 3px solid #10b981;
  padding: 0.75rem;
  margin-top: 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.issue-fix strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #065f46;
}

.report-footer {
  margin-top: 2rem;
  text-align: center;
}

/* History */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.history-item {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.history-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.history-url {
  font-weight: 600;
  margin-bottom: 0.25rem;
  word-break: break-all;
}

.history-date {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.history-summary {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}

.history-stat {
  color: #6b7280;
}

.history-stat strong {
  color: #1f2937;
}

/* Responsive */
@media (max-width: 640px) {
  .stats-section {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.875rem;
  }

  .severity-overview {
    grid-template-columns: 1fr;
  }
}
