/* ═══════════════════════════════════════════════
   REIKI.CSS — The Universal Life Force Stylesheet
   Animations, symbols, energy effects, tier cards
   ═══════════════════════════════════════════════ */

/* ── Floating Reiki Symbols ── */
@keyframes float-symbol {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.08; }
  25% { transform: translateY(-30px) rotate(5deg); opacity: 0.15; }
  50% { transform: translateY(-50px) rotate(-3deg); opacity: 0.1; }
  75% { transform: translateY(-25px) rotate(4deg); opacity: 0.12; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(78, 205, 196, 0.1); }
  50% { box-shadow: 0 0 40px rgba(78, 205, 196, 0.25), 0 0 80px rgba(78, 205, 196, 0.08); }
}

@keyframes ki-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes energy-ripple {
  0% { transform: scale(0.8); opacity: 0.6; box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.3); }
  70% { transform: scale(1); opacity: 0; box-shadow: 0 0 0 30px rgba(78, 205, 196, 0); }
  100% { transform: scale(0.8); opacity: 0; box-shadow: 0 0 0 0 rgba(78, 205, 196, 0); }
}

@keyframes chakra-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Floating Symbol Overlays ── */
.reiki-symbols-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.reiki-symbol {
  position: absolute;
  font-size: 3rem;
  opacity: 0.06;
  animation: float-symbol 12s ease-in-out infinite;
  user-select: none;
  color: rgba(78, 205, 196, 0.4);
}
.reiki-symbol:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; font-size: 2.5rem; }
.reiki-symbol:nth-child(2) { top: 25%; right: 8%; animation-delay: 2s; font-size: 3.5rem; }
.reiki-symbol:nth-child(3) { top: 45%; left: 12%; animation-delay: 4s; font-size: 2rem; }
.reiki-symbol:nth-child(4) { top: 60%; right: 15%; animation-delay: 6s; font-size: 4rem; }
.reiki-symbol:nth-child(5) { top: 75%; left: 8%; animation-delay: 8s; font-size: 2.5rem; }
.reiki-symbol:nth-child(6) { top: 85%; right: 5%; animation-delay: 10s; font-size: 3rem; }
.reiki-symbol:nth-child(7) { top: 15%; left: 50%; animation-delay: 3s; font-size: 2rem; }
.reiki-symbol:nth-child(8) { top: 40%; right: 40%; animation-delay: 7s; font-size: 3rem; }

/* ── Hero Section ── */
.reiki-hero {
  background: radial-gradient(ellipse at center, rgba(10, 30, 30, 0.6) 0%, var(--color-bg-deep) 75%);
  position: relative;
  overflow: hidden;
}
.reiki-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 15, 15, 0.4) 0%, var(--color-bg-deep) 100%);
}
.reiki-hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(78, 205, 196, 0.06) 0%, transparent 70%);
  animation: breathe 8s ease-in-out infinite;
  pointer-events: none;
}

/* ── Energy Pulse Circle (Hero) ── */
.energy-mandala {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(78, 205, 196, 0.08);
  animation: spin-slow 60s linear infinite;
  pointer-events: none;
}
.energy-mandala::before,
.energy-mandala::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(78, 205, 196, 0.05);
}
.energy-mandala::before {
  inset: 40px;
  animation: spin-slow 45s linear infinite reverse;
}
.energy-mandala::after {
  inset: 90px;
  animation: spin-slow 30s linear infinite;
}

/* ── Knowledge Blocks ── */
.reiki-block {
  background: linear-gradient(135deg, rgba(10, 25, 25, 0.6), rgba(5, 15, 15, 0.8));
  border: 1px solid rgba(78, 205, 196, 0.08);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  transition: border-color 0.4s;
}
.reiki-block:hover {
  border-color: rgba(78, 205, 196, 0.2);
}
.reiki-block h3 {
  color: #4ecdc4;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.03em;
}
.reiki-block h4 {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}
.reiki-block p {
  color: var(--color-text-dim);
  font-size: 0.92rem;
  line-height: 1.85;
  margin-bottom: 0.8rem;
}
.reiki-block p:last-child { margin-bottom: 0; }

