/* ═══════════════════════════════════════════════
   AURA.CSS — The Living Spectrum Stylesheet
   Color-shifting aurora, glow pulses, layered rings
   ═══════════════════════════════════════════════ */

@keyframes aurora-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes aura-breathe {
  0%, 100% { box-shadow: 0 0 30px rgba(159,123,237,0.1), 0 0 60px rgba(78,205,196,0.05); transform: scale(1); }
  50% { box-shadow: 0 0 50px rgba(159,123,237,0.2), 0 0 100px rgba(78,205,196,0.1); transform: scale(1.02); }
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes color-cycle {
  0% { border-color: rgba(231,76,60,0.3); }
  14% { border-color: rgba(230,126,34,0.3); }
  28% { border-color: rgba(241,196,15,0.3); }
  42% { border-color: rgba(46,204,113,0.3); }
  56% { border-color: rgba(52,152,219,0.3); }
  70% { border-color: rgba(155,89,182,0.3); }
  85% { border-color: rgba(159,123,237,0.3); }
  100% { border-color: rgba(231,76,60,0.3); }
}

@keyframes float-glyph {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.04; }
  25% { transform: translateY(-20px) rotate(3deg); opacity: 0.08; }
  50% { transform: translateY(-35px) rotate(-2deg); opacity: 0.06; }
  75% { transform: translateY(-15px) rotate(2deg); opacity: 0.07; }
}

@keyframes section-glow {
  0%, 100% { border-color: rgba(159,123,237,0.04); }
  50% { border-color: rgba(159,123,237,0.12); }
}

@keyframes card-glow-red { 0%,100%{box-shadow:0 0 15px rgba(231,76,60,0.05);}50%{box-shadow:0 0 25px rgba(231,76,60,0.15), 0 0 50px rgba(231,76,60,0.05);} }
@keyframes card-glow-orange { 0%,100%{box-shadow:0 0 15px rgba(230,126,34,0.05);}50%{box-shadow:0 0 25px rgba(230,126,34,0.15), 0 0 50px rgba(230,126,34,0.05);} }
@keyframes card-glow-yellow { 0%,100%{box-shadow:0 0 15px rgba(241,196,15,0.05);}50%{box-shadow:0 0 25px rgba(241,196,15,0.15), 0 0 50px rgba(241,196,15,0.05);} }
@keyframes card-glow-green { 0%,100%{box-shadow:0 0 15px rgba(46,204,113,0.05);}50%{box-shadow:0 0 25px rgba(46,204,113,0.15), 0 0 50px rgba(46,204,113,0.05);} }
@keyframes card-glow-blue { 0%,100%{box-shadow:0 0 15px rgba(52,152,219,0.05);}50%{box-shadow:0 0 25px rgba(52,152,219,0.15), 0 0 50px rgba(52,152,219,0.05);} }
@keyframes card-glow-indigo { 0%,100%{box-shadow:0 0 15px rgba(124,58,237,0.05);}50%{box-shadow:0 0 25px rgba(124,58,237,0.15), 0 0 50px rgba(124,58,237,0.05);} }
@keyframes card-glow-violet { 0%,100%{box-shadow:0 0 15px rgba(155,89,182,0.05);}50%{box-shadow:0 0 25px rgba(155,89,182,0.15), 0 0 50px rgba(155,89,182,0.05);} }
@keyframes card-glow-pink { 0%,100%{box-shadow:0 0 15px rgba(255,105,180,0.05);}50%{box-shadow:0 0 25px rgba(255,105,180,0.15), 0 0 50px rgba(255,105,180,0.05);} }
@keyframes card-glow-white { 0%,100%{box-shadow:0 0 15px rgba(255,255,255,0.03);}50%{box-shadow:0 0 25px rgba(255,255,255,0.1), 0 0 50px rgba(255,255,255,0.03);} }
@keyframes card-glow-gold { 0%,100%{box-shadow:0 0 15px rgba(201,168,76,0.05);}50%{box-shadow:0 0 25px rgba(201,168,76,0.15), 0 0 50px rgba(201,168,76,0.05);} }
@keyframes card-glow-silver { 0%,100%{box-shadow:0 0 15px rgba(192,192,192,0.05);}50%{box-shadow:0 0 25px rgba(192,192,192,0.1), 0 0 50px rgba(192,192,192,0.03);} }
@keyframes card-glow-black { 0%,100%{box-shadow:0 0 15px rgba(100,100,100,0.03);}50%{box-shadow:0 0 25px rgba(100,100,100,0.08), 0 0 50px rgba(100,100,100,0.03);} }

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.15); filter: brightness(1.3); }
}

