/* ============================================
   CONCEPT 4: INLINE
   Centered column · Dropdown filters · Editorial
   ============================================ */

/* ---- Navbar: Transparent Overlay ---- */
.c4-nav {
	background: transparent;
	position: absolute;
	/* top: 0; */
	left: 0;
	right: 0;
	z-index: 10;
}

.c4-nav-inner {
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	align-items: center;
	height: 56px;
}

.c4-nav-brand {
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	letter-spacing: -0.01em;
	margin-right: auto;
}

.c4-nav-brand:hover { color: #fff; }

.c4-nav-links {
	display: flex;
	gap: 6px;
}

.c4-nav-links a {
	padding: 6px 12px;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.6);
	border-radius: 6px;
	transition: all 0.15s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.c4-nav-links a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.c4-nav-links a svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ---- Hero: Editorial Clean ---- */
.c4-hero {
	background-color: #1e293b;
	background-image: var(--hero-img);
	background-size: cover;
	background-position: center;
	padding: calc(4.5rem + 56px) 2rem 3.5rem;
	text-align: center;
	color: #fff;
	position: relative;
}

.c4-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(30, 41, 59, 0.80);
}

.c4-hero-content {
	position: relative;
	max-width: 580px;
	margin: 0 auto;
}

.c4-hero-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 1rem;
	padding: 4px 14px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 20px;
}

.c4-hero-title {
	font-size: 2.5rem;
	font-weight: 300;
	line-height: 1.15;
	color: #fff;
	margin-bottom: 0.75rem;
	letter-spacing: -0.01em;
}

.c4-hero-sub {
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 2rem;
	font-weight: 300;
}

.c4-hero-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
}

.c4-hero-btn {
	display: inline-block;
	font-size: 1rem;
	font-weight: 600;
	transition: all 0.2s;
}

.c4-btn-primary {
	padding: 0.7rem 1.5rem;
	background: #3b82f6;
	color: #fff;
	border-radius: 8px;
}

.c4-btn-primary:hover { background: #2563eb; color: #fff; }

.c4-btn-ghost {
	padding: 0.7rem 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: rgba(255, 255, 255, 0.85);
	border-radius: 8px;
}

.c4-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.45); color: #fff; }

/* ---- Wrap ---- */
.c4-wrap {
	max-width: 840px;
	margin: 0 auto;
	padding: 48px 32px 80px;
}

/* ---- Search Row ---- */
.c4-search-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

/* ---- Merged Search + Filter Group ---- */
.c4-search-group {
	display: flex;
	align-items: center;
	flex: 1;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 100px;
	overflow: hidden;
	transition: background-color 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.c4-search-group:focus-within {
	border-color: #93b4f8;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.c4-search-group .c4-search {
	flex: 1;
	margin-bottom: 0;
}

.c4-search-group .c4-search input {
	height: 48px;
	width: 100%;
	padding: 0 24px;
	background: transparent;
	border: none;
	font-size: 1rem;
	color: #0f172a;
	outline: none;
}

.c4-search-group .c4-search input::placeholder { color: #94a3b8; }

/* ---- Filter Button (icon only, inside search group) ---- */
.c4-filter-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	background: transparent;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	transition: all 0.15s;
	flex-shrink: 0;
	position: relative;
}

.c4-filter-btn svg {
	width: 18px;
	height: 18px;
}

.c4-filter-btn:hover {
	color: #0f172a;
}

.c4-filter-btn.active {
	color: #3b82f6;
}

.c4-filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	background: #3b82f6;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 11px;
	flex-shrink: 0;
}

/* ---- View Toggle ---- */
.c4-search-row .c4-view-toggle {
	height: 48px;
	border-radius: 100px;
	align-items: center;
	background: #fff;
	border: 1px solid #e2e8f0;
	padding: 4px;
}

.c4-vbtn {
	padding: 8px 10px;
	border: none;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
	border-radius: 100px;
	transition: all 0.15s;
	display: flex;
	align-items: center;
}

.c4-vbtn.active {
	background: #f1f5f9;
	color: #0f172a;
}

/* ---- Modal Overlay ---- */
.c4-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s;
}

.c4-modal-overlay.open {
	opacity: 1;
	visibility: visible;
}

