/* =============================================================================
   WebAudit Dashboard - Dark Theme
   ============================================================================= */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a24;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;
  --border-color: #2a2a3a;
  --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-orange: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-red: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* =============================================================================
   Header
   ============================================================================= */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 24px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #a0a0b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.generated-date {
  color: var(--text-muted);
  font-size: 14px;
}

/* =============================================================================
   Hero
   ============================================================================= */

.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
}

/* =============================================================================
   Score Cards
   ============================================================================= */

.scores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

@media (max-width: 640px) {
  .scores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.score-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-green);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.score-card.good::before {
  background: var(--gradient-green);
  opacity: 1;
}

.score-card.average::before {
  background: var(--gradient-orange);
  opacity: 1;
}

.score-card.poor::before {
  background: var(--gradient-red);
  opacity: 1;
}

.score-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.score-value {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.score-value.good { color: var(--accent-green); }
.score-value.average { color: var(--accent-orange); }
.score-value.poor { color: var(--accent-red); }

.score-max {
  font-size: 14px;
  color: var(--text-muted);
}

.score-icon {
  font-size: 36px;
}

.score-status {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* =============================================================================
   Comparison
   ============================================================================= */

.comparison {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 48px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.comparison-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bar-label {
  width: 80px;
  font-size: 14px;
  color: var(--text-secondary);
}

.bar-container {
  flex: 1;
  height: 24px;
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
}

.bar {
  height: 100%;
  border-radius: 12px;
  transition: width 1s ease-out;
}

.your-bar {
  background: var(--gradient-green);
}

.your-bar.average {
  background: var(--gradient-orange);
}

.your-bar.poor {
  background: var(--gradient-red);
}

.avg-bar {
  background: linear-gradient(135deg, #6b6b7b 0%, #4b4b5b 100%);
}

.bar-value {
  width: 40px;
  text-align: right;
  font-weight: 600;
  font-size: 14px;
}

.percentile-text {
  margin-top: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.percentile-text strong {
  color: var(--accent-blue);
}

/* =============================================================================
   Issues
   ============================================================================= */

.issues {
  margin-bottom: 48px;
}

.issues-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.issue-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
}

.issue-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.issue-content {
  flex: 1;
}

.issue-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.issue-description {
  font-size: 14px;
  color: var(--text-secondary);
}

.issue-item.critical {
  border-left: 3px solid var(--accent-red);
}

.issue-item.warning {
  border-left: 3px solid var(--accent-orange);
}

.issue-item.info {
  border-left: 3px solid var(--accent-blue);
}

/* =============================================================================
   CTA
   ============================================================================= */

.cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 48px;
}

.cta-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-text {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--gradient-green);
  color: white;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
}

.footer-disclaimer {
  font-size: 12px;
  margin-top: 8px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================================================
   Animations
   ============================================================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.score-card, .comparison, .issue-item, .cta {
  animation: fadeInUp 0.6s ease-out forwards;
}

.score-card:nth-child(1) { animation-delay: 0.1s; }
.score-card:nth-child(2) { animation-delay: 0.2s; }
.score-card:nth-child(3) { animation-delay: 0.3s; }
.score-card:nth-child(4) { animation-delay: 0.4s; }

.issue-item:nth-child(1) { animation-delay: 0.5s; }
.issue-item:nth-child(2) { animation-delay: 0.6s; }
.issue-item:nth-child(3) { animation-delay: 0.7s; }
