
:root{
	--lc-font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	--lc-bg: #fef7f0;
	--lc-fg: #1a1a1a;
	--lc-muted: #6b7280;
	--lc-primary: #f97316; /* orange */
	--lc-primary-600: #ea580c;
	--lc-primary-500: #f97316;
	--lc-primary-400: #fb923c;
	--lc-primary-300: #fdba74;
	--lc-primary-200: #fed7aa;
	--lc-primary-100: #ffedd5;
	--lc-primary-50: #fff7ed;
	--lc-accent: #111827;
	--lc-border: #fed7aa;
	--lc-card: #ffffff;
	--lc-shadow: 0 1px 3px 0 rgba(249, 115, 22, 0.1), 0 1px 2px 0 rgba(249, 115, 22, 0.06);
	--lc-shadow-lg: 0 10px 15px -3px rgba(249, 115, 22, 0.1), 0 4px 6px -2px rgba(249, 115, 22, 0.05);
	--lc-shadow-xl: 0 20px 25px -5px rgba(249, 115, 22, 0.1), 0 10px 10px -5px rgba(249, 115, 22, 0.04);
	--lc-radius: 12px;
	--lc-radius-lg: 16px;
	--lc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	background: var(--lc-bg);
	color: var(--lc-fg);
	font-family: var(--lc-font);
	line-height: 1.6;
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 25%, #ffedd5 50%, #fef3c7 75%, #fef7f0 100%);
	background-attachment: fixed;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.alignwide {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
}

.alignfull {
	width: 100%;
}

/* Modern container system */
.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
}

.container-sm {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Modern Hero Section */
.hero-latest {
	margin-bottom: 60px;
	padding: 80px 0;
	background: linear-gradient(135deg, var(--lc-primary-50) 0%, var(--lc-primary-100) 25%, rgba(255,255,255,0.9) 50%, var(--lc-primary-50) 75%, rgba(255,255,255,0.8) 100%);
	position: relative;
	overflow: hidden;
}

.hero-latest::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23f97316" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23f97316" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23f97316" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
	opacity: 0.4;
}

.hero-link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: var(--lc-transition);
}

.hero-link:hover {
	transform: translateY(-2px);
}

.hero-title-link {
	color: inherit;
	text-decoration: none;
	transition: var(--lc-transition);
}

.hero-title-link:hover {
	color: var(--lc-primary);
}

.hero-centered {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	z-index: 1;
}

.hero-latest .hero-media {
	width: 100%;
	margin-top: 40px;
}

.hero-media--center {
	display: flex;
	justify-content: center;
}

.hero-media .hero-link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: var(--lc-transition);
}

.hero-media .hero-link:hover {
	transform: translateY(-2px);
}

.hero-media__inner {
	max-width: 900px;
	border-radius: var(--lc-radius-lg);
	overflow: hidden;
	box-shadow: var(--lc-shadow-xl);
	transition: var(--lc-transition);
	position: relative;
}

.hero-media__inner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, transparent 0%, rgba(37, 99, 235, 0.1) 100%);
	opacity: 0;
	transition: var(--lc-transition);
}

.hero-link:hover .hero-media__inner::before {
	opacity: 1;
}

.hero-latest h1 {
	font-size: clamp(32px, 5vw, 56px);
	line-height: 1.1;
	margin: 0 0 32px;
	color: var(--lc-accent);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.hero-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.hero-read-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--lc-primary);
	color: #fff;
	padding: 18px 36px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 700;
	font-size: 18px;
	transition: var(--lc-transition);
	box-shadow: var(--lc-shadow-lg);
	border: 2px solid var(--lc-primary);
	position: relative;
	z-index: 10;
	pointer-events: auto;
	cursor: pointer;
}

.hero-read-button:hover {
	background: var(--lc-primary-600);
	border-color: var(--lc-primary-600);
	transform: translateY(-3px);
	box-shadow: var(--lc-shadow-xl);
}