/* ---- Modal ---- */
.c4-modal {
	background: #fff;
	border-radius: 20px;
	width: 90%;
	max-width: 520px;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(12px) scale(0.97);
	transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.c4-modal-overlay.open .c4-modal {
	transform: translateY(0) scale(1);
}

.c4-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px 16px;
	border-bottom: 1px solid #f1f5f9;
}

.c4-modal-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: #0f172a;
}

.c4-modal-close {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: #f1f5f9;
	color: #64748b;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1.25rem;
	transition: all 0.15s;
}

.c4-modal-close:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.c4-modal-body {
	overflow-y: auto;
	padding: 8px 24px;
	flex: 1;
}

/* ---- Modal Sections ---- */
.c4-modal-section {
	padding: 14px 0;
	border-bottom: 1px solid #f1f5f9;
}

.c4-modal-section:last-child {
	border-bottom: none;
}

.c4-modal-section-title {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #94a3b8;
	margin-bottom: 10px;
}

/* ---- Collapsible modal sections ---- */
.c4-modal-section-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #94a3b8;
	margin-bottom: 0;
	transition: color 0.15s;
}

.c4-modal-section-toggle:hover { color: #64748b; }

.c4-modal-section-toggle .chevron {
	width: 14px;
	height: 14px;
	transition: transform 0.25s;
}

.c4-modal-section.collapsed .c4-modal-section-toggle .chevron {
	transform: rotate(-90deg);
}

.c4-modal-section-body {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 0.25s ease;
}

.c4-modal-section.collapsed .c4-modal-section-body {
	grid-template-rows: 0fr;
}

.c4-modal-section-inner {
	overflow: hidden;
	padding-top: 10px;
}

.c4-modal-section.collapsed .c4-modal-section-inner {
	padding-top: 0;
}

.c4-modal-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px 16px;
}

.c4-modal-options.single-col {
	grid-template-columns: 1fr;
}

/* ---- Modal Checkbox Labels ---- */
.c4-modal label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	font-size: 0.9375rem;
	color: #475569;
	cursor: pointer;
	transition: color 0.15s;
	white-space: nowrap;
}

.c4-modal label:hover { color: #0f172a; }

.c4-modal label span {
	margin-left: auto;
	font-size: 0.75rem;
	color: #94a3b8;
	font-variant-numeric: tabular-nums;
}

/* ---- Modal Checkboxes ---- */
.c4-modal input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 1.5px solid #cbd5e1;
	border-radius: 5px;
	background: #fff;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	transition: all 0.15s;
}

.c4-modal input[type="checkbox"]:checked {
	background: #3b82f6;
	border-color: #3b82f6;
}

.c4-modal input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 6px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* ---- Modal Footer ---- */
.c4-modal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	border-top: 1px solid #f1f5f9;
}

.c4-modal-clear {
	padding: 8px 16px;
	background: none;
	border: none;
	color: #94a3b8;
	font-size: 0.9375rem;
	font-weight: 500;
	cursor: pointer;
	transition: color 0.15s;
}

