/* Prenatal Appointment Schedule - ps- prefix */

.ps-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 8px;
}

.ps-download-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.ps-download-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	background: linear-gradient(135deg, var(--accent, #7BC8B8), #5aa898);
	color: #fff;
	border: none;
	border-radius: 24px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s;
	box-shadow: 0 4px 14px rgba(90, 168, 152, 0.25);
}

.ps-download-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(90, 168, 152, 0.35);
}

.ps-download-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Timeline */
.ps-timeline {
	position: relative;
	padding-left: 28px;
}

.ps-timeline::before {
	content: '';
	position: absolute;
	left: 8px;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(
		to bottom,
		rgba(139, 123, 184, 0.15),
		rgba(139, 123, 184, 0.25) 50%,
		rgba(123, 200, 184, 0.25)
	);
	border-radius: 2px;
}

/* Appointment card */
.ps-card {
	position: relative;
	margin-bottom: 12px;
	border: 1.5px solid rgba(139, 123, 184, 0.10);
	border-radius: 12px;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
	overflow: hidden;
}

.ps-card::before {
	content: '';
	position: absolute;
	left: -23px;
	top: 20px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--primary, #8B7BB8);
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px rgba(139, 123, 184, 0.2);
	z-index: 1;
}

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

/* Card header (always visible) */
.ps-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	cursor: pointer;
	user-select: none;
}

.ps-card-emoji {
	font-size: 24px;
	flex-shrink: 0;
	width: 36px;
	text-align: center;
}

.ps-card-info {
	flex: 1;
	min-width: 0;
}

.ps-card-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--text, #3D2F50);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ps-card-meta {
	font-size: 14px;
	color: var(--text-muted, #695A80);
	margin: 2px 0 0;
}

/* Type badge */
.ps-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.ps-badge-routine {
	background: rgba(139, 123, 184, 0.10);
	color: var(--primary, #8B7BB8);
}

.ps-badge-screening {
	background: rgba(123, 200, 184, 0.12);
	color: #4a9e8e;
}

.ps-badge-optional {
	background: rgba(230, 180, 80, 0.12);
	color: #b08930;
}

/* Next Up badge */
.ps-badge-next {
	background: linear-gradient(135deg, var(--accent, #7BC8B8), #5aa898);
	color: #fff;
	padding: 2px 10px;
	font-size: 10px;
}

/* Expand arrow */
.ps-card-arrow {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--text-muted, #695A80);
	opacity: 0.4;
	transition: transform 0.25s, opacity 0.2s;
}

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

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

.ps-card.ps-expanded .ps-card-detail {
	display: block;
}

.ps-detail-section {
	margin-top: 14px;
}

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

.ps-detail-text {
	font-size: 16px;
	color: var(--text, #3D2F50);
	line-height: 1.55;
	margin: 0;
}

.ps-questions {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ps-questions li {
	position: relative;
	padding: 6px 0 6px 22px;
	font-size: 16px;
	color: var(--text, #3D2F50);
	line-height: 1.45;
	list-style: none;
}

.ps-questions li::before {
	content: '?';
	position: absolute;
	left: 0;
	top: 8px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: rgba(123, 200, 184, 0.15);
	color: var(--accent, #7BC8B8);
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Duration pill inside detail */
.ps-duration {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: var(--text-muted, #695A80);
	background: rgba(139, 123, 184, 0.06);
	padding: 3px 10px;
	border-radius: 10px;
	margin-top: 12px;
}

/* Status: past */
.ps-card.ps-past {
	opacity: 0.55;
}

.ps-card.ps-past::before {
	background: var(--accent, #7BC8B8);
}

.ps-card.ps-past .ps-card-header {
	cursor: pointer;
}

/* Status: next */
.ps-card.ps-next {
	border-color: rgba(123, 200, 184, 0.35);
	box-shadow: 0 4px 18px rgba(123, 200, 184, 0.12);
}

.ps-card.ps-next::before {
	background: var(--accent, #7BC8B8);
	box-shadow: 0 0 0 3px rgba(123, 200, 184, 0.25);
	width: 13px;
	height: 13px;
	left: -24px;
	top: 19px;
}

/* Hidden cards (report page show/hide) */
.ps-hidden-early,
.ps-hidden-later {
	display: none;
}

.ps-show-toggle {
	display: block;
	background: none;
	border: none;
	color: var(--primary, #8B7BB8);
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	padding: 8px 0;
	margin: 4px 0;
	text-align: left;
}

.ps-show-toggle:hover {
	color: var(--accent, #7BC8B8);
	text-decoration: underline;
}

/* Disclaimer */
.ps-disclaimer {
	font-size: 14px;
	color: var(--text-muted, #695A80);
	text-align: center;
	margin: 16px 0 0;
	line-height: 1.5;
}

/* Mobile */
@media (max-width: 600px) {
	.ps-timeline {
		padding-left: 22px;
	}

	.ps-timeline::before {
		left: 6px;
	}

	.ps-card::before {
		left: -19px;
		width: 9px;
		height: 9px;
		top: 18px;
	}

	.ps-card.ps-next::before {
		width: 11px;
		height: 11px;
		left: -20px;
		top: 17px;
	}

	.ps-card-header {
		padding: 12px 12px;
		gap: 10px;
	}

	.ps-card-emoji {
		font-size: 20px;
		width: 28px;
	}

	.ps-card-title {
		font-size: 15px;
	}

	.ps-card-meta {
		font-size: 13px;
	}

	.ps-card-detail {
		padding: 0 12px 14px;
	}

	.ps-detail-text {
		font-size: 14px;
	}

	.ps-questions li {
		font-size: 14px;
	}

	.ps-download-btn {
		font-size: 15px;
		padding: 9px 18px;
	}
}