.hero-download-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--lc-primary);
	padding: 18px 36px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	font-size: 18px;
	transition: var(--lc-transition);
	box-shadow: var(--lc-shadow);
	border: 2px solid var(--lc-primary);
	backdrop-filter: blur(10px);
	position: relative;
	z-index: 10;
	pointer-events: auto;
	cursor: pointer;
}

.hero-download-button:hover {
	background: var(--lc-primary);
	color: white;
	transform: translateY(-3px);
	box-shadow: var(--lc-shadow-lg);
}

@media (max-width: 768px) {
	.hero-actions {
		flex-direction: column;
		align-items: center;
	}
	
	.hero-read-button,
	.hero-download-button {
		width: 100%;
		max-width: 300px;
		justify-content: center;
	}
}

/* Modern Grid System */
.recent-grid {
	margin-top: 60px;
}

.edition-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

@media (max-width: 1200px) {
	.edition-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 20px;
	}
}

@media (max-width: 1024px) {
	.edition-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.edition-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.edition-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* Modern Card Design */
.edition-card {
	background: var(--lc-card);
	border: 1px solid var(--lc-border);
	border-radius: var(--lc-radius);
	overflow: hidden;
	box-shadow: var(--lc-shadow);
	transition: var(--lc-transition);
	position: relative;
	group: hover;
	min-height: 400px; /* Ensure consistent card height */
}

/* Hide empty grid slots */
.edition-card[style*="display: none"] {
	display: none !important;
}

/* No results message styling */
.no-results-message {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	background: var(--lc-card);
	border-radius: var(--lc-radius);
	border: 1px solid var(--lc-border);
	box-shadow: var(--lc-shadow);
	margin: 0;
}

.edition-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--lc-shadow-xl);
	border-color: var(--lc-primary);
}

.edition-card__link {
	color: inherit;
	text-decoration: none;
	display: block;
	height: 100%;
	position: relative;
}

.edition-card__media {
	position: relative;
	aspect-ratio: 3/4;
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	overflow: hidden;
}

.edition-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: var(--lc-transition);
}

.edition-card:hover .edition-card__media img {
	transform: scale(1.05);
}

.edition-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--lc-primary);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 20px;
	padding: 6px 12px;
	box-shadow: var(--lc-shadow);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 2;
}

.edition-card__content {
	padding: 20px;
	position: relative;
}

.edition-card__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 12px;
	color: var(--lc-accent);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.edition-card__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--lc-muted);
	font-size: 14px;
}

.edition-card__date {
	font-weight: 500;
}

.edition-card__number {
	background: var(--lc-primary-50);
	color: var(--lc-primary);
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	display: inline-block;
	width: fit-content;
}

/* Card hover effects */
.edition-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, transparent 0%, rgba(249, 115, 22, 0.05) 100%);
	opacity: 0;
	transition: var(--lc-transition);
	z-index: 1;
}

.edition-card:hover::before {
	opacity: 1;
}

.edition-card__content {
	position: relative;
	z-index: 2;
}

/* Modern PDF Viewer */
.pdf-viewer {
	width: 100%;
	min-height: 80vh;
	background: #1a1a1a;
	border-radius: var(--lc-radius-lg);
	overflow: hidden;
	display: grid;
	place-items: center;
	position: relative;
	box-shadow: var(--lc-shadow-xl);
}

.pdf-viewer embed,
.pdf-viewer iframe {
	width: 100%;
	height: 80vh;
	border: none;
	border-radius: var(--lc-radius-lg);
}

/* PDF Viewer Controls */
.pdf-controls {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	gap: 12px;
	z-index: 10;
}

.pdf-control-btn {
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 8px;
	padding: 12px;
	cursor: pointer;
	transition: var(--lc-transition);
	box-shadow: var(--lc-shadow);
}

.pdf-control-btn:hover {
	background: white;
	transform: translateY(-2px);
}

/* Modern Pagination */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 60px 0;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	border-radius: var(--lc-radius);
	border: 1px solid var(--lc-border);
	text-decoration: none;
	color: var(--lc-muted);
	font-weight: 500;
	transition: var(--lc-transition);
	background: var(--lc-card);
}

.pagination .page-numbers:hover {
	background: var(--lc-primary-50);
	border-color: var(--lc-primary);
	color: var(--lc-primary);
	transform: translateY(-2px);
}

