/* ==========================================================================
   BiographyPoints Family & History Theme - Historical Timeline Engine
   ========================================================================== */

.bpt-timeline-container {
	position: relative;
	padding: 40px 0;
}

/* Timeline Vertical Spine */
.bpt-timeline-spine {
	position: relative;
	max-width: 960px;
	margin: 0 auto;
}

.bpt-timeline-spine::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	background: var(--bpt-border-subtle);
	transform: translateX(-50%);
}

/* Timeline Milestone Item */
.bpt-timeline-item {
	position: relative;
	margin-bottom: 50px;
	width: 50%;
}

.bpt-timeline-item:nth-child(odd) {
	left: 0;
	padding-right: 45px;
}

.bpt-timeline-item:nth-child(even) {
	left: 50%;
	padding-left: 45px;
}

/* Date Indicator on Center Line */
.bpt-timeline-pin {
	position: absolute;
	top: 14px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ffffff;
	border: 4px solid var(--bpt-secondary-green);
	box-shadow: 0 0 0 4px var(--bpt-green-light);
	z-index: 2;
}

.bpt-timeline-item:nth-child(odd) .bpt-timeline-pin {
	right: -10px;
}

.bpt-timeline-item:nth-child(even) .bpt-timeline-pin {
	left: -10px;
}

/* Event Card in Timeline */
.bpt-timeline-card {
	background: #ffffff;
	border: 1px solid var(--bpt-border-subtle);
	border-radius: var(--bpt-radius-md);
	padding: 24px;
	box-shadow: var(--bpt-shadow-sm);
	transition: var(--bpt-transition);
}

.bpt-timeline-card:hover {
	box-shadow: var(--bpt-shadow-md);
	border-color: var(--bpt-secondary-green);
	transform: translateY(-2px);
}

.bpt-event-date-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--bpt-primary-navy);
	color: #ffffff;
	font-family: var(--bpt-font-mono);
	font-size: 0.8rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	margin-bottom: 12px;
}

.bpt-timeline-card h3 {
	font-size: 1.3rem;
	margin-bottom: 8px;
}

.bpt-timeline-card h3 a {
	color: var(--bpt-primary-navy);
}

.bpt-timeline-card h3 a:hover {
	color: var(--bpt-secondary-green);
}

.bpt-event-meta-line {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.82rem;
	color: var(--bpt-text-muted);
	margin-bottom: 12px;
}

.bpt-event-summary {
	font-size: 0.95rem;
	line-height: 1.55;
	color: #334155;
	margin-bottom: 16px;
}

/* Related People Pills in Event */
.bpt-event-figures {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--bpt-border-subtle);
}

.bpt-figure-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	background: var(--bpt-neutral-bg);
	border: 1px solid var(--bpt-border-subtle);
	border-radius: 14px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--bpt-primary-navy);
	transition: var(--bpt-transition);
}

.bpt-figure-pill:hover {
	background: var(--bpt-green-light);
	color: var(--bpt-secondary-green);
	border-color: var(--bpt-secondary-green);
}

/* Chronological Prev/Next Navigation on Single Event */
.bpt-chrono-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 50px;
	padding-top: 30px;
	border-top: 1px solid var(--bpt-border-subtle);
}

.bpt-chrono-card {
	padding: 18px 24px;
	background: #ffffff;
	border: 1px solid var(--bpt-border-subtle);
	border-radius: var(--bpt-radius-md);
	transition: var(--bpt-transition);
}

.bpt-chrono-card:hover {
	border-color: var(--bpt-secondary-green);
	box-shadow: var(--bpt-shadow-sm);
}

.bpt-chrono-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--bpt-text-muted);
	margin-bottom: 4px;
}

.bpt-chrono-title {
	font-family: var(--bpt-font-heading);
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--bpt-primary-navy);
}

/* Filter Bar for Archives */
.bpt-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #ffffff;
	border: 1px solid var(--bpt-border-subtle);
	border-radius: var(--bpt-radius-md);
	padding: 16px 24px;
	margin-bottom: 36px;
	box-shadow: var(--bpt-shadow-sm);
}

.bpt-filter-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

@media (max-width: 768px) {
	.bpt-timeline-spine::before {
		left: 20px;
	}
	.bpt-timeline-item {
		width: 100%;
		left: 0 !important;
		padding-left: 50px !important;
		padding-right: 0 !important;
	}
	.bpt-timeline-pin {
		left: 10px !important;
	}
	.bpt-chrono-nav {
		grid-template-columns: 1fr;
	}
}
