/**
 * Radar Chart Visualization CSS
 * SmartAITest.com - Stage 2 Viral Engine
 */

/* ===== Radar Chart Container ===== */
.radar-chart-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 2rem auto;
  padding: 1rem;
}

.radar-chart-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.radar-chart-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.radar-chart-canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 350px;
}

/* ===== Trait Labels ===== */
.radar-trait-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.radar-trait-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.875rem;
  color: white;
}

.radar-trait-label .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.radar-trait-label .value {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Trait colors */
.trait-dot-intuition { background: #8B5CF6; }
.trait-dot-passion { background: #EF4444; }
.trait-dot-empathy { background: #EC4899; }
.trait-dot-logic { background: #3B82F6; }
.trait-dot-creativity { background: #10B981; }
.trait-dot-sociability { background: #F59E0B; }

/* ===== Summary Stats Grid ===== */
.radar-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.radar-stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.radar-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.radar-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Animated Entry ===== */
.radar-chart-container.animate-in {
  animation: radarFadeIn 0.6s ease-out;
}

@keyframes radarFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 480px) {
  .radar-chart-container {
    max-width: 100%;
    padding: 0.5rem;
  }

  .radar-chart-wrapper {
    padding: 1rem;
  }

  .radar-chart-canvas {
    max-height: 280px;
  }

  .radar-trait-labels {
    gap: 0.5rem;
  }

  .radar-trait-label {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }

  .radar-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .radar-stat-value {
    font-size: 1.25rem;
  }
}

/* ===== Provocative Header ===== */
.viral-header {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 140, 0, 0.2) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.viral-header-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFD700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: viralPulse 2s ease-in-out infinite;
}

@keyframes viralPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

.viral-header-emoji {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

/* ===== Share Preview Enhancement ===== */
.share-preview-enhanced {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.share-preview-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); }
}
