/* ==========================================================================
 * SARANSH DAINIK — DAILY HOROSCOPE (आज का राशिफल)
 * Scoped to horoscope pages (loaded only when $horoscope_page is set) and the
 * homepage section. Palette matches home-v2: navy #07152f · red #c8102e ·
 * gold #f5b301 · teal #0494b1. No global overflow rules.
 * ========================================================================== */

/* ---------- Homepage section ---------- */
.sd-horo-section {
	margin: 26px 0 6px;
}
.sd-horo-head {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 12px; margin: 0 0 16px; flex-wrap: wrap;
}
.sd-horo-title {
	font-size: 22px; font-weight: 700; color: #07152f; margin: 0;
	padding-left: 12px; border-left: 4px solid #c8102e;
}
.sd-horo-all {
	font-size: 13px; font-weight: 600; color: #0494b1; text-decoration: none;
}
.sd-horo-all:hover { color: #c8102e; text-decoration: underline; }
.sd-horo-grid {
	display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.sd-horo-card {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	background: #ffffff; border: 1px solid #e6edf3; border-radius: 10px;
	padding: 16px 10px 14px; text-decoration: none;
	box-shadow: 0 1px 4px rgba(7, 21, 47, .05);
	transition: transform .15s ease, box-shadow .15s ease;
	min-height: 0;
}
.sd-horo-card:hover { box-shadow: 0 8px 20px rgba(7, 21, 47, .12); transform: translateY(-2px); }
.sd-horo-icon { width: 48px; height: 48px; margin-bottom: 8px; flex: 0 0 auto; }
.sd-horo-card-name { font-size: 15px; font-weight: 700; color: #16191f; margin-bottom: 4px; }
.sd-horo-card-excerpt {
	font-size: 12px; line-height: 1.45; color: #6b7076;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	margin: 0 0 8px; width: 100%;
}
.sd-horo-card-meta { font-size: 11.5px; color: #9aa0a8; margin: 0; }
.sd-horo-card-meta b { color: #0494b1; font-weight: 600; }
.sd-horo-card-link {
	margin-top: auto; font-size: 12px; font-weight: 600; color: #c8102e; padding-top: 8px;
}

/* ---------- Listing page (/daily-horoscope) ---------- */
.sd-horo-page { padding: 20px 0 30px; }
.sd-horo-page .container { max-width: 1170px; }
.sd-horo-page-head { margin-bottom: 8px; }
.sd-horo-page-title {
	font-size: 26px; font-weight: 700; color: #07152f; margin: 0 0 6px;
	padding-left: 12px; border-left: 4px solid #c8102e;
}
.sd-horo-page-date { font-size: 14px; color: #6b7076; margin: 0 0 6px; }
.sd-horo-page-date b { color: #c8102e; font-weight: 700; }
.sd-horo-page-intro { font-size: 14.5px; line-height: 1.6; color: #566b7d; margin: 0 0 22px; max-width: 720px; }
.sd-horo-page .sd-horo-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
.sd-horo-empty {
	background: #fff; border: 1px solid #e6edf3; border-radius: 10px;
	padding: 40px 20px; text-align: center; color: #6b7076; font-size: 15px;
}

/* ---------- Individual sign page ---------- */
.sd-horo-sign { padding: 20px 0 30px; }
.sd-horo-sign-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sd-horo-sign-icon { width: 72px; height: 72px; flex: 0 0 auto; }
.sd-horo-sign-name { font-size: 26px; font-weight: 700; color: #07152f; margin: 0 0 4px; }
.sd-horo-sign-date { font-size: 14px; color: #6b7076; margin: 0; }
.sd-horo-sign-date b { color: #c8102e; }
.sd-horo-nav { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.sd-horo-nav a {
	font-size: 13px; font-weight: 600; color: #07152f; text-decoration: none;
	border: 1px solid #e3e7ec; border-radius: 20px; padding: 7px 14px; background: #fff;
	transition: background .15s, color .15s;
}
.sd-horo-nav a:hover { background: #c8102e; color: #fff; border-color: #c8102e; }
.sd-horo-boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sd-horo-box {
	background: #fff; border: 1px solid #e6edf3; border-radius: 10px; padding: 16px 18px;
}
.sd-horo-box-title {
	font-size: 15px; font-weight: 700; color: #07152f; margin: 0 0 8px;
	padding-left: 10px; border-left: 3px solid #c8102e;
}
.sd-horo-box p { font-size: 14px; line-height: 1.7; color: #3c4450; margin: 0; }
.sd-horo-facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.sd-horo-fact {
	background: #f4f6f9; border-radius: 8px; padding: 10px 14px; font-size: 13.5px; color: #3c4450;
}
.sd-horo-fact b { color: #07152f; }
.sd-horo-fact span { color: #c8102e; font-weight: 600; }
.sd-horo-disclaimer {
	margin: 22px 0 0; font-size: 12.5px; color: #9aa0a8; line-height: 1.5;
}
.sd-horo-all-signs { margin-top: 26px; padding-top: 20px; border-top: 1px solid #e6edf3; }
.sd-horo-all-signs h3 { font-size: 16px; font-weight: 700; color: #07152f; margin: 0 0 12px; }
.sd-horo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-horo-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
	background: #eef0f3; color: #3c4450; border-radius: 20px; font-size: 13px; font-weight: 500;
	text-decoration: none; transition: background .15s, color .15s;
}
.sd-horo-chip img { width: 18px; height: 18px; }
.sd-horo-chip:hover { background: #c8102e; color: #fff; }
.sd-horo-chip.active { background: #c8102e; color: #fff; }
.sd-horo-share { display: flex; gap: 8px; margin-top: 16px; }
.sd-horo-share a {
	display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
	color: #fff; text-decoration: none; border-radius: 6px; padding: 8px 14px;
}
.sd-horo-share .sh-wa { background: #25d366; }
.sd-horo-share .sh-fb { background: #3b5998; }
.sd-horo-share .sh-x { background: #111; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.sd-horo-grid, .sd-horo-page .sd-horo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
	.sd-horo-grid, .sd-horo-page .sd-horo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.sd-horo-card { padding: 12px 8px 10px; }
	.sd-horo-icon { width: 40px; height: 40px; }
	.sd-horo-card-name { font-size: 14px; }
	.sd-horo-page-title, .sd-horo-sign-name { font-size: 22px; }
	.sd-horo-boxes { grid-template-columns: 1fr; }
	.sd-horo-sign-icon { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
	.sd-horo-card, .sd-horo-card:hover { transition: none; transform: none; }
}

/* ---------- Homepage show-more (compact preview: first 4, then expand) ---------- */
.sd-horo-section .sd-horo-extra { display: none; }
.sd-horo-section.is-expanded .sd-horo-extra { display: flex; }
.sd-horo-more { display: flex; justify-content: center; margin-top: 18px; }
.sd-horo-toggle {
	display: inline-flex; align-items: center; gap: 8px;
	background: #c8102e; color: #fff;
	border: 0; border-radius: 8px;
	padding: 10px 22px; font-size: 14px; font-weight: 700;
	cursor: pointer; font-family: inherit;
	transition: background .15s ease, opacity .15s ease;
}
.sd-horo-toggle:hover { background: #a90d27; color: #fff; }
.sd-horo-toggle:focus-visible { outline: 2px solid #0494b1; outline-offset: 2px; }
