/**
 * Horoscope page — small additions only; .page-head/.horo-date/.page-lede/
 * .page-cta/.cards/.glass.grad-border/.glyph-orb all reuse theme.css.
 * Enqueued only on page-templates/page-horoscope.php.
 */

/* Font Awesome zodiac glyphs (used as a fallback when a rashi's "symbol"
   ACF field is left blank) render a touch large inside the round
   .glyph-orb badge next to the unicode symbols; nudge them to match. */
.glyph-orb i.fa-solid {
	font-size: 1.05rem;
}

/* ---- today's planetary transit chart ---- */
.horo-transit-card {
	padding: clamp(1.6rem, 3vw, 2.4rem);
	text-align: center;
}
.horo-transit-chart-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.4rem;
}
.horo-transit-svg {
	width: 100%;
	max-width: 22rem;
	height: auto;
	filter: drop-shadow(0 0 14px rgba(110, 63, 243, .18));
}
.horo-transit-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem .9rem;
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 34rem;
}
.horo-transit-legend li {
	display: inline-flex;
	align-items: center;
	gap: .35em;
	font-size: .78rem;
	color: rgba(198, 168, 255, .8);
}
.horo-transit-legend b {
	color: #F4C542;
	font-family: 'Cinzel', serif;
}
.horo-retro,
.horo-combust,
.horo-exalted,
.horo-debilitated {
	font-style: normal;
	font-size: .62rem;
	font-weight: 700;
	border-radius: 4px;
	padding: 0 .3em;
	line-height: 1.3;
}
.horo-retro {
	color: #FF8A8A;
	border: 1px solid rgba(255, 138, 138, .5);
}
.horo-combust {
	color: #C6A8FF;
	border: 1px solid rgba(198, 168, 255, .5);
}
.horo-exalted {
	color: #8FE3A8;
	border: 1px solid rgba(143, 227, 168, .5);
}
.horo-debilitated {
	color: #FFB4A8;
	border: 1px solid rgba(255, 180, 168, .5);
}

/* ---- compact dignity-symbol key ---- */
.horo-transit-symbolkey {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .4rem 1rem;
	list-style: none;
	margin: 0;
	padding: .6rem 0 0;
	border-top: 1px solid rgba(244, 197, 66, .18);
	font-size: .72rem;
	color: rgba(198, 168, 255, .75);
}
.horo-transit-symbolkey b {
	color: #F4C542;
	font-family: 'Cinzel', serif;
	margin-right: .3em;
}

/* ---- "Calculated for <timezone>" caption ---- */
.horo-transit-location {
	margin: 0;
	font-size: .78rem;
	color: rgba(198, 168, 255, .7);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .4em;
}
.horo-transit-location i {
	color: #F4C542;
}

/* ---- "Current Transits" per-planet list ---- */
.horo-transit-list {
	width: 100%;
	max-width: 34rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin-top: .4rem;
}
.horo-transit-row {
	display: grid;
	grid-template-columns: 5.5rem 1fr auto auto;
	align-items: center;
	gap: .6rem;
	padding: .55rem .8rem;
	border-radius: 10px;
	background: rgba(41, 25, 96, .4);
	border: 1px solid rgba(198, 168, 255, .14);
	font-size: .82rem;
	text-align: left;
}
.horo-transit-planet {
	font-family: 'Cinzel', serif;
	color: #FFF6E4;
	font-weight: 600;
}
.horo-transit-sign {
	color: rgba(198, 168, 255, .85);
}
.horo-transit-motion {
	font-size: .72rem;
	color: rgba(198, 168, 255, .65);
	white-space: nowrap;
}
.horo-transit-house {
	font-size: .72rem;
	color: #F4C542;
	white-space: nowrap;
}

@media (max-width: 560px) {
	.horo-transit-row {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"planet sign"
			"motion house";
		row-gap: .25rem;
	}
	.horo-transit-planet { grid-area: planet; }
	.horo-transit-sign   { grid-area: sign; text-align: right; }
	.horo-transit-motion { grid-area: motion; }
	.horo-transit-house  { grid-area: house; text-align: right; }
}