/* ── Principle Cards ── */
.principle-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(78, 205, 196, 0.08);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.4s;
}
.principle-card:hover {
  border-color: rgba(78, 205, 196, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.principle-card__jp {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.3rem;
  opacity: 0.8;
}
.principle-card__en {
  font-size: 0.85rem;
  color: #4ecdc4;
  font-family: var(--font-display);
  display: block;
  margin-bottom: 0.5rem;
}
.principle-card__desc {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  line-height: 1.6;
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

/* ── Level Cards (Main Page) ── */
.level-card {
  background: linear-gradient(135deg, rgba(10, 25, 25, 0.8), rgba(5, 15, 15, 0.95));
  border: 1px solid rgba(78, 205, 196, 0.08);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}
.level-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  transition: opacity 0.4s;
  opacity: 0;
}
.level-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  animation: pulse-glow 2s ease-in-out infinite;
}
.level-card:hover::before { opacity: 1; }
.level-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  opacity: 0.1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}
.level-card__jp {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}
.level-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  letter-spacing: 0.03em;
}
.level-card__subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.6;
}
.level-card__desc {
  font-size: 0.88rem;
  color: var(--color-text-dim);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.level-card__peek {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  padding-top: 1rem;
  border-top: 1px solid rgba(78, 205, 196, 0.05);
  font-style: italic;
}
.level-card__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(78, 205, 196, 0.05);
}
.level-card__cta span:first-child {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4ecdc4;
}
.level-card__cta span:last-child { font-size: 0.8rem; color: var(--color-text-muted); }
.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 768px) { .level-grid { grid-template-columns: 1fr; } }

/* ── Hand Position Steps ── */
.hand-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}
.hand-step__num {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(78, 205, 196, 0.08);
  border: 1px solid rgba(78, 205, 196, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: #4ecdc4;
  flex-shrink: 0;
}
.hand-step p {
  color: var(--color-text-dim);
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0;
}

/* ── Locked Content ── */
.reiki-locked {
  position: relative;
}
.reiki-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 15, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: inherit;
  z-index: 10;
}
.reiki-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;
}

/* ── Chakra Indicator Dots ── */
.chakra-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.chakra-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: breathe 3s ease-in-out infinite;
}
.chakra-dot:nth-child(1) { background: #e74c3c; animation-delay: 0s; }
.chakra-dot:nth-child(2) { background: #e67e22; animation-delay: 0.3s; }
.chakra-dot:nth-child(3) { background: #f1c40f; animation-delay: 0.6s; }
.chakra-dot:nth-child(4) { background: #2ecc71; animation-delay: 0.9s; }
.chakra-dot:nth-child(5) { background: #3498db; animation-delay: 1.2s; }
.chakra-dot:nth-child(6) { background: #2c3e50; animation-delay: 1.5s; }
.chakra-dot:nth-child(7) { background: #9b59b6; animation-delay: 1.8s; }

/* ── Ki Flow Divider ── */
.ki-divider {
  height: 2px;
  margin: 4rem auto;
  max-width: 400px;
  background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.4), rgba(159, 123, 237, 0.3), rgba(78, 205, 196, 0.4), transparent);
  background-size: 200% 100%;
  animation: ki-flow 4s ease-in-out infinite;
  border-radius: 2px;
}

/* ── Related Navigation ── */
.reiki-nav { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid rgba(78, 205, 196, 0.05); }
.reiki-nav > p { text-align: center; color: var(--color-text-muted); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 2rem; }
.reiki-nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.reiki-nav-link { padding: 1.2rem; text-align: center; text-decoration: none; display: block; background: rgba(10, 25, 25, 0.5); border: 1px solid rgba(78, 205, 196, 0.05); border-radius: 6px; transition: all 0.3s; }
.reiki-nav-link:hover { border-color: rgba(78, 205, 196, 0.2); transform: translateY(-3px); }
.reiki-nav-link span { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .reiki-block { padding: 1.5rem; }
  .level-card { padding: 1.8rem 1.5rem; }
  .energy-mandala { width: 300px; height: 300px; }
}
