@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap");

.av-pc-page {
	--pc-cream: #f4f6fa;
	--pc-ink: #1a2236;
	--pc-label: #4a5368;
	--pc-muted: #3a4358;
	--pc-gold: #e8b451;
	--pc-gold-dark: #9a6812;
	--pc-saffron: #d57b42;
	--pc-saffron-dark: #a94f27;
	--pc-violet: #7664b6;
	--pc-sage: #70a58a;
	--pc-sage-dark: #3e7558;
	--pc-rose: #b85e72;
	--pc-panel: #1f3044;
	--pc-avoid-bg: #fff3f2;
	--pc-avoid-border: #f0c4c0;
	--pc-good-bg: #eef8f2;
	--pc-good-border: #b8dfc8;
	--pc-font: "DM Sans", "Noto Sans Devanagari", "Poppins", sans-serif;
	font-family: var(--pc-font);
	color: var(--pc-ink);
	padding-bottom: 32px;
	background: var(--pc-cream);
}

.av-pc-page .av-pc-display {
	font-family: var(--pc-font);
}

.av-pc-form-hidden { display: none; }

/* ── Toolbar ── */
.av-pc-toolbar {
	background: #fff;
	border-radius: 0 0 16px 16px;
	padding: 12px 12px 14px;
	margin: 0 -15px 12px;
	box-shadow: 0 4px 20px rgba(26, 34, 54, 0.08);
	position: static;
}

.av-pc-seo-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--pc-ink);
	font-family: var(--pc-font);
}

.av-pc-place-chip {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	border: 1px solid rgba(26, 34, 54, 0.1);
	background: var(--pc-cream);
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--pc-ink);
	cursor: pointer;
	margin-bottom: 10px;
	text-align: left;
}

.av-pc-place-chip img { width: 18px; height: 18px; flex-shrink: 0; }
.av-pc-place-chip span:not(.av-pc-chevron) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-pc-chevron { color: var(--pc-saffron); font-size: 18px; }

.av-pc-date-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.av-pc-date-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	border: 1px solid rgba(26, 34, 54, 0.12);
	color: var(--pc-ink);
	background: #fff;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
}

.av-pc-date-btn:hover,
.av-pc-date-btn:focus { background: var(--pc-cream); color: var(--pc-ink); text-decoration: none; }

.av-pc-date-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-height: 42px;
	padding: 0 12px;
	border: 0;
	border-radius: 12px;
	background: var(--pc-gold);
	color: var(--pc-ink);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	min-width: 0;
}

.av-pc-date-pill img { width: 16px; height: 16px; flex-shrink: 0; }

.av-pc-date-pill input[type="date"] {
	border: 0;
	background: transparent;
	color: var(--pc-ink);
	font: inherit;
	font-weight: 700;
	padding: 0;
	flex: 1;
	min-width: 0;
	cursor: pointer;
}

.av-pc-date-pill span.av-pc-date-label { display: none; }

.av-pc-today-chip {
	font-size: 13px;
	font-weight: 700;
	color: var(--pc-saffron-dark);
	background: rgba(213, 123, 66, 0.12);
	padding: 8px 14px;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
}

.av-pc-today-chip:hover { color: var(--pc-saffron-dark); text-decoration: none; }

@media (min-width: 768px) {
	.av-pc-date-pill input[type="date"] {
		position: absolute;
		opacity: 0;
		width: 1px;
		height: 1px;
		pointer-events: none;
	}
	.av-pc-date-pill { position: relative; flex: 1; }
	.av-pc-date-pill span.av-pc-date-label { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.av-pc-seo-title { font-size: 18px; }
}

/* ── Body ── */
.av-pc-body { display: flex; flex-direction: column; gap: 12px; }

.av-pc-error {
	background: #fff1ef;
	border: 1px solid #f5c6cb;
	color: #a94442;
	border-radius: 14px;
	padding: 14px 16px;
}

/* 1. Tithi banner */
.av-pc-tithi-banner {
	background: linear-gradient(135deg, #1f3044 0%, #2a4560 100%);
	color: #fff;
	border-radius: 18px;
	padding: 18px 16px;
	box-shadow: 0 12px 32px rgba(31, 48, 68, 0.25);
}

.av-pc-tithi-meta {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.75);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.av-pc-tithi-name {
	margin: 8px 0 0;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
	letter-spacing: -0.01em;
}

.av-pc-tithi-end {
	margin: 8px 0 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--pc-gold);
}

/* 2. Sun bar */
.av-pc-sun-bar {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.av-pc-sun-item {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border-radius: 14px;
	padding: 14px 12px;
	box-shadow: 0 2px 12px rgba(26, 34, 54, 0.06);
}

.av-pc-sun-item img { width: 28px; height: 28px; flex-shrink: 0; }

.av-pc-sun-lbl {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pc-label);
	margin-bottom: 2px;
}

.av-pc-sun-item strong {
	font-size: 20px;
	font-weight: 700;
	color: var(--pc-ink);
}

/* Blocks */
.av-pc-block {
	background: #fff;
	border-radius: 16px;
	padding: 14px 14px 6px;
	box-shadow: 0 2px 12px rgba(26, 34, 54, 0.06);
	overflow: hidden;
}

.av-pc-block-avoid {
	background: var(--pc-avoid-bg);
	border: 1px solid var(--pc-avoid-border);
	box-shadow: none;
}

.av-pc-block-good {
	background: var(--pc-good-bg);
	border: 1px solid var(--pc-good-border);
	box-shadow: none;
}

.av-pc-block-dark {
	background: var(--pc-panel);
	color: #fff;
	padding-bottom: 14px;
}

.av-pc-block-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	padding: 0 2px;
	font-size: 14px;
	font-weight: 700;
	color: var(--pc-rose);
	font-family: var(--pc-font);
}