.c4-modal-clear:hover { color: #64748b; }

.c4-modal-apply {
	padding: 10px 24px;
	background: #3b82f6;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.c4-modal-apply:hover { background: #2563eb; }

/* ---- Chips row ---- */
.c4-chips-row {
	margin-bottom: 20px;
	border-bottom: 2px solid #f1f5f9;
}

.c4-chips-row:empty,
.c4-chips-row:not(:has(.c4-chip)) {
	display: none;
}

.c4-chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.c4-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	background: #fff;
	color: #334155;
	border: 1px solid #e2e8f0;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s;
}

.c4-chip:hover { background: #f8fafc; border-color: #cbd5e1; }

.c4-view-toggle {
	display: flex;
	gap: 2px;
}

/* ---- List view ---- */
.c4-list {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
}

.c4-list-header {
	display: grid;
	grid-template-columns: 1fr 220px 55px;
	align-items: center;
	gap: 16px;
	padding: 10px 20px;
	background: #f8f9fb;
	border-bottom: 1px solid #e2e8f0;
}

.c4-list-header-col {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #94a3b8;
	cursor: pointer;
	user-select: none;
	transition: color 0.15s;
	border: none;
	background: none;
	padding: 0;
}

.c4-list-header-col:hover { color: #64748b; }

.c4-list-header-col.sorted { color: #3b82f6; }

.c4-list-header-col .sort-arrow {
	width: 10px;
	height: 10px;
	opacity: 0;
	transition: opacity 0.15s, transform 0.15s;
}

.c4-list-header-col:hover .sort-arrow { opacity: 0.4; }

.c4-list-header-col.sorted .sort-arrow { opacity: 1; }

.c4-list-header-col.sorted.desc .sort-arrow { transform: rotate(180deg); }

.c4-list-item {
	display: grid;
	grid-template-columns: 1fr 220px 55px;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border-bottom: 1px solid #f0f2f5;
	transition: background 0.15s;
}

.c4-list-item:last-child {
	border-bottom: none;
}

.c4-list-item:hover {
	background: #f8fafc;
}

.c4-item-name {
	font-size: 1rem;
	font-weight: 500;
	color: #0f172a;
	letter-spacing: -0.005em;
}

.c4-item-div {
	font-size: 1rem;
	color: #94a3b8;
}

.c4-badge {
	font-size: 1rem;
	color: #94a3b8;
}

.c4-badge::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--dot, #94a3b8);
	margin-right: 6px;
	vertical-align: middle;
}

.c4-item-year {
	font-size: 1rem;
	color: #94a3b8;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* ---- Year Range Slider ---- */
.c4-year-range { padding: 4px 0; }

.c4-year-range-labels {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 8px;
}

.c4-year-range-track {
	position: relative;
	height: 28px;
}

.c4-year-range-rail {
	position: absolute;
	width: 100%;
	height: 4px;
	background: #e2e8f0;
	border-radius: 2px;
	top: 50%;
	transform: translateY(-50%);
}

.c4-year-range-fill {
	position: absolute;
	height: 4px;
	background: #3b82f6;
	border-radius: 2px;
	top: 50%;
	transform: translateY(-50%);
	transition: left 0.1s, width 0.1s;
}

.c4-year-range-track input[type="range"] {
	position: absolute;
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
	margin: 0;
	height: 4px;
}

.c4-year-range-track input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: all;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #3b82f6;
	cursor: pointer;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.15);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.c4-year-range-track input[type="range"]::-webkit-slider-thumb:hover {
	transform: scale(1.2);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.c4-year-range-track input[type="range"]::-moz-range-thumb {
	pointer-events: all;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #3b82f6;
	cursor: pointer;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* ---- Card view ---- */
.c4-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.c4-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s;
	animation: c4PopIn 0.35s cubic-bezier(0.2, 0, 0, 1) both;
}

.c4-card:hover {
	transform: translateY(-4px) scale(1.01);
	box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

@keyframes c4PopIn {
	from { opacity: 0; transform: scale(0.92); }
	to { opacity: 1; transform: scale(1); }
}

.c4-card-thumb {
	aspect-ratio: 1;
	background: linear-gradient(160deg, #eff6ff, #dbeafe, #bfdbfe);
	background-size: cover;
	background-position: top center;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.c4-card-thumb-placeholder {
	color: #c7d2e0;
	opacity: 0.6;
}

.c4-card-body { padding: 16px; }

.c4-card-title {
	font-size: 1rem;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.c4-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.c4-card-year {
	font-size: 1rem;
	color: #94a3b8;
}

/* ---- Footer bar (count + pagination) ---- */
.c4-footer-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0 0;
	margin-top: 12px;
}

.c4-count {
	font-size: 0.875rem;
	color: #94a3b8;
	font-weight: 500;
}

.c4-pagination {
	display: flex;
	align-items: center;
	gap: 2px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 100px;
	padding: 3px;
}

.c4-page-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 100px;
	background: transparent;
	color: #64748b;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.15s;
}

.c4-page-btn:hover:not(:disabled) {
	background: #f1f5f9;
	color: #0f172a;
}

.c4-page-btn:disabled {
	opacity: 0.25;
	cursor: default;
}

.c4-page-info {
	font-size: 0.8rem;
	color: #94a3b8;
	padding: 0 6px;
	font-variant-numeric: tabular-nums;
}