.pagination .page-numbers.current {
	background: var(--lc-primary);
	border-color: var(--lc-primary);
	color: #fff;
	box-shadow: var(--lc-shadow);
}

.pagination .page-numbers.dots {
	border: none;
	background: transparent;
	cursor: default;
}

.pagination .page-numbers.dots:hover {
	transform: none;
	background: transparent;
	border: none;
	color: var(--lc-muted);
}

/* Modern Buttons */
.button-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--lc-primary);
	color: #fff;
	padding: 14px 24px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	transition: var(--lc-transition);
	box-shadow: var(--lc-shadow);
	border: none;
	cursor: pointer;
}

.button-primary:hover {
	background: var(--lc-primary-600);
	transform: translateY(-2px);
	box-shadow: var(--lc-shadow-lg);
}

.button-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--lc-border);
	color: var(--lc-fg);
	padding: 14px 24px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	transition: var(--lc-transition);
	cursor: pointer;
}

.button-secondary:hover {
	border-color: var(--lc-primary);
	color: var(--lc-primary);
	transform: translateY(-2px);
	box-shadow: var(--lc-shadow);
}

/* Modern Single Page Layout */
.edition-header {
	margin-bottom: 40px;
	padding: 40px 0;
	background: linear-gradient(135deg, var(--lc-primary-50) 0%, var(--lc-primary-100) 25%, rgba(255,255,255,0.9) 50%, var(--lc-primary-50) 75%, rgba(255,255,255,0.8) 100%);
	border-radius: var(--lc-radius-lg);
	text-align: center;
}

.edition-title {
	font-size: clamp(28px, 4vw, 48px);
	margin: 0 0 16px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--lc-accent);
	letter-spacing: -0.02em;
}

.edition-sub {
	color: var(--lc-muted);
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 24px;
	font-size: 16px;
}

.edition-number {
	background: var(--lc-primary);
	color: white;
	padding: 8px 16px;
	border-radius: 25px;
	font-weight: 600;
	font-size: 14px;
}

.edition-date {
	font-weight: 500;
}

.edition-viewer {
	margin: 40px 0;
	position: relative;
}

.edition-related {
	margin-top: 80px;
	padding-top: 40px;
	border-top: 1px solid var(--lc-border);
}

.edition-related h2 {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 32px;
	color: var(--lc-accent);
	text-align: center;
}

/* Custom Header Styling */
.site-header {
	background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--lc-border);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 30px 24px;
}

.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: center;
	position: relative;
}

.header-top .site-branding,
.header-top .custom-logo-link {
	margin: 0 auto;
}

/* Search Toggle Button */
.search-toggle {
	background: var(--lc-primary);
	color: white;
	border: none;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--lc-transition);
	box-shadow: var(--lc-shadow);
	position: absolute;
	right: 0;
}

.search-toggle:hover {
	background: var(--lc-primary-600);
	transform: scale(1.1);
	box-shadow: var(--lc-shadow-lg);
}

/* Header Search Bar */
.header-search {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid var(--lc-border);
	border-top: none;
	border-radius: 0 0 var(--lc-radius) var(--lc-radius);
	box-shadow: var(--lc-shadow-lg);
	transform: translateY(-100%);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1001;
}

.header-search.active {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.search-input-container {
	display: flex;
	align-items: center;
	padding: 20px;
	gap: 12px;
}

.search-input {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--lc-border);
	border-radius: 25px;
	font-size: 16px;
	background: var(--lc-bg);
	transition: var(--lc-transition);
}

.search-input:focus {
	outline: none;
	border-color: var(--lc-primary);
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
	background: white;
}

.search-submit {
	background: var(--lc-primary);
	color: white;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--lc-transition);
}

.search-submit:hover {
	background: var(--lc-primary-600);
	transform: scale(1.1);
}

.search-close {
	background: var(--lc-muted);
	color: white;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--lc-transition);
}

.search-close:hover {
	background: #dc2626;
	transform: scale(1.1);
}

