/* Bot DNA Visualization — bot-dna.css */

/* ── Card container ─────────────────────────────────────────────────────────── */
.bot-dna-section {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  max-width: 900px;
  overflow: hidden;
  position: relative;
}

/* Shimmer on card load */
.bot-dna-section::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(124, 58, 237, 0.06) 40%,
    rgba(6, 182, 212, 0.08) 60%,
    transparent 100%
  );
  animation: dna-shimmer 2.2s ease forwards;
  pointer-events: none;
}

@keyframes dna-shimmer {
  0%   { left: -100%; opacity: 1; }
  80%  { left: 120%;  opacity: 1; }
  100% { left: 120%;  opacity: 0; }
}

.bot-dna-section h2 {
  color: #e2e8f0;
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

/* ── Chart wrapper ──────────────────────────────────────────────────────────── */
.dna-chart-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 120px;
}

.dna-svg {
  display: block;
  overflow: visible;
}

/* ── Breathing pulse on the filled polygon ───────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .dna-polygon.dna-breathe {
    animation: dna-pulse 3.5s ease-in-out infinite;
    transform-origin: center;
  }
}

@keyframes dna-pulse {
  0%, 100% { opacity: 0.85; filter: brightness(1); }
  50%       { opacity: 1;    filter: brightness(1.15); }
}

/* ── Legend (personality + interaction) ─────────────────────────────────────── */
.dna-legend {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.dna-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dna-badge--personality {
  background: rgba(124, 58, 237, 0.18);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.35);
}

.dna-badge--style {
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* ── Strength tags ──────────────────────────────────────────────────────────── */
.dna-strengths {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.dna-strength-tag {
  display: block;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-left: 3px solid #7c3aed;
  border-radius: 0 8px 8px 0;
  padding: 5px 10px;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* ── Unique trait quote ─────────────────────────────────────────────────────── */
.dna-unique-trait {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border-left: 2px solid #06b6d4;
  font-style: italic;
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.55;
  background: rgba(6, 182, 212, 0.04);
  border-radius: 0 8px 8px 0;
}

/* ── Tooltip (injected by JS) ───────────────────────────────────────────────── */
.dna-tooltip {
  display: none;
  position: absolute;
  background: #1e293b;
  color: #e2e8f0;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  pointer-events: none;
  z-index: 100;
  border: 1px solid #334155;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ── Layout flex row ────────────────────────────────────────────────────────── */
.dna-content-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.dna-info-col {
  flex: 1;
  min-width: 180px;
  max-width: 400px;
}

.dna-info-col p {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  color: #94a3b8;
}

/* ── Mobile responsive ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .bot-dna-section {
    padding: 1.25rem 1rem;
    margin: 1.25rem 0.5rem;
  }

  .dna-content-row {
    flex-direction: column;
    gap: 1.25rem;
  }

  .dna-chart-wrapper {
    width: 100%;
  }
}
