/* ============================================================
   Raven Society — Oculta
   Global Design System Styles
   ============================================================ */

/* Base */
body {
  background-color: #16121a;
  color: #e9dfec;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ---- Glassmorphism ---- */
.glass-card {
  background: rgba(45, 40, 50, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-panel {
  background: rgba(45, 40, 50, 0.4);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(219, 184, 255, 0.1);
}

/* ---- Nebula / Glow FX ---- */
.nebula-glow {
  background: radial-gradient(circle at center, rgba(149, 76, 228, 0.15) 0%, transparent 70%);
}

.nebula-bg {
  background: radial-gradient(circle at 50% 50%, rgba(149, 76, 228, 0.15) 0%, transparent 70%);
}

.celestial-glow {
  background: radial-gradient(circle at 50% -20%, rgba(149, 76, 228, 0.15) 0%, transparent 70%);
}

.astral-bg {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(159, 202, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(220, 184, 255, 0.05) 0%, transparent 40%);
}

.ethereal-glow {
  box-shadow: 0 0 40px rgba(149, 76, 228, 0.15);
}

.glow-border:hover {
  border-color: rgba(219, 184, 255, 0.4);
  box-shadow: 0 0 20px rgba(219, 184, 255, 0.1);
}

/* ---- Star Field ---- */
.star-field {
  background-image:
    radial-gradient(2px 2px at 20px 30px,  #eee, rgba(238,238,238,0)),
    radial-gradient(2px 2px at 40px 70px,  #fff, rgba(255,255,255,0)),
    radial-gradient(2px 2px at 50px 160px, #ddd, rgba(221,221,221,0)),
    radial-gradient(2px 2px at 90px 40px,  #fff, rgba(255,255,255,0)),
    radial-gradient(2px 2px at 130px 80px, #fff, rgba(255,255,255,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  position: absolute;
  inset: 0;
}

/* ---- Stars ---- */
.stars-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* ---- Animations ---- */
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.2); }
}

.twinkle-1 { animation: twinkle 2s   ease-in-out infinite; }
.twinkle-2 { animation: twinkle 3s   ease-in-out infinite 0.6s; }
.twinkle-3 { animation: twinkle 4s   ease-in-out infinite 1.2s; }
.twinkle-fast    { animation: twinkle 1.4s ease-in-out infinite; }
.twinkle-faster  { animation: twinkle 0.9s ease-in-out infinite; }

@keyframes borderGlow {
  0%, 100% {
    border-bottom-color: rgba(219, 184, 255, 0.1);
    box-shadow: 0 4px 15px -10px rgba(219, 184, 255, 0.1);
  }
  50% {
    border-bottom-color: rgba(219, 184, 255, 0.4);
    box-shadow: 0 4px 20px -5px rgba(219, 184, 255, 0.3);
  }
}

.nav-glow {
  border-bottom: 1px solid transparent;
  animation: borderGlow 4s ease-in-out infinite;
}

/* Pre-style the nav auth button to prevent FOUC */
nav a[href="login.html"],
nav a[href="aquelarre.html"] {
  border: 1px solid rgba(219, 184, 255, 0.4);
  color: #dbb8ff;
  padding: 6px 20px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

/* Dark theme for native date / time pickers */
input[type="date"],
input[type="time"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(0.6) saturate(2) hue-rotate(220deg);
  cursor: pointer;
  border-radius: 4px;
  padding: 2px;
  opacity: 0.75;
  transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background: rgba(219, 184, 255, 0.1);
}

/* Clickable full-width date/time inputs */
input[type="date"],
input[type="time"] {
  cursor: pointer;
}

/* Dark theme for select dropdowns */
select {
  color-scheme: dark;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23978d9f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem !important;
  appearance: none;
  -webkit-appearance: none;
}

select option,
select optgroup {
  background-color: #231e27;
  color: #e9dfec;
}

@keyframes nebulaPulse {
  0%, 100% { transform: scale(1);   opacity: 0.4; }
  50%       { transform: scale(1.1); opacity: 0.6; }
}

.nebula-pulse {
  animation: nebulaPulse 10s ease-in-out infinite;
}

/* ---- Hero entrance ---- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-fade-1 { animation: heroFadeUp 0.7s ease both; }
.hero-fade-2 { animation: heroFadeUp 0.7s ease 0.1s both; }
.hero-fade-3 { animation: heroFadeUp 0.7s ease 0.2s both; }
.hero-fade-4 { animation: heroFadeUp 0.7s ease 0.3s both; }

/* ---- Service cards float ---- */
@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
.float-1 { animation: floatCard 3s   ease-in-out infinite; }
.float-2 { animation: floatCard 3.6s ease-in-out infinite 0.4s; }
.float-3 { animation: floatCard 4.2s ease-in-out infinite 0.8s; }

/* ---- Scroll arrow bounce ---- */
@keyframes bounceArrow {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.4; }
  50%       { transform: translateX(-50%) translateY(9px); opacity: 0.75; }
}
.bounce-arrow { animation: bounceArrow 1.6s ease-in-out infinite; }
