/* ============================================
   CONCEPT 0: STUDIO
   Sidebar filters · Grouped list · Card grid
   ============================================ */

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

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

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

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

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

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

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

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

/* ---- Hero ---- */
@keyframes c0HeroFadeIn {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

.c0-hero {
	background-image: var(--hero-img);
	background-size: cover;
	background-position: center;
	padding: calc(4.5rem + 56px) 2rem 4.5rem;
	text-align: center;
	color: #fff;
	position: relative;
}

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

.c0-hero-content {
	position: relative;
	z-index: 2;
	max-width: 550px;
	margin: 0 auto;
	background: rgba(30, 64, 175, 0.1875);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	filter: saturate(0.75) brightness(1.3);
	border-radius: 20px;
	padding: 3rem 3.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.c0-hero-content * {
	text-shadow: 0px 0px 30px rgb(0 0 0 / 50%);
}

.c0-hero-content .c0-hero-btn {
	text-shadow: none;
}

.c0-hero-eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #60a5fa;
	margin-bottom: 1rem;
	animation: c0HeroFadeIn 0.6s ease 0.1s both;
}

.c0-hero-title {
	font-size: 2.75rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 0.75rem;
	line-height: 1.1;
	animation: c0HeroFadeIn 0.6s ease 0.2s both;
}

.c0-hero-sub {
	font-size: 1.1rem;
	font-weight: 300;
	opacity: 0.7;
	margin-bottom: 2rem;
	animation: c0HeroFadeIn 0.6s ease 0.3s both;
}

.c0-hero-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
	animation: c0HeroFadeIn 0.6s ease 0.4s both;
}

.c0-hero-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0.7rem 1.5rem;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	transition: all 0.2s;
	cursor: pointer;
	border: none;
}

.c0-btn-primary {
	background: #3b82f6;
	color: #fff;
}

.c0-btn-primary:hover {
	background: #2563eb;
	color: #fff;
	transform: translateY(-1px);
}

.c0-btn-ghost {
	background: transparent;
	color: rgba(255,255,255,0.8);
	border: 1px solid rgba(255,255,255,0.25);
	padding: 0.7rem 1.5rem;
}

.c0-btn-ghost:hover {
	border-color: rgba(255,255,255,0.5);
	color: #fff;
	transform: translateY(-1px);
}

/* ---- Layout ---- */
.c0-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
	padding: 72px 0;
	max-width: 1200px;
	margin: 0 auto;
	align-items: start;
}

@media (max-width: 991.98px) {
	.c0-layout {
		grid-template-columns: 1fr;
	}

	.c0-sidebar {
		position: static !important;
		max-height: none !important;
		overflow-y: visible !important;
		border-right: none !important;
		border-bottom: 1px solid #e8ecf1;
	}
}

/* ---- Sidebar Panel ---- */
.c0-sidebar {
	position: sticky;
	top: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	overflow-x: hidden;
	background: #fff;
	border: 1px solid #e8ecf1;
	border-radius: 10px;
	padding: 0;
	color: #475569;
	scrollbar-width: thin;
	scrollbar-color: #e2e8f0 transparent;
}

.c0-sidebar::-webkit-scrollbar {
	width: 4px;
}

.c0-sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.c0-sidebar::-webkit-scrollbar-thumb {
	background: #e2e8f0;
	border-radius: 2px;
}

.c0-sidebar::-webkit-scrollbar-thumb:hover {
	background: #cbd5e1;
}

.c0-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px 14px;
	border-bottom: 1px solid #e8ecf1;
}

.c0-sidebar-header-label {
	font-size: 1.15rem;
	font-weight: 600;
	color: #0f172a;
	letter-spacing: -0.01em;
}

.c0-sidebar-reset-btn {
	font-size: 0.8rem;
	font-weight: 500;
	color: #f87171;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: color 0.15s;
}

.c0-sidebar-reset-btn:hover {
	color: #ef4444;
}

/* ---- Sidebar Sections (Collapsible) ---- */
.c0-section {
	border-top: 1px solid #e8ecf1;
}

.c0-section:first-of-type {
	border-top: none;
}

.c0-section-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: none;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #94a3b8;
	padding: 14px 20px;
	cursor: pointer;
	transition: color 0.15s;
}

.c0-section-toggle:hover {
	color: #0f172a;
}

