/* ============================================
   CONCEPT 6: TABS
   Compact filter bar with dropdowns
   ============================================ */

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

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

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

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

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

.c6-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;
}

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

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

/* ---- Hero: Warm Panoramic ---- */
.c6-hero {
	background-image: var(--hero-img);
	background-size: cover;
	background-position: center;
	padding: calc(5.5rem + 56px) 2.5rem 4.5rem;
	text-align: center;
	color: #fff;
	position: relative;
}

.c6-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 58, 95, 0.78));
}

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

.c6-hero-eyebrow {
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	color: #fbbf24;
	margin-bottom: 1rem;
}

.c6-hero-title {
	font-size: 3rem;
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 0.75rem;
}

.c6-hero-sub {
	font-size: 1.1rem;
	opacity: 0.75;
	margin-bottom: 2rem;
	font-weight: 300;
}

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

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

.c6-btn-primary {
	padding: 0.7rem 1.5rem;
	background: #f59e0b;
	color: #0f172a;
	border-radius: 8px;
}

.c6-btn-primary:hover { background: #d97706; color: #0f172a; }

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

.c6-btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ---- C6 background ---- */
.c6 { background: #fff; }

/* ---- Filter bar ---- */
.c6-filter-bar {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	position: sticky;
	top: 0;
	z-index: 10;
}

.c6-filter-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 32px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.c6-search { flex: 1; }

.c6-search input {
	width: 100%;
	padding: 8px 14px;
	background: transparent;
	border: none;
	border-radius: 0;
	font-size: 1rem;
	color: #0f172a;
	outline: none;
}

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

/* ---- Search + Filter merged group ---- */
.c6-search-group {
	display: flex;
	align-items: center;
	flex: 1;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 100px;
	overflow: visible;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

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

/* ---- Single filter dropdown ---- */
.c6-filter-dropdown-wrap {
	position: relative;
}

.c6-add-filter-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	border: none;
	border-radius: 0;
	background: transparent;
	font-size: 0.875rem;
	font-weight: 500;
	color: #94a3b8;
	cursor: pointer;
	transition: color 0.15s;
	white-space: nowrap;
}

.c6-add-filter-btn svg { opacity: 0.5; flex-shrink: 0; }

.c6-add-filter-btn:hover {
	color: #475569;
}

.c6-add-filter-btn:hover svg { opacity: 1; }

.c6-add-filter-btn.has-filters {
	color: #3b82f6;
}

.c6-add-filter-btn.has-filters > svg { display: none; }

.c6-filter-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: #3b82f6;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 600;
	border-radius: 9px;
	pointer-events: none;
}

/* ---- Filter panel (cascading dropdown) ---- */
.c6-filter-panel {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 6px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	z-index: 20;
	width: 300px;
	max-height: 400px;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.c6-filter-panel.open { display: flex; flex-direction: column; }

/* Level 1: dimension list */
.c6-dim-list {
	padding: 8px;
}

.c6-dim-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border: none;
	background: none;
	width: 100%;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #374151;
	cursor: pointer;
	border-radius: 8px;
	transition: background 0.1s;
}

.c6-dim-item:hover { background: #f8fafc; }

.c6-dim-item .c6-dim-count {
	font-size: 0.75rem;
	color: #94a3b8;
	font-weight: 400;
}

.c6-dim-item .c6-dim-active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #e2e8f0;
	font-size: 0.75rem;
	font-weight: 600;
	color: #374151;
}

.c6-dim-item .c6-dim-active:empty {
	display: none;
}

.c6-dim-item svg {
	width: 14px;
	height: 14px;
	color: #6b7280;
	flex-shrink: 0;
}

/* Level 2: dimension options */
.c6-dim-options {
	display: none;
	flex-direction: column;
	flex: 1;
	overflow: hidden;
}

.c6-dim-options.active { display: flex; }

.c6-dim-options-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	border-bottom: 1px solid #f1f5f9;
}

.c6-dim-back {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: none;
	background: #f1f5f9;
	color: #64748b;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.1s;
	flex-shrink: 0;
}