/* Search toggle rotation animation */
.search-toggle {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent body scroll when search is open */
body.search-open {
	overflow: hidden;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
	.header-container {
		padding: 20px 16px;
	}
	
	.search-toggle {
		width: 44px;
		height: 44px;
	}
	
	.search-input-container {
		padding: 16px;
		gap: 8px;
	}
	
	.search-input {
		font-size: 16px; /* Prevent zoom on iOS */
	}
	
	.search-submit,
	.search-close {
		width: 36px;
		height: 36px;
	}
}

@media (max-width: 480px) {
	.header-top {
		flex-direction: column;
		gap: 16px;
	}
	
	.search-toggle {
		position: static;
		order: 2;
	}
	
	.header-top .site-branding,
	.header-top .custom-logo-link {
		order: 1;
		margin: 0;
	}
}

.custom-logo {
	height: auto;
	max-height: 120px;
	width: auto;
	display: block;
	margin: 0 auto;
	filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
	transition: var(--lc-transition);
}

.custom-logo:hover {
	transform: scale(1.05);
}

.custom-logo-text {
	font-size: 48px;
	font-weight: 800;
	color: var(--lc-accent);
	letter-spacing: -0.02em;
	text-decoration: none;
	transition: var(--lc-transition);
}

.custom-logo-text:hover {
	color: var(--lc-primary);
	transform: scale(1.05);
}

.site-branding {
	display: inline-block;
}

.site-title {
	margin: 0;
	font-size: 48px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.site-title a {
	color: var(--lc-accent);
	text-decoration: none;
	transition: var(--lc-transition);
}

.site-title a:hover {
	color: var(--lc-primary);
}

/* Hide WordPress default header elements */
.wp-site-blocks .wp-block-site-logo,
.wp-site-blocks .wp-block-site-title,
.wp-site-blocks header,
.wp-site-blocks .wp-block-template-part {
	display: none !important;
}

/* Footer Styling */
.site-footer {
	background: linear-gradient(135deg, var(--lc-primary-50) 0%, var(--lc-primary-100) 100%);
	border-top: 1px solid var(--lc-border);
	margin-top: 60px;
}

.footer-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 24px;
	text-align: center;
}

.site-info p {
	margin: 0;
	color: var(--lc-muted);
	font-size: 14px;
}

/* Hide footer */
.wp-site-blocks .wp-block-template-part:last-child {
	display: none;
}

/* Loading States */
.loading {
	opacity: 0.6;
	pointer-events: none;
}

.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 32px;
	height: 32px;
	margin: -16px 0 0 -16px;
	border: 3px solid var(--lc-border);
	border-top: 3px solid var(--lc-primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Search and Filter Styles */
.search-filters {
	background: var(--lc-card);
	border-radius: var(--lc-radius);
	padding: 24px;
	margin-bottom: 40px;
	box-shadow: var(--lc-shadow);
	border: 1px solid var(--lc-border);
}

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

.filter-group label {
	font-weight: 600;
	color: var(--lc-accent);
	margin-right: 8px;
}

.filter-group select,
.filter-group input {
	padding: 10px 16px;
	border: 1px solid var(--lc-border);
	border-radius: 8px;
	font-size: 14px;
	background: white;
	transition: var(--lc-transition);
}

.filter-group select:focus,
.filter-group input:focus {
	outline: none;
	border-color: var(--lc-primary);
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
	.hero-latest {
		padding: 60px 0;
	}
	
	.hero-latest h1 {
		font-size: clamp(24px, 6vw, 40px);
	}
	
	.edition-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 16px;
	}
	
	.edition-card__content {
		padding: 16px;
	}
	
	.edition-card__title {
		font-size: 16px;
	}
	
	.filter-group {
		flex-direction: column;
		align-items: stretch;
	}
	
	.filter-group > * {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.container,
	.alignwide {
		padding: 0 16px;
	}
	
	.hero-latest {
		padding: 40px 0;
	}
	
	.edition-header {
		padding: 24px 16px;
	}
	
	.edition-title {
		font-size: 24px;
	}
	
	.edition-sub {
		flex-direction: column;
		gap: 12px;
	}
}
