/* ==========================================================================
   From Our Archives — Plugin Styles
   HGSSS Development Team
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Variables
   --------------------------------------------------------------------------- */
:root {
	--hg-primary: #002D42;
	--hg-primary-light: #004d73;
	--hg-sepia: #5c4a32;
	--hg-gold: #b8943e;
	--hg-gold-light: #d4af5a;
	--hg-warm-bg: #f9f5ef;
	--hg-warm-border: #e8dfd2;
	--hg-parchment: #faf7f2;
	--hg-text: #333;
	--hg-text-muted: #6c757d;
	--hg-border: #e9ecef;
}

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.hg-archives-hero {
	position: relative;
	overflow: hidden;
}

.hg-archives-hero h1 {
	font-size: 2.8rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hg-archives-hero .sub-content {
	max-width: 720px;
	line-height: 1.6;
	font-size: 1.1rem;
	opacity: 0.95;
}

/* ---------------------------------------------------------------------------
   Section Navigation
   --------------------------------------------------------------------------- */
.hg-archives-nav {
	background: #fff;
	z-index: 100;
	transition: box-shadow 0.3s ease;
}

.hg-archives-nav-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.hg-archives-nav-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hg-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.hg-archives-nav-link {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	border-radius: 6px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--hg-primary);
	text-decoration: none;
	background: transparent;
	border: 2px solid transparent;
	transition: all 0.25s ease;
}

.hg-archives-nav-link:hover {
	background: var(--hg-warm-bg);
	color: var(--hg-primary);
	text-decoration: none;
}

.hg-archives-nav-link.active {
	background: var(--hg-primary);
	color: #fff;
	border-color: var(--hg-primary);
}

/* ---------------------------------------------------------------------------
   Introduction
   --------------------------------------------------------------------------- */
.hg-archives-intro {
	background: var(--hg-parchment);
	border-bottom: 1px solid var(--hg-warm-border);
}

.hg-archives-intro-text {
	font-size: 1.08rem;
	line-height: 1.75;
	color: var(--hg-sepia);
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
   Section Headers
   --------------------------------------------------------------------------- */
.hg-archives-section-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--hg-primary);
	color: #fff;
	flex-shrink: 0;
}

.hg-archives-section-icon .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
}

.hg-archives-section-heading {
	font-size: 2rem;
	font-weight: 700;
	color: var(--hg-primary);
}

.hg-archives-section-desc {
	font-size: 1rem;
	color: var(--hg-text-muted);
	margin-bottom: 0;
}

.hg-archives-section-header {
	border-bottom: 3px solid var(--hg-primary);
	padding-bottom: 16px;
}

/* ---------------------------------------------------------------------------
   Photographs Section
   --------------------------------------------------------------------------- */
.hg-archives-photographs {
	background: #fff;
}

.hg-archives-family-group {
	border-bottom: 1px solid var(--hg-border);
	padding-bottom: 32px;
}

.hg-archives-family-group:last-child {
	border-bottom: none;
}

.hg-archives-family-name {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--hg-primary);
	margin-bottom: 4px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--hg-warm-border);
}

.hg-archives-family-desc {
	font-size: 0.9rem;
	color: var(--hg-text-muted);
	font-style: italic;
	margin-bottom: 16px;
}

/* Photo Card */
.hg-archive-photo-card {
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--hg-warm-border);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hg-archive-photo-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hg-archive-photo-link {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--hg-warm-bg);
}

.hg-archive-photo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease, filter 0.4s ease;
}

.hg-archive-photo-card:hover .hg-archive-photo-img {
	transform: scale(1.05);
	filter: sepia(15%);
}

.hg-archive-photo-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--hg-warm-bg) 0%, #e8dfd2 100%);
}

.hg-archive-photo-placeholder .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: var(--hg-gold);
	opacity: 0.5;
}

.hg-archive-photo-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 45, 66, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.hg-archive-photo-card:hover .hg-archive-photo-overlay {
	opacity: 1;
}

.hg-archive-photo-view {
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 8px 20px;
	border: 2px solid #fff;
	border-radius: 4px;
}

.hg-archive-photo-caption {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hg-archive-photo-title {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--hg-text);
	line-height: 1.3;
}

