/* ═══════════════════════════════════════════════
   NUMEROLOGY.CSS — The Hidden Code Stylesheet
   Cosmic digits, sacred geometry, glowing numbers
   ═══════════════════════════════════════════════ */

@keyframes digit-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.04; }
  25% { transform: translateY(-25px) rotate(5deg); opacity: 0.09; }
  50% { transform: translateY(-40px) rotate(-3deg); opacity: 0.06; }
  75% { transform: translateY(-15px) rotate(2deg); opacity: 0.08; }
}

@keyframes cosmic-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(201,168,76,0.05), 0 0 60px rgba(159,123,237,0.03); }
  50% { box-shadow: 0 0 50px rgba(201,168,76,0.12), 0 0 100px rgba(159,123,237,0.06); }
}

@keyframes number-glow {
  0%, 100% { text-shadow: 0 0 10px currentColor; opacity: 0.9; }
  50% { text-shadow: 0 0 25px currentColor, 0 0 50px currentColor; opacity: 1; }
}

@keyframes geo-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes calc-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.08); border-color: rgba(201,168,76,0.15); }
  50% { box-shadow: 0 0 40px rgba(201,168,76,0.15), 0 0 80px rgba(159,123,237,0.05); border-color: rgba(201,168,76,0.3); }
}

@keyframes result-reveal {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes section-breathe {
  0%, 100% { border-color: rgba(201,168,76,0.04); }
  50% { border-color: rgba(201,168,76,0.12); }
}

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

/* ── Hero ── */
.numerology-hero {
  background: radial-gradient(ellipse at center, rgba(30, 20, 10, 0.5) 0%, var(--color-bg-deep) 75%);
  position: relative;
  overflow: hidden;
}
.numerology-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,16,0.3) 0%, var(--color-bg-deep) 100%);
}
.numerology-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  width: 450px; height: 450px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, rgba(159,123,237,0.02) 50%, transparent 75%);
  animation: cosmic-pulse 7s ease-in-out infinite;
  pointer-events: none;
}

/* Sacred geometry decoration */
.sacred-geo {
  position: absolute;
  top: 50%; left: 50%;
  width: 350px; height: 350px;
  border: 1px solid rgba(201,168,76,0.06);
  border-radius: 0;
  animation: geo-rotate 120s linear infinite;
  pointer-events: none;
}
.sacred-geo:nth-child(2) { width: 280px; height: 280px; border-radius: 50%; animation-duration: 90s; animation-direction: reverse; border-color: rgba(159,123,237,0.04); }
.sacred-geo:nth-child(3) { width: 400px; height: 400px; transform: translate(-50%,-50%) rotate(45deg); animation-duration: 150s; border-color: rgba(201,168,76,0.03); }

/* ── Floating Digits ── */
.floating-digits {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.floating-digit {
  position: absolute;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  opacity: 0.04;
  animation: digit-float 18s ease-in-out infinite;
  user-select: none;
  color: var(--color-gold);
}
.floating-digit:nth-child(1) { top: 5%; left: 4%; animation-delay: 0s; }
.floating-digit:nth-child(2) { top: 15%; right: 8%; animation-delay: 2s; }
.floating-digit:nth-child(3) { top: 30%; left: 12%; animation-delay: 4s; }
.floating-digit:nth-child(4) { top: 45%; right: 5%; animation-delay: 6s; }
.floating-digit:nth-child(5) { top: 60%; left: 7%; animation-delay: 8s; }
.floating-digit:nth-child(6) { top: 75%; right: 11%; animation-delay: 10s; }
.floating-digit:nth-child(7) { top: 88%; left: 15%; animation-delay: 12s; }
.floating-digit:nth-child(8) { top: 50%; left: 3%; animation-delay: 14s; }
.floating-digit:nth-child(9) { top: 22%; left: 85%; animation-delay: 16s; }

/* ── Golden Divider ── */
.golden-divider {
  height: 2px;
  margin: 4rem auto;
  max-width: 400px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), rgba(159,123,237,0.3), rgba(201,168,76,0.5), transparent);
  background-size: 200% 100%;
  animation: aurora-shift 5s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes aurora-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Knowledge Blocks ── */