/* ── Hero ── */
.aura-hero {
  background: radial-gradient(ellipse at center, rgba(25, 10, 40, 0.6) 0%, var(--color-bg-deep) 75%);
  position: relative;
  overflow: hidden;
}
.aura-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,16,0.3) 0%, var(--color-bg-deep) 100%);
}
.aura-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159,123,237,0.06) 0%, rgba(78,205,196,0.03) 40%, transparent 70%);
  animation: aura-breathe 6s ease-in-out infinite;
  pointer-events: none;
}

/* ── Aura Rings (Hero decoration) ── */
.aura-rings {
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.aura-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: ring-pulse 4s ease-in-out infinite, color-cycle 12s linear infinite;
}
.aura-ring:nth-child(1) { width: 200px; height: 200px; top: -100px; left: -100px; animation-delay: 0s; }
.aura-ring:nth-child(2) { width: 300px; height: 300px; top: -150px; left: -150px; animation-delay: 0.5s; }
.aura-ring:nth-child(3) { width: 400px; height: 400px; top: -200px; left: -200px; animation-delay: 1s; }
.aura-ring:nth-child(4) { width: 500px; height: 500px; top: -250px; left: -250px; animation-delay: 1.5s; }

/* ── Floating Symbols ── */
.aura-glyphs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aura-glyph {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.04;
  animation: float-glyph 15s ease-in-out infinite;
  user-select: none;
}
.aura-glyph:nth-child(1) { top: 8%; left: 6%; color: #e74c3c; animation-delay: 0s; }
.aura-glyph:nth-child(2) { top: 20%; right: 10%; color: #f1c40f; animation-delay: 2s; }
.aura-glyph:nth-child(3) { top: 38%; left: 15%; color: #2ecc71; animation-delay: 4s; }
.aura-glyph:nth-child(4) { top: 55%; right: 12%; color: #3498db; animation-delay: 6s; }
.aura-glyph:nth-child(5) { top: 72%; left: 8%; color: #9b59b6; animation-delay: 8s; }
.aura-glyph:nth-child(6) { top: 88%; right: 6%; color: var(--color-gold); animation-delay: 10s; }

/* ── Aurora Divider ── */
.aurora-divider {
  height: 2px;
  margin: 4rem auto;
  max-width: 500px;
  background: linear-gradient(90deg, transparent, rgba(231,76,60,0.4), rgba(241,196,15,0.4), rgba(46,204,113,0.4), rgba(52,152,219,0.4), rgba(155,89,182,0.4), transparent);
  background-size: 300% 100%;
  animation: aurora-shift 6s ease-in-out infinite;
  border-radius: 2px;
}

/* ── Knowledge Blocks ── */
.aura-block {
  background: linear-gradient(135deg, rgba(20, 12, 30, 0.6), rgba(10, 5, 20, 0.8));
  border: 1px solid rgba(159,123,237,0.06);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: border-color 0.4s, box-shadow 0.4s;
  animation: section-glow 6s ease-in-out infinite;
}
.aura-block:hover {
  border-color: rgba(159,123,237,0.2);
  box-shadow: 0 0 30px rgba(159,123,237,0.06);
}
.aura-block h3 { color: #9F7BED; font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.8rem; }
.aura-block h4 { color: var(--color-gold); font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.6rem; }
.aura-block p { color: var(--color-text-dim); font-size: 0.92rem; line-height: 1.85; margin-bottom: 0.8rem; }
.aura-block p:last-child { margin-bottom: 0; }

/* ── Color Cards (Upgraded) ── */
.aura-color-card {
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  padding: 1.8rem;
  border: 1px solid rgba(255,255,255,0.03);
  border-left: 4px solid;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.aura-color-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
  pointer-events: none;
  animation: orb-float 5s ease-in-out infinite;
}
.aura-color-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(255,255,255,0.06);
}
.aura-color-card h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.aura-color-card__icon { font-size: 1.4rem; animation: icon-pulse 3s ease-in-out infinite; display: inline-block; }
.aura-color-card p { font-size: 0.88rem; color: var(--color-text-dim); line-height: 1.75; margin-bottom: 0.4rem; }
.aura-color-card p:last-child { margin-bottom: 0; }
.aura-color-card__tag { display: inline-block; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 20px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); margin-bottom: 0.8rem; }
.aura-color-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
@media (max-width: 700px) { .aura-color-grid { grid-template-columns: 1fr; } }

/* Per-color glow animations */
.aura-color-card[data-color="red"] { animation: card-glow-red 5s ease-in-out infinite; }
.aura-color-card[data-color="red"]::before { background: #e74c3c; }
.aura-color-card[data-color="orange"] { animation: card-glow-orange 5s ease-in-out infinite; }
.aura-color-card[data-color="orange"]::before { background: #e67e22; }
.aura-color-card[data-color="yellow"] { animation: card-glow-yellow 5s ease-in-out infinite; }
.aura-color-card[data-color="yellow"]::before { background: #f1c40f; }
.aura-color-card[data-color="green"] { animation: card-glow-green 5s ease-in-out infinite; }
.aura-color-card[data-color="green"]::before { background: #2ecc71; }
.aura-color-card[data-color="blue"] { animation: card-glow-blue 5s ease-in-out infinite; }
.aura-color-card[data-color="blue"]::before { background: #3498db; }
.aura-color-card[data-color="indigo"] { animation: card-glow-indigo 5s ease-in-out infinite; }
.aura-color-card[data-color="indigo"]::before { background: #7c3aed; }
.aura-color-card[data-color="violet"] { animation: card-glow-violet 5s ease-in-out infinite; }
.aura-color-card[data-color="violet"]::before { background: #9b59b6; }
.aura-color-card[data-color="pink"] { animation: card-glow-pink 5s ease-in-out infinite; }
.aura-color-card[data-color="pink"]::before { background: #ff69b4; }
.aura-color-card[data-color="white"] { animation: card-glow-white 5s ease-in-out infinite; }
.aura-color-card[data-color="white"]::before { background: #fff; }
.aura-color-card[data-color="gold"] { animation: card-glow-gold 5s ease-in-out infinite; }
.aura-color-card[data-color="gold"]::before { background: #c9a84c; }
.aura-color-card[data-color="silver"] { animation: card-glow-silver 5s ease-in-out infinite; }
.aura-color-card[data-color="silver"]::before { background: #c0c0c0; }
.aura-color-card[data-color="black"] { animation: card-glow-black 5s ease-in-out infinite; }
.aura-color-card[data-color="black"]::before { background: #666; }

/* stagger animation delays */
.aura-color-card:nth-child(2) { animation-delay: 0.4s; }
.aura-color-card:nth-child(2) .aura-color-card__icon { animation-delay: 0.3s; }
.aura-color-card:nth-child(3) { animation-delay: 0.8s; }
.aura-color-card:nth-child(3) .aura-color-card__icon { animation-delay: 0.6s; }
.aura-color-card:nth-child(4) { animation-delay: 1.2s; }
.aura-color-card:nth-child(5) { animation-delay: 1.6s; }
.aura-color-card:nth-child(6) { animation-delay: 2.0s; }
.aura-color-card:nth-child(7) { animation-delay: 2.4s; }
.aura-color-card:nth-child(8) { animation-delay: 2.8s; }
.aura-color-card:nth-child(9) { animation-delay: 3.2s; }
.aura-color-card:nth-child(10) { animation-delay: 3.6s; }
.aura-color-card:nth-child(11) { animation-delay: 4.0s; }
.aura-color-card:nth-child(12) { animation-delay: 4.4s; }

/* ── Frequency Table ── */
.freq-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.freq-table th { padding: 0.8rem; text-align: left; color: #9F7BED; border-bottom: 1px solid rgba(159,123,237,0.15); }
.freq-table td { padding: 0.8rem; color: var(--color-text-dim); border-bottom: 1px solid rgba(255,255,255,0.03); transition: background 0.3s; }
.freq-table tr:hover td { background: rgba(159,123,237,0.05); }

/* ── Locked Content ── */
.aura-locked { position: relative; }
.aura-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 20, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: inherit;
  z-index: 10;
}
.aura-locked-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .aura-block { padding: 1.5rem; }
  .aura-ring:nth-child(3), .aura-ring:nth-child(4) { display: none; }
  .aura-color-card { padding: 1.4rem; }
}
