/* ==========================================================================
   BiographyPoints Family & History Theme - Person Profile (FamiPress Style)
   Directly matching official Screenshot 1: Brooklyn Mearsley layout
   ========================================================================== */

.bpt-profile-page-wrap {
	background-color: var(--bpt-neutral-bg);
	padding: 30px 0 60px;
}

/* 1. Profile Showcase Grid (Left: Large Portrait, Right: Details) */
.bpt-profile-showcase {
	background: #ffffff;
	border: 1px solid var(--bpt-border-subtle);
	border-radius: var(--bpt-radius-lg);
	box-shadow: 0 4px 20px rgba(11, 21, 53, 0.04);
	padding: 40px;
	margin-bottom: 40px;
}

.bpt-profile-showcase-grid {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 48px;
	align-items: start;
}

/* Left Column: Portrait */
.bpt-showcase-left {
	position: sticky;
	top: 90px;
}

.bpt-main-portrait-box {
	position: relative;
	border-radius: var(--bpt-radius-md);
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(11, 21, 53, 0.08);
	border: 1px solid var(--bpt-border-subtle);
	background: #f1f5f9;
}

.bpt-main-portrait-img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	display: block;
}

.bpt-portrait-art-fallback {
	width: 100%;
	aspect-ratio: 4 / 5;
	background: linear-gradient(135deg, var(--bpt-primary-navy) 0%, #1e293b 100%);
	color: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.bpt-portrait-initials {
	font-family: var(--bpt-font-heading);
	font-size: 2.2rem;
	font-weight: 700;
	letter-spacing: 2px;
	color: #f8fafc;
}

/* Right Column: Title & Actions */
.bpt-title-action-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 8px;
}

.bpt-person-heading {
	font-family: var(--bpt-font-heading);
	font-size: 2.3rem;
	font-weight: 700;
	color: var(--bpt-primary-navy);
	margin: 0;
	line-height: 1.2;
}

.bpt-person-actions-top {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bpt-pill-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
}

.bpt-pill-black {
	background-color: #0b1535;
	color: #ffffff !important;
	border: 1px solid #0b1535;
}

.bpt-pill-black:hover {
	background-color: #1e293b;
	color: #ffffff !important;
}

.bpt-pill-outline {
	background-color: transparent;
	color: #0b1535;
	border: 1.5px solid #cbd5e1;
}

.bpt-pill-outline:hover {
	border-color: #0b1535;
	background-color: #f8fafc;
}

.bpt-publish-stamp-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.84rem;
	color: #94a3b8;
	margin-bottom: 20px;
}

.bpt-dot-divider {
	color: #cbd5e1;
}

.bpt-lead-bio-text {
	font-size: 1.05rem;
	line-height: 1.65;
	color: #475569;
	margin-bottom: 26px;
}

/* Amber View Tree Button (Screenshot 1: Yellow/Amber pill with arrow circle) */
.bpt-view-tree-action-wrap {
	margin-bottom: 36px;
}

.bpt-btn-view-tree-amber {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: #f59e0b;
	color: #0b1535 !important;
	padding: 12px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.98rem;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
	transition: all 0.2s ease;
}

.bpt-btn-view-tree-amber:hover {
	background: #d97706;
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.bpt-arrow-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	background: rgba(11, 21, 53, 0.12);
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	color: #0b1535;
	transition: transform 0.2s ease;
}

.bpt-btn-view-tree-amber:hover .bpt-arrow-circle {
	background: rgba(255, 255, 255, 0.25);
	color: #ffffff;
	transform: translateX(3px);
}

/* Clean Tables (Personal Info, Parents, Spouses, Jobs, Events) */
.bpt-meta-card-block {
	margin-bottom: 34px;
}

.bpt-block-title {
	font-family: var(--bpt-font-heading);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--bpt-primary-navy);
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 1.5px solid #e2e8f0;
}

.bpt-clean-facts-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
}

.bpt-clean-facts-table th,
.bpt-clean-facts-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.92rem;
	text-align: left;
}

.bpt-clean-facts-table tr:last-child td {
	border-bottom: none;
}

.bpt-sub-thead th {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.bpt-fact-label {
	width: 160px;
	color: #64748b;
	font-weight: 500;
}

.bpt-fact-val {
	color: #1e293b;
}

.bpt-fact-val a {
	color: var(--bpt-primary-navy);
	text-decoration: none;
	font-weight: 600;
}

.bpt-fact-val a:hover {
	color: var(--bpt-secondary-green);
	text-decoration: underline;
}

/* Gender Badge */
.bpt-gender-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
}

.bpt-gender-badge.male {
	background: #eff6ff;
	color: #2563eb;
}

.bpt-gender-badge.female {
	background: #fdf2f8;
	color: #db2777;
}

.bpt-check-icon {
	stroke: currentColor;
}

/* Social Links */
.bpt-social-icons-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bpt-soc-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	transition: all 0.2s ease;
}

.bpt-soc-link:hover {
	background: var(--bpt-primary-navy);
	color: #ffffff;
	transform: translateY(-2px);
}

/* Spouses Cell */
.bpt-spouse-cell {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bpt-mini-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #cbd5e1;
}

.bpt-mini-avatar-fallback {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #334155;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
}

.bpt-spouse-name-link {
	color: var(--bpt-primary-navy);
	text-decoration: none;
}

.bpt-spouse-name-link:hover {
	color: var(--bpt-secondary-green);
}

