/* Baby Shower Planner - bsp- prefix */

/* ── Hub Page ── */
.bsp-hub-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	max-width: 600px;
	margin: -16px auto 24px;
	position: relative;
	z-index: 2;
}

.bsp-hub-card {
	display: block;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(61, 47, 80, 0.10);
	padding: 24px 22px;
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s;
}

.bsp-hub-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(61, 47, 80, 0.15);
	text-decoration: none;
}

.bsp-hub-card-emoji {
	font-size: 32px;
	display: block;
	margin-bottom: 10px;
}

.bsp-hub-card-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--text, #3D2F50);
	margin: 0 0 6px;
}

.bsp-hub-card-desc {
	font-size: 14px;
	color: var(--text-muted, #695A80);
	line-height: 1.45;
	margin: 0;
}

/* ── Back Link ── */
.bsp-back-link {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: var(--primary, #8B7BB8);
	text-decoration: none;
	margin-bottom: 16px;
}

.bsp-back-link:hover {
	color: var(--accent, #7BC8B8);
	text-decoration: underline;
}

/* ── Section Headings ── */
.bsp-section-heading {
	font-size: 18px;
	font-weight: 700;
	color: var(--text, #3D2F50);
	margin: 0 0 6px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bsp-section-emoji {
	font-size: 22px;
}

/* ── Date Calculator Card ── */
.bsp-date-card {
	max-width: 560px;
	margin: -16px auto 24px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(61, 47, 80, 0.10);
	padding: 28px 32px;
	position: relative;
	z-index: 2;
}

.bsp-date-intro {
	font-size: 15px;
	color: var(--text-muted, #695A80);
	margin: 0 0 16px;
}

.bsp-date-input-row,
.bsp-pick-date-row {
	margin-bottom: 16px;
}

.bsp-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--text-muted, #695A80);
	margin-bottom: 6px;
}

.bsp-date-input {
	width: 100%;
	padding: 10px 14px;
	font-size: 16px;
	font-family: inherit;
	border: 1.5px solid rgba(139, 123, 184, 0.20);
	border-radius: 10px;
	color: var(--text, #3D2F50);
	background: #fff;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.bsp-date-input:focus {
	outline: none;
	border-color: var(--primary, #8B7BB8);
	box-shadow: 0 0 0 3px rgba(139, 123, 184, 0.12);
}

/* Shower Window Card */
.bsp-window-card {
	background: linear-gradient(135deg, rgba(139, 123, 184, 0.08), rgba(123, 200, 184, 0.08));
	border-radius: 12px;
	padding: 18px 20px;
	text-align: center;
	margin-bottom: 16px;
}

.bsp-window-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--text-muted, #695A80);
	margin-bottom: 6px;
}

.bsp-window-dates {
	font-size: 22px;
	font-weight: 700;
	color: var(--text, #3D2F50);
	margin-bottom: 4px;
}

.bsp-window-weeks {
	font-size: 14px;
	color: var(--text-muted, #695A80);
}

/* Milestones */
.bsp-milestones {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 16px;
}

.bsp-milestone {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1.5px solid rgba(139, 123, 184, 0.10);
	border-radius: 10px;
	background: #fff;
}

.bsp-milestone-emoji {
	font-size: 20px;
	flex-shrink: 0;
}

.bsp-milestone-info {
	min-width: 0;
}

.bsp-milestone-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--text-muted, #695A80);
}

.bsp-milestone-date {
	font-size: 16px;
	font-weight: 700;
	color: var(--text, #3D2F50);
}

/* Countdown */
.bsp-countdown {
	text-align: center;
	margin-top: 16px;
	padding: 14px;
	background: linear-gradient(135deg, var(--accent, #7BC8B8), #5aa898);
	border-radius: 10px;
	color: #fff;
}

.bsp-countdown-number {
	font-size: 32px;
	font-weight: 700;
	display: block;
	line-height: 1.1;
}

.bsp-countdown-label {
	font-size: 14px;
	opacity: 0.9;
}

/* ── Progress Card ── */
.bsp-progress-card {
	max-width: 560px;
	margin: -16px auto 24px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(61, 47, 80, 0.10);
	padding: 24px 28px;
	text-align: center;
	position: relative;
	z-index: 2;
}

.bsp-progress-title {
	font-size: 15px;
	color: var(--text-muted, #695A80);
	margin-bottom: 8px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bsp-progress-count {
	font-size: 28px;
	font-weight: 800;
	color: var(--text, #3D2F50);
	margin-bottom: 12px;
}

.bsp-progress-bar-wrap {
	height: 12px;
	background: #f0edf5;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 8px;
}

.bsp-progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(135deg, #7BC8B8, #5aa898);
	border-radius: 6px;
	transition: width 0.4s ease;
}

.bsp-progress-pct {
	font-size: 14px;
	color: var(--text-muted, #695A80);
	font-weight: 600;
}

.bsp-progress-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 12px;
}

.bsp-btn-sm {
	padding: 7px 18px;
	font-size: 13px;
}

.bsp-btn-icon {
	width: 14px;
	height: 14px;
	vertical-align: -2px;
	margin-right: 4px;
}

.bsp-btn-download {
	background: linear-gradient(135deg, #7BC8B8, #5aa898);
	color: #fff;
}

.bsp-btn-download:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(123, 200, 184, 0.3);
}

/* Sticky Progress Bar */
.bsp-sticky-bar {
	position: sticky;
	top: 0;
	height: 3px;
	background: rgba(139, 123, 184, 0.10);
	z-index: 90;
	opacity: 0;
	transition: opacity 0.25s;
}

.bsp-sticky-bar.bsp-sticky-visible {
	opacity: 1;
}

.bsp-sticky-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--primary, #8B7BB8), var(--accent, #7BC8B8));
	transition: width 0.3s ease;
}

/* ── Phases & Tasks ── */
.bsp-phases {
	max-width: 100%;
	margin: 0 auto;
}

.bsp-phase {
	margin-bottom: 12px;
	border: 1.5px solid rgba(139, 123, 184, 0.10);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s;
}

.bsp-phase-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
}

.bsp-phase-emoji {
	font-size: 22px;
	flex-shrink: 0;
}

.bsp-phase-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--text, #3D2F50);
	margin: 0;
	flex: 1;
}

.bsp-phase-count {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-muted, #695A80);
	white-space: nowrap;
}

.bsp-phase.bsp-phase-done {
	border-color: rgba(123, 200, 184, 0.30);
}

.bsp-phase.bsp-phase-done .bsp-phase-count {
	color: var(--accent, #7BC8B8);
}

.bsp-tasks {
	padding: 0 16px 14px;
}

.bsp-task {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	cursor: pointer;
	user-select: none;
	font-weight: 400;
	border-bottom: 1px solid rgba(139, 123, 184, 0.06);
}

.bsp-task:last-child {
	border-bottom: none;
}

.bsp-checkbox {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bsp-checkmark {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border: 2px solid rgba(139, 123, 184, 0.25);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, border-color 0.15s;
}

.bsp-checkmark::after {
	content: '';
	width: 6px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg) translateY(-1px);
	opacity: 0;
	transition: opacity 0.15s;
}

.bsp-checkbox:checked + .bsp-checkmark {
	background: var(--accent, #7BC8B8);
	border-color: var(--accent, #7BC8B8);
}

.bsp-checkbox:checked + .bsp-checkmark::after {
	opacity: 1;
}

.bsp-task-text {
	font-size: 16px;
	color: var(--text, #3D2F50);
	line-height: 1.4;
	transition: opacity 0.2s;
}

.bsp-checkbox:checked ~ .bsp-task-text {
	opacity: 0.5;
	text-decoration: line-through;
}

/* ── Budget Estimator ── */
.bsp-budget-card {
	max-width: 560px;
	margin: -16px auto 24px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(61, 47, 80, 0.10);
	padding: 28px 32px;
	position: relative;
	z-index: 2;
}

.bsp-budget-intro {
	font-size: 15px;
	color: var(--text-muted, #695A80);
	margin: 0 0 18px;
}

.bsp-budget-inputs {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.bsp-budget-field {
	flex: 1;
	min-width: 140px;
}

.bsp-number-input {
	width: 100%;
	padding: 10px 14px;
	font-size: 16px;
	font-family: inherit;
	border: 1.5px solid rgba(139, 123, 184, 0.20);
	border-radius: 10px;
	color: var(--text, #3D2F50);
	background: #fff;
	box-sizing: border-box;
}

.bsp-number-input:focus {
	outline: none;
	border-color: var(--primary, #8B7BB8);
	box-shadow: 0 0 0 3px rgba(139, 123, 184, 0.12);
}

.bsp-select {
	width: 100%;
	padding: 10px 14px;
	font-size: 16px;
	font-family: inherit;
	border: 1.5px solid rgba(139, 123, 184, 0.20);
	border-radius: 10px;
	color: var(--text, #3D2F50);
	background: #fff;
	box-sizing: border-box;
}

.bsp-select:focus {
	outline: none;
	border-color: var(--primary, #8B7BB8);
	box-shadow: 0 0 0 3px rgba(139, 123, 184, 0.12);
}

/* Budget Table */
.bsp-budget-table-wrap {
	overflow-x: auto;
}

.bsp-budget-table {
	width: 100%;
	border-collapse: collapse;
}

.bsp-budget-table th {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--text-muted, #695A80);
	padding: 8px 10px;
	text-align: left;
	border-bottom: 2px solid rgba(139, 123, 184, 0.10);
}

.bsp-budget-table th:nth-child(2),
.bsp-budget-table th:nth-child(3) {
	text-align: right;
}

.bsp-budget-table td {
	font-size: 15px;
	color: var(--text, #3D2F50);
	padding: 10px 10px;
	border-bottom: 1px solid rgba(139, 123, 184, 0.06);
}

.bsp-budget-table td:nth-child(2),
.bsp-budget-table td:nth-child(3) {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.bsp-budget-total-row td {
	font-weight: 700;
	font-size: 16px;
	color: var(--text, #3D2F50);
	border-top: 2px solid rgba(139, 123, 184, 0.15);
	border-bottom: none;
	padding-top: 12px;
}

.bsp-budget-note {
	font-size: 13px;
	color: var(--text-muted, #695A80);
	margin: 12px 0 0;
	text-align: center;
}

/* ── Game Ideas ── */
.bsp-games-section {
	max-width: 100%;
	margin: 0 auto 24px;
}

.bsp-games-intro {
	font-size: 15px;
	color: var(--text-muted, #695A80);
	margin: 0 0 16px;
}

.bsp-games-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bsp-game-card {
	border: 1.5px solid rgba(139, 123, 184, 0.10);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.bsp-game-card:hover {
	border-color: rgba(139, 123, 184, 0.20);
	box-shadow: 0 4px 16px rgba(61, 47, 80, 0.06);
}

.bsp-game-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	cursor: pointer;
	user-select: none;
}

.bsp-game-emoji {
	font-size: 28px;
	flex-shrink: 0;
	line-height: 1;
}

.bsp-game-info {
	flex: 1;
	min-width: 0;
}

.bsp-game-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--text, #3D2F50);
	margin: 0 0 4px;
}

.bsp-game-desc {
	font-size: 14px;
	color: var(--text-muted, #695A80);
	line-height: 1.4;
	margin: 0 0 8px;
}

.bsp-game-tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.bsp-tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: lowercase;
}

.bsp-tag-printable {
	background: rgba(139, 123, 184, 0.10);
	color: var(--primary, #8B7BB8);
}

.bsp-tag-interactive {
	background: rgba(123, 200, 184, 0.12);
	color: #4a9e8e;
}

.bsp-tag-no-supplies {
	background: rgba(230, 180, 80, 0.12);
	color: #b08930;
}

.bsp-game-arrow {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--text-muted, #695A80);
	opacity: 0.4;
	transition: transform 0.25s, opacity 0.2s;
	margin-top: 4px;
}

.bsp-game-card.bsp-expanded .bsp-game-arrow {
	transform: rotate(180deg);
	opacity: 0.7;
}

/* Game Detail (hidden by default) */
.bsp-game-detail {
	display: none;
	padding: 0 16px 16px;
	border-top: 1px solid rgba(139, 123, 184, 0.08);
}

.bsp-game-card.bsp-expanded .bsp-game-detail {
	display: block;
}

.bsp-game-howto {
	font-size: 15px;
	color: var(--text, #3D2F50);
	line-height: 1.55;
	padding-top: 14px;
}

.bsp-game-cta {
	display: inline-block;
	margin-top: 12px;
	padding: 8px 20px;
	background: linear-gradient(135deg, var(--accent, #7BC8B8), #5aa898);
	color: #fff;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s;
}

.bsp-game-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(90, 168, 152, 0.30);
}

/* Widen shared FAQ card to match full-width content */
.bsp-phases ~ .calc-section-card,
.bsp-date-card ~ .calc-section-card,
.bsp-budget-card ~ .calc-section-card,
.bsp-games-section ~ .calc-section-card {
	max-width: 100%;
}

.bsp-btn {
	padding: 10px 24px;
	border-radius: 24px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	border: none;
	transition: transform 0.15s, box-shadow 0.15s;
}

.bsp-btn-reset {
	background: rgba(139, 123, 184, 0.08);
	color: var(--text-muted, #695A80);
}

.bsp-btn-reset:hover {
	background: rgba(139, 123, 184, 0.14);
}

/* ── FAQ ── */
.bsp-faq-item {
	margin-bottom: 18px;
}

.bsp-faq-item:last-child {
	margin-bottom: 0;
}

.bsp-faq-q {
	font-size: 16px;
	font-weight: 700;
	color: var(--text, #3D2F50);
	margin: 0 0 6px;
}

.bsp-faq-a {
	font-size: 16px;
	color: var(--text-muted, #695A80);
	line-height: 1.6;
	margin: 0;
}

/* ── Mobile ── */
@media (max-width: 600px) {
	.bsp-hub-cards {
		grid-template-columns: 1fr;
		margin-left: 8px;
		margin-right: 8px;
	}

	.bsp-hub-card {
		padding: 20px 18px;
	}

	.bsp-hub-card-emoji {
		font-size: 28px;
	}

	.bsp-hub-card-title {
		font-size: 16px;
	}

	.bsp-date-card,
	.bsp-budget-card {
		padding: 20px 18px;
		margin-left: 8px;
		margin-right: 8px;
	}

	.bsp-progress-card {
		padding: 20px 18px;
		margin-left: 8px;
		margin-right: 8px;
	}

	.bsp-phases {
		margin-left: 8px;
		margin-right: 8px;
	}

	.bsp-games-section {
		margin-left: 8px;
		margin-right: 8px;
	}

	.bsp-window-dates {
		font-size: 18px;
	}

	.bsp-milestones {
		grid-template-columns: 1fr;
	}

	.bsp-milestone-date {
		font-size: 15px;
	}

	.bsp-countdown-number {
		font-size: 26px;
	}

	.bsp-progress-count {
		font-size: 24px;
	}

	.bsp-budget-inputs {
		flex-direction: column;
		gap: 14px;
	}

	.bsp-game-emoji {
		font-size: 24px;
	}

	.bsp-game-name {
		font-size: 15px;
	}

	.bsp-game-desc {
		font-size: 13px;
	}

	.bsp-game-howto {
		font-size: 14px;
	}
}
