/* ============================================
   HOMEPAGE HERO V2 — Enhanced CSS
   New styles for all 14 improvements
   ============================================ */

/* ===== HERO CONTROLS (Drishti + Nakshatra toggles) ===== */
.hero-controls {
  position: absolute;
  top: 4.8rem;
  right: 1.5rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeInDown 1s 2.5s both;
}

.hero-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: rgba(20, 16, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 154, 44, 0.2);
  border-radius: 4px;
  color: var(--ink-faded);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hero-toggle-btn:hover {
  border-color: rgba(196, 154, 44, 0.4);
  color: var(--gold-ink);
  background: rgba(30, 24, 16, 0.95);
}

.hero-toggle-btn.active {
  border-color: rgba(196, 154, 44, 0.5);
  color: var(--gold-bright);
  background: rgba(196, 154, 44, 0.12);
}

.hero-toggle-btn .toggle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faded);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hero-toggle-btn.active .toggle-dot {
  background: var(--gold-bright);
  box-shadow: 0 0 6px rgba(196, 154, 44, 0.6);
}

/* ===== TOOLTIP LOCKED STATE [#8] ===== */
.planet-tooltip.locked {
  border-color: rgba(196, 154, 44, 0.55);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 30px rgba(196, 154, 44, 0.18);
}

.planet-tooltip.locked::after {
  content: 'Click to unlock';
  display: block;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(196, 154, 44, 0.15);
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-shadow);
  text-align: center;
}

/* ===== MOBILE PLANET PANEL [#11] ===== */
.mobile-planet-panel {
  display: none;
}

@media (max-width: 768px) {
  .mobile-planet-panel {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(20, 16, 10, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(196, 154, 44, 0.35);
    border-radius: 16px 16px 0 0;
    padding: 1.2rem 1.4rem 2rem;
    max-height: 55vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  }

  .mobile-planet-panel.visible {
    transform: translateY(0);
  }

  .mobile-planet-panel::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(196, 154, 44, 0.3);
    border-radius: 2px;
    margin: 0 auto 0.8rem;
  }

  .mobile-panel-close {
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faded);
    margin-top: 1rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(196, 154, 44, 0.12);
  }

  /* On mobile v2, show hero full and allow touch */
  .hero-cosmic {
    height: 80vh;
    min-height: 500px;
  }

  /* Show controls on mobile too */
  .hero-controls {
    top: auto;
    bottom: 1rem;
    right: 1rem;
    flex-direction: row;
  }

  .hero-toggle-btn {
    font-size: 0.55rem;
    padding: 0.35rem 0.65rem;
  }

  /* Hide desktop tooltip on mobile */
  .planet-tooltip {
    display: none;
  }

  /* Show solar title on mobile v2 (was hidden before) */
  .hero-solar-title {
    display: block !important;
    top: auto;
    bottom: 4rem;
    left: 1rem;
    right: 1rem;
    text-align: center;
  }

  .hero-solar-title h2 {
    font-size: 1rem;
  }

  .hero-solar-title p {
    font-size: 0.55rem;
  }

  .hero-geocentric-note {
    display: none;
  }
}

/* ===== ENTRY ANIMATION HELPERS ===== */
@keyframes heroCanvasFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#hero-canvas {
  animation: heroCanvasFadeIn 1s 0.3s both;
}

/* ===== CONJUNCTION GLOW HINT (for hover label later) ===== */
.conjunction-label {
  position: absolute;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: rgba(20, 16, 10, 0.9);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(196, 154, 44, 0.25);
  border-radius: 3px;
  pointer-events: none;
  z-index: 4;
  white-space: nowrap;
}
