/* ===== WORDPRESS-SAFE: All styles scoped to .astro-birth-chart ===== */
.astro-birth-chart *, .astro-birth-chart *::before, .astro-birth-chart *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.astro-birth-chart {
  --rose: #c8637e;
  --rose-light: #f5e6eb;
  --rose-dark: #8c3a52;
  --gold: #b8956a;
  --gold-light: #f7f0e6;
  --indigo: #3d3568;
  --indigo-light: #ede9f7;
  --midnight: #1a1630;
  --cream: #fdf8f4;
  --cream2: #f9f2ec;
  --muted: #7a6e7e;
  --border: rgba(200,99,126,0.18);
  --shadow: 0 2px 24px rgba(61,53,104,0.08);
  font-family: 'Jost', sans-serif;
  color: #2a2035;
  background: var(--cream);
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
}
.astro-birth-chart h1, .astro-birth-chart h2, .astro-birth-chart h3 {
  font-family: 'Cormorant Garamond', serif;
}

/* Header */
.abc-header {
  background: linear-gradient(135deg, var(--midnight) 0%, var(--indigo) 100%);
  color: white;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.abc-header::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px; right: -40px; bottom: -40px;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,99,126,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(184,149,106,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.abc-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  position: relative;
}
.abc-header .abc-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 0.4rem;
  position: relative;
}
.abc-stars {
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.8rem;
  position: relative;
}

/* Form Panel */
.abc-form-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.abc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 580px) {
  .abc-form-grid { grid-template-columns: 1fr; }
  .abc-form-panel { margin: 1rem; padding: 1.2rem; }
}
.abc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.abc-field.abc-full { grid-column: 1 / -1; }
.abc-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.abc-input {
  border: 1.5px solid rgba(200,99,126,0.2);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: #2a2035;
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.abc-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(200,99,126,0.1);
  background: white;
}
.abc-input::placeholder { color: #bbb; }
.abc-date-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  gap: 0.5rem;
}
.abc-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: end;
}
.abc-unknown-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  padding-bottom: 0.65rem;
}
.abc-unknown-time input { accent-color: var(--rose); }

/* City Search */
.abc-city-wrap { position: relative; }
.abc-city-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: white;
  border: 1.5px solid var(--rose);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 9999;
  max-height: 220px;
  overflow-y: auto;
  display: none;
}
.abc-city-results.open { display: block; }
.abc-city-option {
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-size: 0.88rem;
  border-bottom: 0.5px solid var(--border);
  transition: background 0.15s;
}
.abc-city-option:hover, .abc-city-option.selected {
  background: var(--rose-light);
  color: var(--rose-dark);
}
.abc-city-option .city-country {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.4rem;
}
.abc-latlon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.abc-latlon-val {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.4rem 0.6rem;
  background: var(--cream2);
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Submit */
.abc-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.9rem 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  margin-top: 1rem;
  transition: opacity 0.2s, transform 0.15s;
}
.abc-submit:hover { opacity: 0.92; transform: translateY(-1px); }
.abc-submit:active { transform: translateY(0); }
.abc-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Loading */
.abc-loading {
  text-align: center;
  padding: 2rem;
  display: none;
}
.abc-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--rose-light);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: abc-spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes abc-spin { to { transform: rotate(360deg); } }

/* ===== RESULTS ===== */
.abc-results { display: none; margin: 0 1.5rem 2rem; }

