:root {
	--dokuman-primary: #fcc908;
	--dokuman-primary-dark: #d4a800;
	--dokuman-muted: #a1a1aa;
	--dokuman-border: #2a2a2a;
	--dokuman-card-bg: #111111;
	--dokuman-radius: 0.3rem;
	--dokuman-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.dokuman-archive {
	margin: 24px 0 48px;
	font-family: inherit;
	color: #f5f5f5;
}

.dokuman-archive * {
	font-family: inherit;
	box-sizing: border-box;
}

.dokuman-year {
	margin-bottom: 28px;
}

.dokuman-year-head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
	padding: 12px 14px;
	background: #111;
	border: 1px solid var(--dokuman-border);
	border-radius: var(--dokuman-radius);
}

.dokuman-year-bar {
	width: 4px;
	height: 36px;
	background: linear-gradient(180deg, var(--dokuman-primary), var(--dokuman-primary-dark));
	border-radius: var(--dokuman-radius);
}

.dokuman-year-texts {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dokuman-year-label {
	margin: 0;
	color: var(--dokuman-muted);
	font-size: 12px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.dokuman-year-title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	color: #fff;
}

.dokuman-year-pill {
	background: rgba(252, 201, 8, 0.1);
	color: var(--dokuman-primary);
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
}

.dokuman-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.dokuman-card {
	background: var(--dokuman-card-bg);
	border: 1px solid var(--dokuman-border);
	border-radius: var(--dokuman-radius);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	transition: transform 120ms ease, box-shadow 120ms ease;
	cursor: pointer;
}

.dokuman-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--dokuman-shadow);
}

.dokuman-card-disabled {
	opacity: 0.85;
	cursor: not-allowed;
}

.dokuman-card-disabled .dokuman-open {
	background: #9ca3af;
	box-shadow: none;
}

.dokuman-cover {
	position: relative;
	padding-top: 68%;
	background: #1a1a1a;
	overflow: hidden;
}

.dokuman-cover::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #0f172a;
	filter: saturate(1.05);
	transform: scale(1.02);
	transition: transform 180ms ease;
}

.dokuman-card:hover .dokuman-cover::after {
	transform: scale(1.05);
}

.dokuman-cover.has-image::after {
	background-image: var(--dokuman-cover-url);
}

.dokuman-open {
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 2;
	background: linear-gradient(135deg, var(--dokuman-primary), var(--dokuman-primary-dark));
	color: #fff;
	padding: 8px 12px;
	border-radius: var(--dokuman-radius);
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 10px 20px rgba(25, 70, 141, 0.25);
	transition: transform 120ms ease, box-shadow 120ms ease;
}

.dokuman-card:hover .dokuman-open {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(25, 70, 141, 0.32);
}

.dokuman-meta {
	padding: 14px 14px 16px;
	border-top: 1px solid var(--dokuman-border);
}

.dokuman-card-title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}

.dokuman-card-year {
	margin: 0;
	color: var(--dokuman-muted);
	font-size: 13px;
}

.dokuman-card-warning {
	color: #b91c1c;
	font-weight: 600;
}

.dokuman-empty {
	padding: 18px;
	background: #111;
	border: 1px dashed var(--dokuman-border);
	border-radius: var(--dokuman-radius);
	color: var(--dokuman-muted);
	text-align: center;
}

.dokuman-modal {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.68);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 9999;
	backdrop-filter: blur(2px);
}

.dokuman-modal.is-open {
	display: flex;
}

body.dokuman-modal-open {
	overflow: hidden;
}

.dokuman-modal-inner {
	background: #0b1220;
	width: min(1200px, 96vw);
	min-height: 60vh;
	border-radius: var(--dokuman-radius);
	padding: 16px;
	position: relative;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.dokuman-close {
	position: absolute;
	top: 10px;
	right: 10px;
	border: none;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 120ms ease, transform 120ms ease;
}

.dokuman-close:hover {
	background: rgba(255, 255, 255, 0.24);
	transform: translateY(-1px);
}

.dokuman-viewer {
	height: var(--dokuman-viewer-height, 720px);
	min-height: 60vh;
	background: #0b1220;
	overflow: hidden;
	border-radius: var(--dokuman-radius);
}

.dokuman-fallback {
	display: none;
	height: 100%;
}

.dokuman-fallback.show {
	display: block;
}

.dokuman-fallback iframe {
	border: 0;
	width: 100%;
	height: 100%;
	background: #0b1220;
}

.dokuman-embed-block {
	margin: 16px 0;
}

.dokuman-fallback-inline {
	background: #0b1220;
	border-radius: var(--dokuman-radius);
	overflow: hidden;
}

.dokuman-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(25, 70, 141, 0.08);
	color: var(--dokuman-primary);
	border-radius: 999px;
	padding: 6px 12px;
	font-weight: 600;
	font-size: 12px;
}

@media (max-width: 768px) {
	.dokuman-archive {
		padding-left: 1em;
		padding-right: 1em;
	}

	.dokuman-grid {
		grid-template-columns: 1fr;
	}

	.dokuman-year-title {
		font-size: 20px;
	}

	.dokuman-modal {
		padding: 12px;
	}
}

