/* Atolyeman Kılavuzlar (product manuals / installation guides) — archive +
   single. Loads only on the kilavuz archive/single (see inc/manuals.php). All
   color/spacing/type from tokens.css so the guides morph per audience segment
   like the rest of the storefront. */

/* ==========================================================================
   Archive — /kilavuzlar/
   ========================================================================== */
.at-manuals { display: block; padding-block: clamp(2rem, 5vw, var(--at-space-16)); }

.at-manuals__head {
	max-width: 60ch;
	margin-bottom: var(--at-space-12);
}
.at-manuals__eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: var(--at-fs-100);
	font-weight: 600;
	color: var(--at-accent);
	margin-bottom: var(--at-space-3);
}
.at-manuals__title {
	font-family: var(--at-font-display);
	font-size: var(--at-fs-700);
	line-height: var(--at-lh-tight);
	letter-spacing: -.02em;
	margin: 0 0 var(--at-space-4);
	color: var(--at-text);
}
.at-manuals__blurb {
	font-size: var(--at-fs-400);
	line-height: var(--at-lh-body);
	color: var(--at-text-muted);
	margin: 0;
}

/* ---- Card grid ---- */
.at-manuals__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--at-space-6);
}

.at-manual-card {
	display: flex;
	flex-direction: column;
	background: var(--at-surface);
	border: 1px solid var(--at-border);
	border-radius: var(--at-radius);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}
.at-manual-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--at-shadow);
}
.at-manual-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	background: var(--at-surface-2);
	overflow: hidden;
}
.at-manual-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.at-manual-card__placeholder {
	color: var(--at-text-muted);
	opacity: .6;
	display: inline-flex;
}
.at-manual-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--at-space-2);
	padding: var(--at-space-6);
	flex: 1 1 auto;
}
.at-manual-card__title {
	font-family: var(--at-font-display);
	font-size: var(--at-fs-400);
	line-height: 1.25;
	margin: 0;
}
.at-manual-card__title a {
	color: var(--at-text);
	text-decoration: none;
}
.at-manual-card__title a:hover,
.at-manual-card__title a:focus-visible {
	color: var(--at-accent);
}
.at-manual-card__excerpt {
	color: var(--at-text-muted);
	font-size: var(--at-fs-200);
	line-height: var(--at-lh-body);
	margin: 0;
}
.at-manual-card__more {
	margin-top: auto;
	padding-top: var(--at-space-2);
	color: var(--at-accent);
	font-size: var(--at-fs-200);
	font-weight: 600;
}

/* ---- Empty state ---- */
.at-manuals__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--at-space-4);
	max-width: 480px;
	margin: var(--at-space-8) auto;
	padding: var(--at-space-16) var(--at-space-8);
	text-align: center;
	background: var(--at-surface);
	border: 1px solid var(--at-border);
	border-radius: var(--at-radius);
}
.at-manuals__empty-icon {
	color: var(--at-text-muted);
	opacity: .6;
	display: inline-flex;
}
.at-manuals__empty-text {
	color: var(--at-text-muted);
	font-size: var(--at-fs-300);
	margin: 0;
}

/* ---- Pagination ---- */
.at-manuals__pagination {
	margin-top: var(--at-space-12);
}
.at-manuals__pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--at-space-2);
}
.at-manuals__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 var(--at-space-3);
	border: 1px solid var(--at-border);
	border-radius: var(--at-radius-sm);
	background: var(--at-surface);
	color: var(--at-text);
	font-size: var(--at-fs-200);
	font-weight: 600;
	text-decoration: none;
	transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.at-manuals__pagination a.page-numbers:hover,
.at-manuals__pagination a.page-numbers:focus-visible {
	color: var(--at-accent);
	border-color: var(--at-accent);
}
.at-manuals__pagination .page-numbers.current {
	background: var(--at-accent);
	border-color: var(--at-accent);
	color: var(--at-on-accent);
}

/* ==========================================================================
   Single — /kilavuzlar/<slug>/
   ========================================================================== */
.at-manual { display: block; padding-block: clamp(1.5rem, 4vw, var(--at-space-12)); }