.num-block {
  background: linear-gradient(135deg, rgba(20, 15, 8, 0.6), rgba(10, 5, 2, 0.8));
  border: 1px solid rgba(201,168,76,0.06);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: border-color 0.4s, box-shadow 0.4s;
  animation: section-breathe 7s ease-in-out infinite;
}
.num-block:hover {
  border-color: rgba(201,168,76,0.18);
  box-shadow: 0 0 25px rgba(201,168,76,0.05);
}
.num-block h3 { color: var(--color-gold); font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.8rem; }
.num-block p { color: var(--color-text-dim); font-size: 0.92rem; line-height: 1.85; margin-bottom: 0.8rem; }
.num-block p:last-child { margin-bottom: 0; }

/* ── Number Profile Cards ── */
.num-profile {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(201,168,76,0.06);
  border-radius: 12px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  animation: section-breathe 6s ease-in-out infinite;
}
.num-profile:hover {
  border-color: rgba(201,168,76,0.15);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.num-profile__img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.2));
}
.num-profile__content { flex: 1; }
.num-profile__content h4 { color: var(--color-gold); font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.5rem; }
.num-profile__content p { color: var(--color-text-dim); font-size: 0.88rem; line-height: 1.75; margin-bottom: 0.4rem; }
.num-profile__content p:last-child { margin-bottom: 0; }
.num-profile__tag { display: inline-block; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 20px; background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.1); color: var(--color-gold); margin-bottom: 0.6rem; }
@media (max-width: 600px) {
  .num-profile { flex-direction: column; align-items: center; text-align: center; }
  .num-profile__img { width: 60px; height: 60px; }
}

/* ── Year Cycle Cards ── */
.year-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.year-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(201,168,76,0.06);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}
.year-card:hover {
  border-color: rgba(201,168,76,0.15);
  transform: translateY(-3px);
}
.year-card__img {
  width: 60px; height: 60px;
  object-fit: contain;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.15));
}
.year-card h5 { color: var(--color-gold); font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.4rem; }
.year-card p { font-size: 0.82rem; color: var(--color-text-dim); line-height: 1.7; }
@media (max-width: 600px) { .year-grid { grid-template-columns: 1fr; } }

/* ── Calculator ── */
.calc-box {
  background: linear-gradient(135deg, rgba(20, 15, 8, 0.7), rgba(10, 5, 2, 0.9));
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
  animation: calc-glow 6s ease-in-out infinite;
}
.calc-box label {
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}
.calc-box input[type="date"] {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  color: #fff;
  font-size: 1rem;
  width: 100%;
  max-width: 280px;
  text-align: center;
  margin-bottom: 1.2rem;
  transition: border-color 0.3s;
}
.calc-box input[type="date"]:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(201,168,76,0.1);
}
.calc-btn {
  background: linear-gradient(135deg, var(--color-gold), #b8942e);
  color: #000;
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}
.calc-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(201,168,76,0.3);
}
.calc-result {
  margin-top: 1.5rem;
  animation: result-reveal 0.5s ease-out;
}
.calc-result__number {
  font-size: 4rem;
  font-family: var(--font-display);
  color: var(--color-gold);
  animation: number-glow 3s ease-in-out infinite;
  line-height: 1;
}
.calc-result__title {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}
.calc-result__desc {
  color: var(--color-text-dim);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Locked Content ── */
.num-locked { position: relative; }
.num-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 2, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: inherit;
  z-index: 10;
}
.num-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) {
  .num-block { padding: 1.5rem; }
  .calc-box { padding: 1.5rem; }
  .sacred-geo { display: none; }
}