.hg-archive-photo-date {
	font-size: 0.78rem;
	color: var(--hg-text-muted);
	font-style: italic;
}

/* ---------------------------------------------------------------------------
   CTA Blocks
   --------------------------------------------------------------------------- */
.hg-archives-cta {
	padding-top: 0;
	padding-bottom: 48px;
}

.hg-archives-cta-photos {
	background: #fff;
}

.hg-archives-cta-corr {
	background: var(--hg-parchment);
}

.hg-archives-cta-card {
	background: linear-gradient(135deg, #f5efe5 0%, #ede4d4 100%);
	border: 1px solid var(--hg-warm-border);
	border-radius: 12px;
	padding: 36px 40px;
	box-shadow: 0 4px 16px rgba(92, 74, 50, 0.08);
}

.hg-archives-cta-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--hg-sepia);
	margin-bottom: 8px;
}

.hg-archives-cta-text {
	font-size: 0.95rem;
	color: var(--hg-sepia);
	opacity: 0.85;
	line-height: 1.6;
	margin-bottom: 0;
}

.hg-archives-cta-btn {
	display: inline-flex;
	align-items: center;
	padding: 12px 28px;
	background: var(--hg-primary);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.3s ease, transform 0.2s ease;
	white-space: nowrap;
}

.hg-archives-cta-btn:hover {
	background: var(--hg-primary-light);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

/* ---------------------------------------------------------------------------
   Correspondence Section
   --------------------------------------------------------------------------- */
.hg-archives-correspondence {
	background: var(--hg-parchment);
}

.hg-archives-decade-group {
	border-bottom: 1px solid var(--hg-warm-border);
	padding-bottom: 28px;
}

.hg-archives-decade-group:last-child {
	border-bottom: none;
}

.hg-archives-decade-header {
	margin-bottom: 16px;
}

.hg-archives-decade-label {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--hg-primary);
	margin-bottom: 4px;
	padding-left: 16px;
	border-left: 4px solid var(--hg-gold);
}

.hg-archives-decade-desc {
	font-size: 0.88rem;
	color: var(--hg-text-muted);
	font-style: italic;
	margin-bottom: 0;
	padding-left: 20px;
}

/* Correspondence List */
.hg-archives-corr-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.hg-archives-corr-item {
	padding: 10px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	display: flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.5;
}

.hg-archives-corr-item:last-child {
	border-bottom: none;
}

.hg-archives-corr-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hg-archives-corr-link {
	color: var(--hg-primary);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
}

.hg-archives-corr-link:hover {
	text-decoration: underline;
	color: var(--hg-primary-light);
}

.hg-archives-corr-date {
	font-size: 0.82rem;
	color: var(--hg-text-muted);
	font-style: italic;
}

.hg-archives-corr-collapsed {
	margin-top: 0;
}

/* Read More / Show More */
.hg-archives-read-more-btn {
	background: var(--hg-primary);
	color: #fff;
	border: none;
	padding: 8px 22px;
	border-radius: 4px;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	margin-top: 12px;
	transition: background 0.3s ease;
}

.hg-archives-read-more-btn:hover {
	background: var(--hg-primary-light);
}

/* ---------------------------------------------------------------------------
   Type Badges
   --------------------------------------------------------------------------- */
.hg-archive-type-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
	flex-shrink: 0;
	margin-top: 2px;
	background: var(--hg-border);
	color: #495057;
}

