/* =========================================================
   AstroAPI Horoscope Widget
   ========================================================= */

.astro-horoscope {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 0 20px #ff660015;
  max-width: 920px;
  margin: 0 auto;
}

.astro-horoscope-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 1.25rem;
}

.astro-horoscope-chart {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================================
   CONTROLS (INTERNAL ONLY)
   ========================================================= */

.astro-horoscope-controls {
  background: var(--bg-muted);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

/* INPUTS — THIS IS THE FIX */

.astro-horoscope-controls .astro-input {
  width: 100%;
  padding: 0.5rem;
  border-radius: var(--radius);
  background: #1c1c1c;
  border: 1px solid var(--outline);
  color: var(--text);
  font-size: 0.75rem;
  margin-bottom: 1.25rem; /* ✅ REAL SPACING */
}

/* Remove spacing below the LAST input only */
.astro-horoscope-controls .astro-input:last-of-type {
  margin-bottom: 0;
}

/* =========================================================
   BUTTON ROW (CENTERED TO INPUT WIDTH)
   ========================================================= */

.astro-control-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* SMALLER BUTTONS */

.astro-control-row button {
  width: 36px;
  height: 26px;
  font-size: 0.65rem;
  line-height: 1;
  border-radius: 6px;
  background: var(--primary);
  border: none;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================
   SVG / PLANETS
   ========================================================= */

.astro-horoscope svg {
  max-width: 100%;
  height: auto;
}

.planet-glyph {
  font-size: 16px;
  fill: var(--primary);
  pointer-events: none;
}

/* =========================================================
   RESPONSIVE (SAFE)
   ========================================================= */

@media (max-width: 820px) {
  .astro-horoscope-layout {
    grid-template-columns: 1fr;
  }

  .astro-control-row {
    justify-content: center;
  }
}