/* Children Row Avatars */
.bpt-children-row-avatars {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bpt-child-badge-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	font-size: 0.85rem;
	color: #1e293b;
	text-decoration: none;
	transition: all 0.15s ease;
}

.bpt-child-badge-pill:hover {
	background: #ffffff;
	border-color: var(--bpt-secondary-green);
	color: var(--bpt-secondary-green);
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.bpt-mini-avatar-sm {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

.bpt-mini-fallback {
	background: #0b1535;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
}

/* Jobs and Events Timeline Entries */
.bpt-timeline-table td {
	vertical-align: top;
}

.bpt-timeline-entry-title {
	font-family: var(--bpt-font-heading);
	font-size: 1rem;
	font-weight: 700;
	color: var(--bpt-primary-navy);
	margin: 0 0 4px;
}

.bpt-timeline-entry-org {
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--bpt-secondary-green);
	margin-bottom: 4px;
}

.bpt-timeline-entry-desc {
	font-size: 0.88rem;
	line-height: 1.5;
	color: #64748b;
	margin: 0;
}

/* Attachments */
.bpt-attached-files-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.bpt-attachment-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: var(--bpt-radius-sm);
	font-size: 0.88rem;
	font-weight: 600;
	color: #1e293b;
	text-decoration: none;
	transition: all 0.2s ease;
}

.bpt-attachment-pill:hover {
	border-color: var(--bpt-primary-navy);
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 2. Banner Quote Section (from Screenshot 1) */
.bpt-quote-gallery-banner {
	background: #ffffff;
	border: 1px solid var(--bpt-border-subtle);
	border-radius: var(--bpt-radius-lg);
	box-shadow: 0 4px 20px rgba(11, 21, 53, 0.04);
	padding: 48px 40px;
	margin-bottom: 40px;
}

.bpt-quote-header-center {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 36px;
}

.bpt-quote-serif-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 1.85rem;
	font-style: italic;
	font-weight: 400;
	color: var(--bpt-primary-navy);
	line-height: 1.4;
	margin-bottom: 16px;
}

.bpt-amber-action-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #d97706;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: all 0.2s ease;
}

.bpt-amber-action-link:hover {
	color: #b45309;
}

.bpt-arrow-circle-sm {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fef3c7;
	color: #d97706;
	font-size: 12px;
}

/* 5-Photo Carousel Grid */
.bpt-family-photo-carousel-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

.bpt-carousel-img-card {
	border-radius: var(--bpt-radius-md);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	box-shadow: 0 2px 6px rgba(0,0,0,0.04);
	transition: transform 0.2s ease;
}

.bpt-carousel-img-card:hover {
	transform: scale(1.03);
}

.bpt-carousel-img-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 3. Video Gallery Section (from Screenshot 1) */
.bpt-video-gallery-section {
	background: #ffffff;
	border: 1px solid var(--bpt-border-subtle);
	border-radius: var(--bpt-radius-lg);
	box-shadow: 0 4px 20px rgba(11, 21, 53, 0.04);
	padding: 40px;
	margin-bottom: 40px;
}

.bpt-video-grid-2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}

.bpt-video-card-thumb {
	position: relative;
	border-radius: var(--bpt-radius-md);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #1e293b;
	margin-bottom: 12px;
}

.bpt-video-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
	transition: opacity 0.2s ease;
}

.bpt-video-card-thumb:hover img {
	opacity: 0.95;
}

.bpt-video-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #0b1535;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
	cursor: pointer;
	transition: all 0.2s ease;
}

.bpt-video-card-thumb:hover .bpt-video-play-btn {
	background: #ffffff;
	transform: translate(-50%, -50%) scale(1.1);
}

.bpt-video-card-info h4 {
	font-family: var(--bpt-font-heading);
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--bpt-primary-navy);
	margin: 0 0 6px;
}

.bpt-video-card-info p {
	font-size: 0.88rem;
	line-height: 1.5;
	color: #64748b;
	margin: 0;
}

/* 4. You Might Be Interested In (from Screenshot 1) */
.bpt-interested-profiles-section {
	margin-bottom: 40px;
}

.bpt-interested-grid-4col {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.bpt-interested-card {
	background: #ffffff;
	border: 1px solid var(--bpt-border-subtle);
	border-radius: var(--bpt-radius-md);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	transition: all 0.2s ease;
	text-decoration: none;
	display: flex;
	flex-direction: column;
}

.bpt-interested-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	border-color: var(--bpt-secondary-green);
}

.bpt-interested-thumb {
	aspect-ratio: 1;
	overflow: hidden;
	background: #f1f5f9;
}

.bpt-interested-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bpt-interested-body {
	padding: 16px;
	text-align: center;
}

.bpt-interested-title {
	font-family: var(--bpt-font-heading);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--bpt-primary-navy);
	margin: 0 0 4px;
}

.bpt-interested-dates {
	font-size: 0.8rem;
	color: #64748b;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
	.bpt-profile-showcase-grid {
		grid-template-columns: 280px 1fr;
		gap: 32px;
	}
	.bpt-family-photo-carousel-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.bpt-interested-grid-4col {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.bpt-profile-showcase-grid {
		grid-template-columns: 1fr;
	}
	.bpt-showcase-left {
		position: static;
		max-width: 300px;
		margin: 0 auto 20px;
	}
	.bpt-video-grid-2col {
		grid-template-columns: 1fr;
	}
	.bpt-family-photo-carousel-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.bpt-interested-grid-4col {
		grid-template-columns: 1fr;
	}
	.bpt-title-action-row {
		flex-direction: column;
		align-items: flex-start;
	}
}