.hg-archive-type-photograph { background: #d4edda; color: #155724; }
.hg-archive-type-letter     { background: #cce5ff; color: #004085; }
.hg-archive-type-speech     { background: #fff3cd; color: #856404; }
.hg-archive-type-article    { background: #f8d7da; color: #721c24; }
.hg-archive-type-poem       { background: #e2d9f3; color: #432874; }
.hg-archive-type-book       { background: #d1ecf1; color: #0c5460; }
.hg-archive-type-document   { background: #fde8d8; color: #7d3c00; }

/* ---------------------------------------------------------------------------
   Shortcode Grid (reusable card)
   --------------------------------------------------------------------------- */
.hg-archive-card {
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--hg-warm-border);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.hg-archive-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.hg-archive-card-img-link {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--hg-warm-bg);
}

.hg-archive-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hg-archive-card:hover .hg-archive-card-img {
	transform: scale(1.05);
}

.hg-archive-card-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 45, 66, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.hg-archive-card:hover .hg-archive-card-overlay {
	opacity: 1;
}

.hg-archive-card-overlay span {
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border: 2px solid #fff;
	padding: 6px 16px;
	border-radius: 4px;
}

.hg-archive-card-body {
	padding: 14px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hg-archive-card-title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.hg-archive-card-title a {
	color: var(--hg-text);
	text-decoration: none;
}

.hg-archive-card-title a:hover {
	color: var(--hg-primary);
	text-decoration: underline;
}

.hg-archive-card-date {
	font-size: 0.8rem;
	color: var(--hg-text-muted);
	font-style: italic;
}

/* ---------------------------------------------------------------------------
   Single Template
   --------------------------------------------------------------------------- */
.hg-archive-single-hero {
	background: var(--hg-primary);
	color: #fff;
	padding: 60px 0 40px;
}

.hg-archive-single-hero h1 {
	font-size: 2.2rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.hg-archive-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	margin-top: 12px;
}

.hg-archive-single-meta-item {
	font-size: 0.9rem;
	opacity: 0.85;
}

.hg-archive-single-content {
	padding: 48px 0;
}

.hg-archive-single-image {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	margin-bottom: 32px;
	border: 4px solid var(--hg-warm-border);
}

.hg-archive-single-image img {
	width: 100%;
	height: auto;
	display: block;
}

.hg-archive-single-sidebar {
	background: var(--hg-parchment);
	border-radius: 8px;
	padding: 24px;
	border: 1px solid var(--hg-warm-border);
}

.hg-archive-single-sidebar h3 {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--hg-primary);
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--hg-warm-border);
}

.hg-archive-single-detail {
	margin-bottom: 12px;
}

.hg-archive-single-detail-label {
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--hg-text-muted);
	display: block;
	margin-bottom: 2px;
}

.hg-archive-single-detail-value {
	font-size: 0.95rem;
	color: var(--hg-text);
}

.hg-archive-btn-view-external {
	display: inline-block;
	padding: 10px 24px;
	background: var(--hg-primary);
	color: #fff;
	font-size: 0.92rem;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.3s ease;
	margin-top: 16px;
}

.hg-archive-btn-view-external:hover {
	background: var(--hg-primary-light);
	color: #fff;
	text-decoration: none;
}

.hg-archive-btn-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 24px;
	background: transparent;
	color: var(--hg-primary);
	font-size: 0.92rem;
	font-weight: 600;
	border: 2px solid var(--hg-primary);
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.hg-archive-btn-back:hover {
	background: var(--hg-primary);
	color: #fff;
	text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Pagination
   --------------------------------------------------------------------------- */
.hg-archives-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 3px;
	border: 1px solid var(--hg-border);
	border-radius: 4px;
	color: var(--hg-primary);
	text-decoration: none;
	font-size: 0.9rem;
	transition: all 0.2s ease;
}

.hg-archives-pagination .page-numbers.current,
.hg-archives-pagination .page-numbers:hover {
	background: var(--hg-primary);
	color: #fff;
	border-color: var(--hg-primary);
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 991px) {
	.hg-archives-hero h1 {
		font-size: 2rem;
	}

	.hg-archives-cta-card {
		padding: 24px;
	}

	.hg-archives-section-heading {
		font-size: 1.6rem;
	}
}

@media (max-width: 767px) {
	.hg-archives-hero h1 {
		font-size: 1.6rem;
	}

	.hg-archives-hero .sub-content {
		font-size: 0.95rem;
	}

	.hg-archives-nav-link {
		font-size: 0.82rem;
		padding: 6px 12px;
	}

	.hg-archive-photo-link {
		aspect-ratio: 1 / 1;
	}

	.hg-archives-cta-btn {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	.hg-archives-section-heading {
		font-size: 1.3rem;
	}

	.hg-archives-family-name {
		font-size: 1.1rem;
	}

	.hg-archives-decade-label {
		font-size: 1.1rem;
	}

	.hg-archive-single-hero h1 {
		font-size: 1.6rem;
	}
}