/* ---- date navigation (Previous / Today / Next) ---- */
.horo-datenav {
	display: flex;
	gap: .6rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 1.8rem;
}

/* ---- primary [Rashi] [Ascendant] selector ---- */
.horo-modetoggle {
	display: flex;
	gap: .6rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 1rem;
}

/* ---- secondary "select Rashi / Lagna" dropdown ---- */
.horo-refselect {
	display: flex;
	justify-content: center;
	gap: .5rem;
	margin-top: 1rem;
}
.horo-refselect select {
	appearance: none;
	min-width: 12rem;
	padding: .55rem 2.2rem .55rem 1rem;
	border-radius: 100px;
	background: rgba(41, 25, 96, .5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4C542' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 1em;
	border: 1px solid rgba(198, 168, 255, .3);
	color: #FFF6E4;
	font-family: 'Outfit', sans-serif;
	font-size: .88rem;
	text-align: center;
	text-align-last: center;
}
.horo-refselect select:focus-visible {
	outline: none;
	border-color: #F4C542;
	box-shadow: 0 0 0 3px rgba(244, 197, 66, .16);
}
.horo-refselect select option {
	background: #1B1148;
	color: #FFF6E4;
}

/* ---- house transit list (1st-12th House) ---- */
.horo-house-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .5rem .8rem;
}
.horo-house-list li {
	display: flex;
	flex-wrap: wrap;
	gap: .4em;
	padding: .55rem .8rem;
	border-radius: 10px;
	background: rgba(41, 25, 96, .4);
	border: 1px solid rgba(198, 168, 255, .14);
	font-size: .82rem;
}
.horo-house-list li.is-empty {
	opacity: .55;
}
.horo-house-ordinal {
	color: #F4C542;
	font-family: 'Cinzel', serif;
}
.horo-house-planets {
	color: rgba(198, 168, 255, .85);
}
@media (max-width: 560px) {
	.horo-house-list {
		grid-template-columns: 1fr;
	}
}

/* ---- "Today's Transit Reading" (General + per-category) ---- */
.horo-reading-block {
	margin-bottom: 1.2rem;
}
.horo-reading-block h3 {
	font-family: 'Cinzel', serif;
	color: #F4C542;
	font-size: .95rem;
	letter-spacing: .03em;
	margin: 0 0 .4rem;
}
.horo-reading-block p {
	color: #E6DDFF;
	font-size: .88rem;
	line-height: 1.65;
	margin: 0;
}
.horo-reading-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 1.6rem;
}
@media (max-width: 560px) {
	.horo-reading-grid {
		grid-template-columns: 1fr;
	}
}

/* ---- fallback when the ephemeris calculation fails (§22) ---- */
.horo-unavailable {
	max-width: 34rem;
	margin: 0 auto;
	padding: clamp(2rem, 4vw, 3rem);
	text-align: center;
	color: #E6DDFF;
}
.horo-unavailable i {
	display: block;
	font-size: 1.8rem;
	color: #F4C542;
	margin-bottom: 1rem;
}

/* ---- debug panel (?debugAstrology=true) ---- */
.horo-debug {
	margin-top: 1rem;
	padding-top: .8rem;
	border-top: 1px dashed rgba(198, 168, 255, .25);
}
.horo-debug summary {
	cursor: pointer;
	font-size: .72rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #F4C542;
}
.horo-debug-body {
	margin-top: .7rem;
	font-size: .72rem;
	line-height: 1.7;
	color: rgba(198, 168, 255, .85);
}
.horo-debug-body p { margin: .4rem 0; }
.horo-debug-table {
	width: 100%;
	border-collapse: collapse;
	margin: .5rem 0;
	font-size: .7rem;
}
.horo-debug-table th,
.horo-debug-table td {
	border: 1px solid rgba(198, 168, 255, .18);
	padding: .3rem .5rem;
	text-align: left;
}
.horo-debug-table th { color: #FBE6A2; }
