/* ============================================================
   PHI-NEXT — oracle.css
   Sanctuary mood for the Delphi© "consult the oracle" section.
   Depth, slow golden vapor, breathing light. The 3D canvas is
   decorative; the button and revelation text are fully usable
   without it.
   ============================================================ */

.oracle-sanctuary {
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(201,168,76,0.07), transparent 70%),
    var(--color-bg-secondary, #15120c);
  text-align: center;
  isolation: isolate;
}

.oracle-sanctuary::before {
  content: '';
  position: absolute;
  inset: -10% -10%;
  background:
    radial-gradient(40% 35% at 30% 20%, rgba(201,168,76,0.05), transparent 70%),
    radial-gradient(45% 40% at 75% 80%, rgba(201,168,76,0.06), transparent 70%);
  filter: blur(2px);
  animation: phiVaporDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes phiVaporDrift {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(-2%) scale(1.04); }
}

.oracle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
}

.oracle-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.oracle-consult-btn {
  margin-top: var(--space-md);
  background: transparent;
  border: 1px solid var(--color-gold-primary);
  color: var(--color-gold-primary);
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.4s ease;
}

.oracle-consult-btn:hover,
.oracle-consult-btn:focus-visible {
  background: var(--color-gold-primary);
  color: var(--color-bg-primary);
  box-shadow: 0 0 28px rgba(201,168,76,0.35);
}

.oracle-consult-btn:focus-visible {
  outline: 2px solid var(--color-text-light);
  outline-offset: 3px;
}

.oracle-revelation {
  margin-top: var(--space-lg);
  min-height: 2.6em;
  font-family: var(--font-display, serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--color-text-light);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.oracle-revelation.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .oracle-sanctuary::before { animation: none; }
  .oracle-canvas { display: none; }
  .oracle-revelation { transition: opacity 0.3s ease; }
}

@media (max-width: 768px) {
  .oracle-canvas { opacity: 0.55; }
}