.abc-chart-header {
  background: linear-gradient(135deg, var(--midnight) 0%, var(--indigo) 100%);
  border-radius: 14px 14px 0 0;
  padding: 1.8rem 2rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.abc-chart-wheel-mini {
  width: 72px; height: 72px;
  flex-shrink: 0;
}
.abc-chart-person h2 {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.abc-chart-person .abc-birthinfo {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
}

/* Big Three */
.abc-big3 {
  background: var(--gold-light);
  border: 1px solid rgba(184,149,106,0.25);
  padding: 1.2rem 2rem;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
}
@media (max-width: 480px) { .abc-big3 { grid-template-columns: 1fr; padding: 1rem; } }
.abc-b3-item { text-align: center; }
.abc-b3-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.abc-b3-sign {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--indigo);
  margin-top: 0.15rem;
}
.abc-b3-glyph { font-size: 1.6rem; margin-bottom: 0.1rem; }

/* Sections */
.abc-section {
  background: white;
  border: 1px solid var(--border);
  border-top: none;
  padding: 1.5rem 2rem;
}
.abc-section:last-child { border-radius: 0 0 14px 14px; }
.abc-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--indigo);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.abc-section-title span { font-size: 1rem; }

/* Planet table */
.abc-planet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.6rem;
}
.abc-planet-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
}
.abc-planet-glyph {
  font-size: 1.3rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.abc-planet-info { flex: 1; min-width: 0; }
.abc-planet-name {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.abc-planet-pos {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--indigo);
  white-space: nowrap;
}
.abc-planet-retrograde {
  font-size: 0.65rem;
  color: var(--rose);
  background: var(--rose-light);
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 500;
}

/* House table */
.abc-house-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}
.abc-house-row {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.abc-house-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--rose);
  width: 22px;
  flex-shrink: 0;
}
.abc-house-info .abc-house-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.abc-house-info .abc-house-pos {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--indigo);
}

/* Aspects */
.abc-aspects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem;
}
.abc-aspect-row {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}
.abc-aspect-type {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.abc-aspect-conj { background: var(--indigo-light); color: var(--indigo); }
.abc-aspect-trine { background: #e6f7ee; color: #2a6b44; }
.abc-aspect-sext { background: #e8f4fd; color: #1a5e8a; }
.abc-aspect-sq { background: #fdecea; color: #8b2a2a; }
.abc-aspect-opp { background: #fff3e0; color: #7a4500; }

/* Interpretation */
.abc-interp-block {
  margin-bottom: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--cream);
  border-left: 3px solid var(--rose);
  border-radius: 0 10px 10px 0;
  transition: border-color 0.2s;
}
.abc-interp-block:hover { border-left-color: var(--gold); }
.abc-interp-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--indigo);
  margin-bottom: 0.7rem;
  letter-spacing: 0.01em;
}
.abc-interp-text {
  font-size: 0.88rem;
  color: #4a4060;
  line-height: 1.8;
}
.abc-interp-text p {
  margin-bottom: 0.8rem;
}
.abc-interp-text p:last-child {
  margin-bottom: 0;
}
.abc-interp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.abc-interp-tab {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
  font-family: 'Jost', sans-serif;
}
.abc-interp-tab.active, .abc-interp-tab:hover {
  background: var(--rose-light);
  border-color: var(--rose);
  color: var(--rose-dark);
}

/* Wheel SVG */
.abc-wheel-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}
.abc-wheel-wrap svg { max-width: 400px; width: 100%; }

/* Element/Modality */
.abc-elem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.abc-elem-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}
.abc-elem-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--indigo);
  margin-bottom: 0.7rem;
}
.abc-bar-row { margin-bottom: 0.5rem; }
.abc-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.abc-bar-track {
  background: var(--border);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}
.abc-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.abc-bar-fire { background: #e05a2b; }
.abc-bar-earth { background: #6b8c42; }
.abc-bar-air { background: #4a90c4; }
.abc-bar-water { background: #7b5ea7; }
.abc-bar-card { background: #b5763a; }
.abc-bar-fixed { background: #c44b6e; }
.abc-bar-mutable { background: #3a9e8a; }

.abc-error {
  background: #fdecea;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  color: #8b2a2a;
  font-size: 0.9rem;
  margin: 1rem 1.5rem;
  display: none;
}

/* Print */
@media print {
  .abc-form-panel, .abc-header { display: none; }
  .abc-results { display: block !important; margin: 0; }
}