.av-pc-block-good .av-pc-block-title { color: var(--pc-sage-dark); }
.av-pc-block-title.plain { color: var(--pc-ink); font-size: 15px; }
.av-pc-block-title.light { color: var(--pc-gold); }

/* Muhurat time rows */
.av-pc-time-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.av-pc-time-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 4px;
	border-top: 1px solid rgba(26, 34, 54, 0.08);
}

.av-pc-block-avoid .av-pc-time-row { border-top-color: var(--pc-avoid-border); }
.av-pc-block-good .av-pc-time-row { border-top-color: var(--pc-good-border); }
.av-pc-time-row:first-child { border-top: 0; }

.av-pc-time-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--pc-ink);
}

.av-pc-time-val {
	font-size: 14px;
	font-weight: 600;
	color: var(--pc-muted);
	white-space: nowrap;
}

.av-pc-time-row.is-bad .av-pc-time-name { color: #9b2c2c; }
.av-pc-time-row.is-good .av-pc-time-name { color: var(--pc-sage-dark); }

/* Info list (essentials) */
.av-pc-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.av-pc-info-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 4px;
	border-top: 1px solid rgba(26, 34, 54, 0.07);
}

.av-pc-info-row:first-child { border-top: 0; }
.av-pc-info-row.highlight { background: rgba(112, 165, 138, 0.08); margin: 0 -14px; padding: 12px 18px; border-radius: 12px; border-top: 0; }

.av-pc-info-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.av-pc-info-icon.gold { background: rgba(213, 123, 66, 0.12); }
.av-pc-info-icon.sage { background: rgba(112, 165, 138, 0.18); }
.av-pc-info-icon.violet { background: rgba(118, 100, 182, 0.12); }
.av-pc-info-icon.rose { background: rgba(184, 94, 114, 0.1); }
.av-pc-info-icon img { width: 18px; height: 18px; }

.av-pc-info-body { flex: 1; min-width: 0; }

.av-pc-info-lbl {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pc-label);
	margin-bottom: 2px;
}

.av-pc-info-val {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: var(--pc-ink);
	line-height: 1.25;
}

.av-pc-info-sub {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	font-weight: 500;
	color: var(--pc-muted);
	line-height: 1.4;
}

/* Signs grid */
.av-pc-signs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.av-pc-sign-card {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	padding: 14px 10px;
	text-align: center;
}

.av-pc-sign-card img { width: 32px; height: 32px; margin-bottom: 6px; }

.av-pc-sign-lbl {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.55);
}

.av-pc-sign-card strong {
	display: block;
	margin-top: 4px;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
}

.av-pc-sign-card small {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.35;
}

/* Accordion — Choghadiya */
.av-pc-accord {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(26, 34, 54, 0.06);
	overflow: hidden;
}

.av-pc-accord-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	font-size: 15px;
	font-weight: 700;
	color: var(--pc-ink);
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.av-pc-accord-head::-webkit-details-marker { display: none; }

.av-pc-accord-icon {
	font-size: 22px;
	font-weight: 400;
	color: var(--pc-saffron);
	line-height: 1;
	transition: transform 0.2s;
}

.av-pc-accord[open] .av-pc-accord-icon { transform: rotate(45deg); }

.av-pc-accord-body {
	padding: 0 14px 14px;
	border-top: 1px solid rgba(26, 34, 54, 0.07);
}

.av-pc-chog-panel { padding-top: 14px; }
.av-pc-chog-panel + .av-pc-chog-panel { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(26, 34, 54, 0.07); }