.c0-section-toggle .chevron {
	width: 12px;
	height: 12px;
	transition: transform 0.25s ease;
}

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

.c0-section-body {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 0.3s ease;
}

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

.c0-section-inner {
	overflow: hidden;
	padding: 0 20px 14px;
	transition: padding 0.3s ease;
}

.c0-section.collapsed .c0-section-inner {
	padding-top: 0;
	padding-bottom: 0;
}

/* ---- Filter Options (Custom Checkboxes) ---- */
.c0-filter-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
	cursor: pointer;
	font-size: 0.9375rem;
	color: #475569;
	transition: color 0.15s;
}

.c0-filter-option:hover {
	color: #0f172a;
}

.c0-filter-option input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	margin: 0;
	transition: all 0.15s;
}

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

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

.c0-filter-option .count {
	margin-left: auto;
	font-size: 0.75rem;
	color: #94a3b8;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

/* ---- Year Range Slider ---- */
.c0-year-range {
	padding: 0.25rem 0;
}

.c0-year-range-labels {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
}

.c0-year-range-val {
	font-weight: 600;
	color: #0f172a;
	font-variant-numeric: tabular-nums;
}

.c0-year-range-span {
	font-size: 0.75rem;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

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

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

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

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

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

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

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

/* ---- Main Content Area ---- */
.c0-main {
	padding: 0;
}

/* ---- Toolbar ---- */
.c0-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 0;
}

.c0-status-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 1.5rem 0;
	flex-wrap: wrap;
}

.c0-count {
	font-size: 0.9375rem;
	font-weight: 500;
	color: #64748b;
	white-space: nowrap;
}

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

.c0-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 20px;
	background: #eef2ff;
	color: #3b82f6;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s;
	border: none;
}

.c0-chip:hover {
	background: #dbeafe;
}

.c0-chip .remove {
	line-height: 1;
	opacity: 0.6;
}

.c0-chip .remove:hover {
	opacity: 1;
}

.c0-group-by {
	position: relative;
}

.c0-group-by-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	width: 16px;
	height: 16px;
	pointer-events: none;
	z-index: 1;
}

.c0-group-by select {
	height: 42px;
	padding: 0 34px 0 38px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8f9fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") no-repeat right 12px center;
	appearance: none;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #334155;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.c0-group-by select:hover {
	border-color: #cbd5e1;
}

.c0-group-by select:focus {
	outline: none;
	border-color: #93b4f8;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}

.c0-view-toggle {
	display: flex;
	gap: 2px;
	height: 42px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 4px;
	margin-left: 0;
}

.c0-vbtn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	background: transparent;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	color: #94a3b8; /* less opaque */
	transition: all 0.15s;
}

.c0-vbtn:hover {
	color: #64748b;
}

.c0-vbtn.active {
	background: transparent;
	color: #0f172a; /* full opacity/darker */
	box-shadow: none;
}

/* ---- Search Field ---- */
.c0-search {
	position: relative;
	flex: 1;
	min-width: 180px;
}

.c0-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	width: 16px;
	height: 16px;
	pointer-events: none;
}

