/**
 * Estilos canónicos para Test y armonizador de los 7 chakras
 * fijate.com/tools/test-chakras/
 */

:root {
  --chk-bg: #090d16;
  --chk-surface: #121826;
  --chk-surface-card: #182032;
  --chk-surface-hover: #202b44;
  --chk-border: rgba(168, 85, 247, 0.25);
  --chk-border-subtle: rgba(255, 255, 255, 0.08);

  --chk-gold: #d4af37;
  --chk-gold-light: #f6d365;

  --chk-text: #f0f4fc;
  --chk-text-muted: #9ba8c2;
  --chk-text-bright: #ffffff;

  --chk-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.7);
  --chk-radius-md: 14px;
  --chk-radius-lg: 20px;
}

[data-theme="light"] {
  --chk-bg: #f8fafc;
  --chk-surface: #ffffff;
  --chk-surface-card: #f1f5f9;
  --chk-surface-hover: #e2e8f0;
  --chk-border: rgba(147, 51, 234, 0.25);
  --chk-border-subtle: rgba(0, 0, 0, 0.08);

  --chk-gold: #9a6f14;
  --chk-gold-light: #b8861e;

  --chk-text: #1e293b;
  --chk-text-muted: #475569;
  --chk-text-bright: #0f172a;

  --chk-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}

body {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--chk-bg);
  color: var(--chk-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--chk-text-bright);
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  flex: 1 0 auto;
}

/* Pestañas */
.chk-nav-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--chk-border);
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.chk-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  background: transparent;
  color: var(--chk-text-muted);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 42px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chk-tab-btn:hover {
  color: var(--chk-gold-light);
  background: var(--chk-surface-hover);
}

.chk-tab-btn.active {
  color: var(--chk-text-bright);
  background: var(--chk-surface-card);
  border-color: var(--chk-border);
}

.chk-panel {
  display: none;
}
.chk-panel.active {
  display: block;
}

/* Grilla de silueta y test */
.chakras-main-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 950px) {
  .chakras-main-grid {
    grid-template-columns: 1fr;
  }
}

/* Tarjeta de silueta en postura de loto */
.meditation-silhouette-card {
  background: radial-gradient(circle at 50% 50%, var(--chk-surface) 0%, var(--chk-bg) 100%);
  border: 1px solid var(--chk-border);
  border-radius: var(--chk-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--chk-shadow);
  text-align: center;
  position: sticky;
  top: 1rem;
}

.chakra-vortex-node {
  cursor: pointer;
  transition: all 0.3s ease;
}

.chakra-vortex-node:hover circle:first-child {
  transform: scale(1.3);
  filter: drop-shadow(0 0 12px currentColor);
}

/* Preguntas del test */
.test-questions-card {
  background: var(--chk-surface);
  border: 1px solid var(--chk-border);
  border-radius: var(--chk-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--chk-shadow);
}

.question-item {
  background: var(--chk-surface-card);
  border: 1px solid var(--chk-border-subtle);
  border-radius: var(--chk-radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.question-text {
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  color: var(--chk-text-bright);
}

.radio-scale-group {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--chk-surface);
  padding: 0.5rem;
  border-radius: 8px;
}

.scale-option {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--chk-text-muted);
}

.scale-option input {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

/* Botones */
.btn-chk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--chk-radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  border: none;
  transition: all 0.25s ease;
}

.btn-chk-primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
}

.btn-chk-primary:hover {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
  transform: translateY(-1px);
}

.btn-chk-secondary {
  background: var(--chk-surface-card);
  color: var(--chk-text);
  border: 1px solid var(--chk-border-subtle);
}

/* Baño de sonido / Cuencos interactivos */
.bowls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.bowl-card {
  background: var(--chk-surface);
  border: 1px solid var(--chk-border-subtle);
  border-radius: var(--chk-radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.bowl-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--chk-shadow);
}

.bowl-card.playing {
  border-color: var(--chk-gold);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
}

/* Resultados */
.result-header-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(20, 27, 44, 0.6) 100%);
  border: 1px solid var(--chk-border);
  border-radius: var(--chk-radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.detailed-chakras-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chakra-result-row {
  background: var(--chk-surface);
  border: 1px solid var(--chk-border-subtle);
  border-radius: var(--chk-radius-md);
  padding: 1.25rem;
}

@media (max-width: 600px) {
  .btn-chk {
    width: 100%;
  }
}
