/* =============================================
   Çözüm PDF Eklentisi — Frontend CSS
   ============================================= */

.cozum-cozum-wrap {
	max-width: 860px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

/* Breadcrumb */
.cozum-breadcrumb {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 16px;
	display: flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
}
.cozum-breadcrumb a { color: #2563eb; text-decoration: none; }
.cozum-breadcrumb a:hover { text-decoration: underline; }

/* Başlık */
.cozum-sayfa-baslik {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 20px;
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}
.cozum-sayfa-baslik small { font-size: 13px; color: #6b7280; font-weight: 400; }

/* Görsel */
.cozum-gorsel-wrap {
	text-align: center;
	margin-bottom: 24px;
}
.cozum-cozum-img {
	max-width: 100%;
	height: auto;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.cozum-indir-link { margin-top: 8px; font-size: 14px; }
.cozum-indir-link a { color: #2563eb; font-weight: 700; text-decoration: none; }
.cozum-indir-link a:hover { text-decoration: underline; }

/* Navigasyon */
.cozum-navigasyon {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
}
.cozum-nav-btn {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 6px;
	background: #2563eb;
	color: #fff !important;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: background .2s;
}
.cozum-nav-btn:hover { background: #1d4ed8; }
.cozum-nav-btn.disabled { background: #d1d5db; color: #9ca3af !important; cursor: default; }
.cozum-nav-current { font-size: 14px; color: #374151; }

/* Sayfa atlama */
.cozum-sayfa-atla-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 12px;
	margin-bottom: 20px;
	padding: 12px 16px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}
.cozum-sayfa-atla-label {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	margin: 0;
}
.cozum-sayfa-atla {
	min-width: 140px;
	max-width: 220px;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #1f2937;
	cursor: pointer;
}
.cozum-sayfa-atla:focus {
	outline: 2px solid #2563eb;
	outline-offset: 1px;
	border-color: #2563eb;
}
.cozum-sayfa-atla-bilgi {
	font-size: 13px;
	color: #6b7280;
	white-space: nowrap;
}
.cozum-nav-orta { flex: 1; display: flex; justify-content: center; min-width: 0; }
.cozum-sayfa-atla-alt { min-width: 120px; max-width: 180px; }

/* Shortcode kitap listesi (eski düz liste — geriye dönük) */
.cozum-kitap-kart {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}
.cozum-kitap-baslik h3 { margin: 0 0 4px; font-size: 16px; }
.cozum-meta { font-size: 13px; color: #6b7280; }
.cozum-sayfa-secici { display: flex; align-items: center; gap: 10px; }
.cozum-sayfa-secici select { padding: 6px 10px; border-radius: 6px; border: 1px solid #d1d5db; }
.cozum-git-btn {
	display: inline-block;
	padding: 7px 16px;
	background: #2563eb;
	color: #fff !important;
	border-radius: 6px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}
.cozum-git-btn:hover { background: #1d4ed8; }

.cozum-grup-aciklama { color: #6b7280; margin-bottom: 16px; }
.cozum-grup-liste {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}
.cozum-grup-sayfa-link {
	display: inline-block;
	padding: 10px 16px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	color: #1f2937 !important;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}
.cozum-grup-sayfa-link:hover { background: #2563eb; color: #fff !important; border-color: #2563eb; }
.cozum-grup-ilk { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; }

/* Kitap sayfa listesi */
.cozum-kitap-wrap { max-width: 1000px; }
.cozum-kitap-aciklama {
	color: #6b7280;
	margin: 0 0 16px;
	font-size: 15px;
}
.cozum-kitap-aciklama strong { color: #374151; }
.cozum-kitap-atla-bar { margin-bottom: 16px; }
.cozum-kitap-sayfa-scroll {
	max-height: none;
	overflow: visible;
}
.cozum-kitap-sayfa-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 14px;
}
.cozum-kitap-sayfa-kart {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 8px;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cozum-kitap-sayfa-kart:hover {
	border-color: #2563eb;
	box-shadow: 0 4px 14px rgba(37, 99, 235, .15);
	transform: translateY(-2px);
}
.cozum-kitap-sayfa-onizleme {
	background: #f9fafb;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cozum-kitap-sayfa-onizleme img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.cozum-kitap-sayfa-etiket {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #1f2937;
	text-align: center;
}

/* Katalog — sınıf rafları */
.cozum-katalog-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 16px 64px;
	font-family: inherit;
}
.cozum-katalog-ust { text-align: center; margin-bottom: 28px; }
.cozum-katalog-baslik {
	font-size: 32px;
	font-weight: 700;
	color: #1f3a8a;
	margin: 0 0 10px;
}
.cozum-katalog-aciklama {
	margin: 0;
	color: #6b7280;
	font-size: 15px;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}
.cozum-katalog-bos {
	text-align: center;
	color: #6b7280;
	font-style: italic;
	padding: 40px 16px;
}
.cozum-katalog-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 36px;
}
.cozum-katalog-menu-link {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 999px;
	background: #eff6ff;
	color: #1d4ed8 !important;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid #bfdbfe;
	transition: background .2s, color .2s;
}
.cozum-katalog-menu-link:hover {
	background: #2563eb;
	color: #fff !important;
	border-color: #2563eb;
}
.cozum-sinif-bolum { margin-bottom: 48px; }
.cozum-sinif-baslik {
	font-size: 26px;
	font-weight: 700;
	color: #1f3a8a;
	text-align: center;
	margin: 0 0 20px;
}
.cozum-raf {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
	max-width: 1000px;
	margin: 0 auto;
}
.cozum-raf-kitap {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cozum-raf-kitap:hover {
	border-color: #2563eb;
	box-shadow: 0 6px 18px rgba(37, 99, 235, .14);
	transform: translateY(-3px);
}
.cozum-raf-onizleme {
	background: #f9fafb;
	border: 1px solid #f3f4f6;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cozum-raf-onizleme img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .2s ease;
}
.cozum-raf-kitap:hover .cozum-raf-onizleme img {
	transform: scale(1.03);
}
.cozum-raf-placeholder {
	font-size: 52px;
	line-height: 1;
	opacity: .35;
}
.cozum-raf-baslik {
	display: block;
	margin-top: 10px;
	min-height: 40px;
	font-size: 13px;
	font-weight: 700;
	color: #1f2937;
	text-align: center;
	line-height: 1.35;
}
.cozum-raf-ders {
	display: block;
	margin-top: 4px;
	min-height: 16px;
	font-size: 12px;
	color: #6b7280;
	text-align: center;
}

@media (max-width: 600px) {
	.cozum-kitap-kart { flex-direction: column; }
	.cozum-navigasyon { flex-direction: column; align-items: stretch; text-align: center; }
	.cozum-nav-orta { width: 100%; }
	.cozum-sayfa-atla, .cozum-sayfa-atla-alt { width: 100%; max-width: none; }
	.cozum-sayfa-atla-bar { flex-direction: column; }
	.cozum-katalog-baslik { font-size: 24px; }
	.cozum-sinif-baslik { font-size: 20px; }
	.cozum-raf { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
}