.c0-search input {
	width: 100%;
	height: 42px;
	padding: 0 18px 0 44px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8f9fb;
	color: #1e293b;
	font-size: 1rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

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

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

/* ---- Email List View ---- */
.c0-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.c0-division-group {
	background: #fff;
	border: 1px solid #e8ecf1;
	border-radius: 12px;
	overflow: hidden;
}

.c0-email-list-card {
	border: none;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	overflow: visible;
}

.c0-division-header {
	font-size: 1.05rem;
	font-weight: 700;
	color: #0f172a;
	padding: 14px 16px 10px;
	border-bottom: 1px solid #f1f5f9;
	letter-spacing: -0.01em;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	user-select: none;
	transition: color 0.15s;
}

.c0-division-header:hover {
	color: #3b82f6;
}

.c0-division-header .c0-group-chevron {
	width: 14px;
	height: 14px;
	color: #94a3b8;
	transition: transform 0.25s ease;
	flex-shrink: 0;
}

.c0-division-group.collapsed .c0-division-header .c0-group-chevron {
	transform: rotate(-90deg);
}

.c0-division-group .c0-group-items {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 0.3s ease;
}

.c0-division-group.collapsed .c0-group-items {
	grid-template-rows: 0fr;
}

.c0-division-group .c0-group-items-inner {
	overflow: hidden;
}

.c0-group-header {
	font-size: 0.7rem;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 12px 16px 4px;
	margin: 0;
	background: transparent;
}

.c0-email-item {
	display: grid;
	grid-template-columns: 1fr 150px 55px;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.1s;
}

.c0-email-item:hover {
	background: #f8fafc;
}

.c0-item-name {
	min-width: 0;
}

.c0-item-name a {
	font-size: 1rem;
	font-weight: 500;
	color: #0f172a;
}

.c0-item-name a:hover {
	color: #3b82f6;
}

.c0-item-name .c0-lang-tag {
	font-size: 0.625rem;
	font-weight: 600;
	color: #64748b;
	background: #f1f5f9;
	padding: 1px 5px;
	border-radius: 3px;
	margin-left: 6px;
	vertical-align: middle;
}

.c0-item-type {
	font-size: 1rem;
	color: #64748b;
}

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

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

/* ---- Variants ---- */
.c0-variants-toggle {
	font-size: 0.8rem;
	font-weight: 500;
	color: #94a3b8;
	cursor: pointer;
	margin-left: 4px;
	white-space: nowrap;
	transition: color 0.15s;
}

.c0-variants-toggle:hover {
	color: #3b82f6;
}

.c0-variant-item {
	padding-left: 36px !important;
}

.c0-variant-item .c0-item-name a {
	color: #64748b;
	font-weight: 400;
}

.c0-variant-item .c0-item-name a:hover {
	color: #3b82f6;
}

/* ---- Card View ---- */
@keyframes c0CardIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.c0-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.c0-card {
	background: #fff;
	border: 1px solid #e8ecf1;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: transform 0.2s, box-shadow 0.2s;
	animation: c0CardIn 0.35s ease both;
}

.c0-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.06);
	color: inherit;
}

.c0-card-thumb-wrap {
	overflow: hidden;
	background: linear-gradient(135deg, #f0f4ff, #e8ecf5);
}

.c0-card-thumb {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.4s ease;
}

.c0-card:hover .c0-card-thumb {
	transform: scale(1.04);
}

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

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

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

.c0-badge {
	font-size: 1rem;
	color: #64748b;
}

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

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

.c0-card-division-header {
	grid-column: 1 / -1;
	font-size: 1.1rem;
	font-weight: 700;
	color: #0f172a;
	padding: 16px 0 8px;
	border-bottom: 2px solid #e2e8f0;
	margin-top: 0.75rem;
	letter-spacing: -0.01em;
}

.c0-card-division-header:first-child {
	margin-top: 0;
}

.c0-card-group-header {
	grid-column: 1 / -1;
	font-size: 0.7rem;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 12px 0 4px;
}

/* ---- Empty State ---- */
.c0-empty-state {
	text-align: center;
	padding: 4rem 2rem;
	color: #94a3b8;
}

.c0-empty-state h4 {
	font-size: 1.1rem;
	font-weight: 500;
	color: #64748b;
	margin-bottom: 0.5rem;
}

.c0-empty-state p {
	margin-bottom: 1.25rem;
}

.c0-empty-state-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0.5rem 1.25rem;
	border-radius: 8px;
	font-weight: 500;
	background: #f8f9fb;
	color: #64748b;
	border: 1px solid #e2e8f0;
	cursor: pointer;
	transition: all 0.15s;
}

.c0-empty-state-btn:hover {
	border-color: #3b82f6;
	color: #3b82f6;
}

/* ---- Sortable list header (ungrouped) ---- */
.c0-list-header {
	display: grid;
	grid-template-columns: 1fr 150px 55px;
	align-items: center;
	gap: 16px;
	padding: 10px 20px;
	background: #f8f9fb;
	border: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	border-radius: 14px 14px 0 0;
}

.c0-list.c0-flat {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-top: none;
	border-radius: 0 0 14px 14px;
	overflow: hidden;
	gap: 0;
}

.c0-list.c0-flat .c0-email-item {
	gap: 16px;
	padding: 14px 20px;
	border-bottom: 1px solid #f0f2f5;
}

.c0-list.c0-flat .c0-email-item:last-child {
	border-bottom: none;
}

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

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

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

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

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

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

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

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