.av-pc-chog-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--pc-ink);
	font-family: var(--pc-font);
}

.av-pc-chog-list { list-style: none; margin: 0; padding: 0; }

.av-pc-chog-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	border-top: 1px solid rgba(26, 34, 54, 0.06);
}

.av-pc-chog-row:first-child { border-top: 0; }

.av-pc-chog-left strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--pc-ink);
}

.av-pc-chog-left span {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: var(--pc-muted);
	margin-top: 2px;
}

.av-pc-badge {
	display: inline-block;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 10px;
	font-weight: 700;
	white-space: nowrap;
	flex-shrink: 0;
}

.av-pc-badge.good { background: rgba(112, 165, 138, 0.18); color: var(--pc-sage-dark); }
.av-pc-badge.neutral { background: rgba(232, 180, 81, 0.2); color: var(--pc-gold-dark); }
.av-pc-badge.bad { background: rgba(184, 94, 114, 0.12); color: var(--pc-rose); }

/* Modal */
.av-pc-modal-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(26, 34, 54, 0.45);
	padding: 12px;
	align-items: flex-end;
	justify-content: center;
	backdrop-filter: blur(2px);
}

.av-pc-modal-backdrop.open { display: flex; }

.av-pc-modal {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 22px;
	padding: 22px;
	box-shadow: 0 20px 50px rgba(26, 34, 54, 0.2);
}

.av-pc-modal-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 16px;
}

.av-pc-modal-close {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--pc-cream);
	color: var(--pc-muted);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.av-pc-modal .form-control {
	border-radius: 12px;
	border-color: rgba(26, 34, 54, 0.1);
	background: var(--pc-cream);
	box-shadow: none;
	height: 44px;
}

.av-pc-modal .btn-red {
	border-radius: 12px;
	padding: 10px 18px;
	font-weight: 700;
}

.av-pc-section-kicker {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pc-saffron-dark);
}

.av-pc-section-title {
	margin: 4px 0 0;
	font-size: 22px;
	font-weight: 700;
	font-family: var(--pc-font);
}

/* Mobile tweaks */
@media (max-width: 767px) {
	.av-pc-page { padding-bottom: 20px; }

	.av-pc-toolbar {
		margin: 0 -15px 10px;
		padding: 10px 10px 12px;
		border-radius: 0 0 14px 14px;
	}

	.av-pc-seo-title { font-size: 14px; margin-bottom: 8px; }

	.av-pc-place-chip { padding: 9px 10px; font-size: 15px; margin-bottom: 8px; }

	.av-pc-date-btn { width: 40px; height: 40px; }

	.av-pc-date-pill { font-size: 14px; min-height: 40px; }

	.av-pc-tithi-banner { padding: 16px 14px; border-radius: 16px; }

	.av-pc-tithi-name { font-size: 36px; }

	.av-pc-tithi-end { font-size: 15px; }

	.av-pc-sun-item { padding: 12px 10px; }

	.av-pc-sun-item strong { font-size: 22px; }

	.av-pc-sun-lbl { font-size: 12px; }

	.av-pc-block { padding: 12px 12px 4px; border-radius: 14px; }

	.av-pc-block-title { font-size: 15px; }

	.av-pc-time-name { font-size: 16px; }

	.av-pc-time-val { font-size: 15px; }

	.av-pc-info-val { font-size: 20px; }

	.av-pc-info-sub { font-size: 14px; }

	.av-pc-info-lbl { font-size: 12px; }

	.av-pc-sign-card strong { font-size: 18px; }

	.av-pc-accord-head { padding: 14px; font-size: 16px; }
}

@media (min-width: 768px) {
	.av-pc-toolbar {
		margin: 0 0 16px;
		border-radius: 16px;
		padding: 16px 18px;
	}

	.av-pc-body { gap: 16px; }

	.av-pc-tithi-name { font-size: 48px; }

	.av-pc-sun-bar { gap: 14px; }

	.av-pc-block { padding: 18px 18px 8px; }

	.av-pc-body {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"tithi tithi"
			"sun sun"
			"avoid good"
			"essentials essentials"
			"signs signs"
			"chog chog";
	}

	.av-pc-tithi-banner { grid-area: tithi; }
	.av-pc-sun-bar { grid-area: sun; }
	.av-pc-block-avoid { grid-area: avoid; }
	.av-pc-block-good { grid-area: good; }
	.av-pc-block:not(.av-pc-block-avoid):not(.av-pc-block-good):not(.av-pc-block-dark) { grid-area: essentials; }
	.av-pc-block-dark { grid-area: signs; }
	.av-pc-accord { grid-area: chog; }
}

@media (min-width: 992px) {
	.av-pc-modal-backdrop { align-items: center; }
}
