/* ==========================================================================
   ORBITAL — Interactive 3D Astrolabe & Sky Wheel Styles
   Award-Nominated Dual-Theme (Celestial Obsidian & Solar Alabaster)
   ========================================================================== */

.hero-astrolabe-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.astrolabe-ambient-glow {
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 68%);
  pointer-events: none;
  z-index: 1;
}

.astrolabe-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.45), inset 0 0 30px var(--gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.08s linear, box-shadow 0.25s ease;
  z-index: 2;
}

.astrolabe-container:active {
  cursor: grabbing;
}

#astrolabe-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Center Precision Core — Compact */
.astrolabe-center-core {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg-surface) 0%, var(--bg-canvas) 100%);
  border: 1.2px solid var(--gold-primary);
  box-shadow: 0 0 20px var(--gold-glow), inset 0 0 16px var(--gold-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.core-glyph {
  font-size: 1.35rem;
  color: var(--gold-primary);
  line-height: 1;
}

.core-title {
  font-family: var(--font-roman);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-top: 2px;
}

.core-degree {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan-accent);
  margin-top: 1px;
}

/* Floating Planetary Cards Around Astrolabe */
.planet-node-card {
  position: absolute;
  padding: 6px 12px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 12;
}

.planet-node-card .glyph {
  font-size: 1.05rem;
  color: var(--gold-primary);
}

.planet-node-card .sign {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Floating Astrolabe HUD Tooltip */
.astrolabe-hud-tooltip {
  position: absolute;
  padding: 12px 18px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.2px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -125%) scale(0.95);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 50;
  white-space: nowrap;
  text-align: left;
  padding: 8px 12px;
}

.astrolabe-hud-tooltip.active {
  opacity: 1;
  transform: translate(-50%, -125%) scale(1);
}

.astrolabe-hud-header {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

.astrolabe-hud-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
}

.astrolabe-hud-details {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Epoch Time Travel Controls — Compact */
.epoch-controls-bar {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
  z-index: 25;
}

.epoch-btn {
  padding: 4px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.epoch-btn:hover {
  color: var(--gold-primary);
  background: var(--gold-subtle);
}

.epoch-btn.active {
  background: linear-gradient(135deg, #fae8a8 0%, #e5be59 100%);
  color: #0c0802;
  box-shadow: 0 2px 8px var(--gold-glow);
}

html[data-theme="dark"] .epoch-btn.active {
  background: linear-gradient(135deg, #222d48 0%, #101626 100%);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .epoch-btn.active {
  background: linear-gradient(135deg, #e5be59 0%, #b88a22 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(179, 134, 27, 0.3);
}