.at-manual__inner {
	/* Readable measure for long-form prose (~72ch). Title + hero image are given
	   a touch more room to breathe than the body copy. */
	max-width: 820px;
	margin-inline: auto;
}

.at-manual__back {
	display: inline-flex;
	align-items: center;
	gap: var(--at-space-1);
	color: var(--at-text-muted);
	font-size: var(--at-fs-200);
	font-weight: 600;
	text-decoration: none;
	transition: color .15s ease;
}
.at-manual__back:hover,
.at-manual__back:focus-visible {
	color: var(--at-accent);
}

.at-manual__header {
	margin: var(--at-space-6) 0 var(--at-space-8);
}
.at-manual__title {
	font-family: var(--at-font-display);
	font-size: var(--at-fs-700);
	line-height: var(--at-lh-tight);
	letter-spacing: -.02em;
	margin: 0;
	color: var(--at-text);
}

.at-manual__media {
	margin: 0 0 var(--at-space-12);
	border-radius: var(--at-radius-lg);
	overflow: hidden;
	border: 1px solid var(--at-border);
	background: var(--at-surface-2);
}
.at-manual__img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---- Long-form content ---- */
.at-manual__content {
	max-width: 72ch;
	color: var(--at-text);
	font-family: var(--at-font-sans);
	font-size: var(--at-fs-300);
	line-height: var(--at-lh-body);
}
.at-manual__content > *:first-child { margin-top: 0; }
.at-manual__content > *:last-child { margin-bottom: 0; }

.at-manual__content p {
	margin: 0 0 var(--at-space-6);
}
.at-manual__content h2,
.at-manual__content h3,
.at-manual__content h4 {
	font-family: var(--at-font-display);
	line-height: var(--at-lh-tight);
	color: var(--at-text);
	margin: var(--at-space-12) 0 var(--at-space-4);
}
.at-manual__content h2 { font-size: var(--at-fs-600); }
.at-manual__content h3 { font-size: var(--at-fs-500); }
.at-manual__content h4 { font-size: var(--at-fs-400); }

.at-manual__content a {
	color: var(--at-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.at-manual__content a:hover,
.at-manual__content a:focus-visible {
	color: var(--at-accent-hover);
}

.at-manual__content ul,
.at-manual__content ol {
	margin: 0 0 var(--at-space-6);
	padding-left: var(--at-space-8);
}
.at-manual__content li {
	margin-bottom: var(--at-space-3);
	padding-left: var(--at-space-2);
}
.at-manual__content li::marker {
	color: var(--at-accent);
	font-weight: 700;
}
.at-manual__content li > ul,
.at-manual__content li > ol {
	margin-top: var(--at-space-3);
	margin-bottom: 0;
}

.at-manual__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--at-radius);
	display: block;
}
.at-manual__content figure {
	margin: var(--at-space-8) 0;
}
.at-manual__content figcaption {
	margin-top: var(--at-space-2);
	color: var(--at-text-muted);
	font-size: var(--at-fs-100);
	text-align: center;
}

.at-manual__content blockquote {
	margin: var(--at-space-8) 0;
	padding: var(--at-space-2) 0 var(--at-space-2) var(--at-space-6);
	border-left: 3px solid var(--at-accent);
	color: var(--at-text-muted);
	font-size: var(--at-fs-400);
}
.at-manual__content blockquote p:last-child { margin-bottom: 0; }

.at-manual__content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9em;
	background: var(--at-surface-2);
	border: 1px solid var(--at-border);
	border-radius: var(--at-radius-sm);
	padding: .1em .35em;
}

.at-manual__content hr {
	border: 0;
	border-top: 1px solid var(--at-border);
	margin: var(--at-space-12) 0;
}

.at-manual__foot {
	margin-top: var(--at-space-16);
	padding-top: var(--at-space-8);
	border-top: 1px solid var(--at-border);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.at-manuals__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.at-manuals__grid { grid-template-columns: 1fr; }
	.at-manuals__title,
	.at-manual__title { font-size: var(--at-fs-600); }
	.at-manual__content h2 { font-size: var(--at-fs-500); }
	.at-manual__content h3 { font-size: var(--at-fs-400); }
}