.c6-dim-back:hover { background: #e2e8f0; color: #0f172a; }

.c6-dim-options-title {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #94a3b8;
}

.c6-dim-options-body {
	overflow-y: auto;
	padding: 8px 14px 12px;
	flex: 1;
}

/* ---- Checkbox labels inside filter panel ---- */
.c6-filter-panel label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
	font-size: 0.9375rem;
	color: #475569;
	cursor: pointer;
	transition: color 0.15s;
	white-space: nowrap;
}

.c6-filter-panel label:hover { color: #0f172a; }

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

/* ---- Custom checkboxes ---- */
.c6-filter-panel 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;
}

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

.c6-filter-panel 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);
}

/* ---- Content ---- */
.c6-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 32px 80px;
}

/* ---- Toolbar ---- */
.c6-toolbar {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.c6-count {
	font-size: 1rem;
	color: #9ca3af;
	font-weight: 500;
}

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

.c6-active-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	background: #f3f4f6;
	color: #374151;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s;
}

.c6-active-chip:hover { background: #e5e7eb; }

.c6-view-toggle {
	display: flex;
	gap: 2px;
	border: 1px solid #e2e8f0;
	border-radius: 100px;
	padding: 3px;
}

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

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

/* ---- List view ---- */
.c6-list-item {
	display: grid;
	grid-template-columns: 1fr 200px 140px 60px;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border-bottom: 1px solid #f3f4f6;
	transition: all 0.1s;
}

.c6-list-item:first-child {
	border-top: none;
}

.c6-list-item:hover {
	background: #f9fafb;
}

.c6-item-name {
	font-size: 1rem;
	font-weight: 500;
	color: #111827;
}

.c6-item-div {
	font-size: 1rem;
	color: #9ca3af;
}

.c6-badge {
	font-size: 1rem;
	color: #9ca3af;
}

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

.c6-item-year {
	font-size: 1rem;
	color: #9ca3af;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

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

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

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

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

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

.c6-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;
}

.c6-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;
}

.c6-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);
}

.c6-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 ---- */
.c6-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
}

.c6-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.2s;
	animation: c6Rise 0.3s ease both;
}

.c6-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.06);
	border-color: #d1d5db;
}

@keyframes c6Rise {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.c6-card-thumb {
	aspect-ratio: 1;
	background: linear-gradient(140deg, #f9fafb, #f3f4f6, #e5e7eb);
	background-size: cover;
	background-position: top center;
}

.c6-card-body { padding: 14px; }

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

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

.c6-card-year {
	font-size: 1rem;
	color: #9ca3af;
}

/* ---- Standardized heights in filter bar ---- */
.c6-search input {
	height: 40px;
	padding: 0 14px;
}

.c6-view-toggle {
	height: 40px;
	align-items: center;
	flex-shrink: 0;
}

.c6-vbtn {
	height: 34px;
	padding: 0 10px;
}

/* ---- Sortable list header ---- */
.c6-list-header {
	display: grid;
	grid-template-columns: 1fr 200px 140px 60px;
	gap: 14px;
	padding: 0 14px;
	border-bottom: 2px solid #e5e7eb;
}

.c6-list-header-col {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 0;
	border: none;
	background: none;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #9ca3af;
	cursor: pointer;
	transition: color 0.15s;
}

.c6-list-header-col:last-child {
	justify-content: flex-end;
}

.c6-list-header-col:hover {
	color: #374151;
}

.c6-list-header-col.sorted {
	color: #111827;
}

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

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

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

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

/* ---- Footer bar ---- */
.c6-footer-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	margin-top: 8px;
	border-top: 1px solid #f3f4f6;
}

/* ---- Pagination ---- */
.c6-pagination {
	display: flex;
	align-items: center;
	gap: 4px;
}

.c6-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #374151;
	font-size: 0.875rem;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s;
}

.c6-page-btn:hover:not([disabled]) {
	background: #f9fafb;
	border-color: #d1d5db;
}

.c6-page-btn[disabled] {
	opacity: 0.35;
	cursor: default;
}

.c6-page-info {
	font-size: 0.875rem;
	color: #6b7280;
	padding: 0 8px;
	font-variant-numeric: tabular-nums;
}
