/* ==========================================================================
   Summertoon / Mauve Series Search & Filter Styles (Manga Archive)
   ========================================================================== */

/* Ana sayfa ile birebir aynı genişlik ve yan boşluklar */
body.mauve-archive-page,
body.post-type-archive-wp-manga {
	overflow-x: clip !important;
}

body.mauve-archive-page .summertoon-content,
body.post-type-archive-wp-manga .summertoon-content,
#content.summertoon-content:has(.mauve-archive-wrapper) {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.wrapper.mauve-archive-wrapper,
body.mauve-archive-page .wrapper,
body.post-type-archive-wp-manga .wrapper {
	box-sizing: border-box !important;
	width: min(1240px, calc(100% - 32px)) !important;
	max-width: min(1240px, calc(100% - 32px)) !important;
	margin-inline: auto !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 24px 0 56px !important;
}

@media (max-width: 880px) {
	.wrapper.mauve-archive-wrapper,
	body.mauve-archive-page .wrapper,
	body.post-type-archive-wp-manga .wrapper {
		width: calc(100% - 24px) !important;
		max-width: calc(100% - 24px) !important;
		padding: 16px 0 40px !important;
	}
}

.postbody.mauve-archive-body {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.bixbox.seriesearch {
	position: relative;
	margin-bottom: 24px;
	padding: 20px 22px;
	border-radius: 14px;
	background: #170d2b;
	border: 1px solid rgba(175, 103, 255, .15);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

.bixbox.seriesearch .releases {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(175, 103, 255, .12);
}

.bixbox.seriesearch .releases h1,
.bixbox.seriesearch .releases h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: #fff;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.quickfilter {
	position: relative;
}

.quickfilter .filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	position: relative;
}

.quickfilter .filters .filter {
	position: relative;
	flex: 1 1 180px;
	min-width: 140px;
}

.quickfilter .filters .filter.submit {
	flex: 0 0 auto;
	min-width: 120px;
}

.quickfilter .filters .filter button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 10px 14px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #e5daf7;
	background: #20133a;
	border: 1px solid rgba(175, 103, 255, .22);
	border-radius: 10px;
	cursor: pointer;
	transition: all .2s ease;
	outline: none;
	text-align: left;
	user-select: none;
}

.quickfilter .filters .filter button:hover,
.quickfilter .filters .filter.open button {
	background: #2b1850;
	border-color: rgba(175, 103, 255, .5);
	color: #fff;
	box-shadow: 0 4px 14px rgba(91, 12, 236, .25);
}

.quickfilter .filters .filter button span {
	color: #af67ff;
	font-weight: 700;
	margin-left: 6px;
	margin-right: auto;
}

.quickfilter .filters .filter button i {
	font-size: 12px;
	color: rgba(255, 255, 255, .6);
	transition: transform .2s ease;
}

.quickfilter .filters .filter.open button i {
	transform: rotate(180deg);
	color: #af67ff;
}

/* Dropdown Menus */
.quickfilter .filters .filter ul.st-dropdown-menu, ul.dropdown-menu {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 1000 !important;
	min-width: 220px;
	max-height: 280px;
	overflow-y: auto;
	padding: 10px;
	margin: 0;
	list-style: none;
	background: #1d1033;
	border: 1px solid rgba(175, 103, 255, .3);
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .7), 0 0 20px rgba(91, 12, 236, .25);
}

.quickfilter .filters .filter.open ul.st-dropdown-menu, ul.dropdown-menu {
	display: block !important;
}

/* Scrollbar */
.quickfilter .filters .filter ul::-webkit-scrollbar {
	width: 6px;
}
.quickfilter .filters .filter ul::-webkit-scrollbar-thumb {
	background: rgba(175, 103, 255, .4);
	border-radius: 6px;
}
.quickfilter .filters .filter ul::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, .2);
}

/* Genre Dropdown Grid (wider) */
.quickfilter .filters .filter ul.genrez {
	width: min(600px, 92vw);
	display: none;
	flex-wrap: wrap;
	gap: 6px;
}
.quickfilter .filters .filter.open ul.genrez {
	display: flex !important;
}

.quickfilter .filters .filter ul.genrez li {
	flex: 0 0 calc(33.333% - 4px);
	min-width: 140px;
}

@media (max-width: 680px) {
	.quickfilter .filters .filter ul.genrez li {
		flex: 0 0 calc(50% - 3px);
	}
}

.quickfilter .filters .filter ul li {
	margin: 0;
	padding: 0;
}

.quickfilter .filters .filter ul li input {
	display: none;
}

.quickfilter .filters .filter ul li label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	font-size: 12.5px;
	color: #d8cde9;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
	user-select: none;
}

.quickfilter .filters .filter ul li label:hover {
	background: rgba(175, 103, 255, .15);
	color: #fff;
}

.quickfilter .filters .filter ul li label::before {
	content: "\f0c8";
	font-family: "Font Awesome 5 Free";
	font-weight: 400;
	font-size: 13px;
	color: rgba(175, 103, 255, .4);
	line-height: 1;
}

.quickfilter .filters .filter ul.c1 li label::before {
	content: "\f111";
	font-family: "Font Awesome 5 Free";
	font-weight: 400;
	border-radius: 50%;
}

.quickfilter .filters .filter ul li input:checked + label,
.quickfilter .filters .filter ul li input.include:checked + label {
	background: rgba(91, 12, 236, .35);
	color: #fff;
	font-weight: 700;
}

.quickfilter .filters .filter ul li input:checked + label::before,
.quickfilter .filters .filter ul li input.include:checked + label::before {
	content: "\f14a";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	color: #5ee0a0;
}

.quickfilter .filters .filter ul.c1 li input:checked + label::before {
	content: "\f192";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	color: #af67ff;
}

/* Submit button */
.quickfilter .filters .filter.submit button {
	justify-content: center;
	gap: 8px;
	background: linear-gradient(135deg, #5b0cec 0%, #3a1a9e 100%) !important;
	color: #fff !important;
	border-color: rgba(175, 103, 255, .5) !important;
	box-shadow: 0 4px 14px rgba(91, 12, 236, .4) !important;
	text-transform: uppercase;
	letter-spacing: .5px;
	font-weight: 700;
}

.quickfilter .filters .filter.submit button:hover {
	filter: brightness(1.15);
	box-shadow: 0 6px 18px rgba(91, 12, 236, .6) !important;
}

/* Manga Archive Card Grid */
.mauve-archive-page .listupd,
body.post-type-archive-wp-manga .listupd,
.postbody .listupd {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
	margin-bottom: 30px;
	padding: 0;
	overflow: visible;
}

@media (max-width: 600px) {
	.mauve-archive-page .listupd,
	body.post-type-archive-wp-manga .listupd,
	.postbody .listupd {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
	}
}

@media (max-width: 440px) {
	.mauve-archive-page .listupd,
	body.post-type-archive-wp-manga .listupd,
	.postbody .listupd {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
}

.listupd .bs {
	float: none;
	width: 100% !important;
	margin: 0;
}

.listupd .bs .bsx {
	position: relative;
	margin: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	background: #150c26;
	border: 1px solid rgba(175, 103, 255, .16);
	overflow: hidden;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.listupd .bs:hover .bsx {
	transform: translateY(-4px);
	border-color: rgba(175, 103, 255, .45);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 16px rgba(91, 12, 236, .35);
}

.listupd .bs .bsx > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
}

.listupd .bs .bsx .limit {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: #10061a;
	overflow: hidden;
	padding: 0;
}

.listupd .bs .bsx .limit img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	transition: transform .25s ease;
}

.listupd .bs:hover .bsx .limit img {
	transform: scale(1.04);
}

.listupd .bs .bsx .limit .stsm-badge {
	position: absolute;
	left: 8px;
	top: 8px;
	bottom: auto !important;
	right: auto !important;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	font-size: 10px;
	padding: 3px 8px;
	z-index: 5;
}

.listupd .bs .bsx .bigor {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1 1 auto;
	padding: 10px 11px 12px;
	min-height: 60px;
}

.listupd .bs .bsx .bigor .tt {
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 6px;
	transition: color .15s ease;
}

.listupd .bs:hover .bsx .bigor .tt {
	color: #af67ff;
}

.listupd .bs .bsx .bigor .adds {
	margin-top: auto;
}

.listupd .bs .bsx .bigor .adds .epxs {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: var(--st-purple-soft, #af67ff);
	background: rgba(175, 103, 255, .12);
	padding: 2px 7px;
	border-radius: 6px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Summertoon Pagination */
.mauve-archive-page .pagination,
.bixbox .pagination,
.postbody .pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 28px 0 16px;
	padding: 0;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 9px;
	background: #1b1031;
	border: 1px solid rgba(175, 103, 255, .18);
	color: #ddd0f3;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: all .2s ease;
}

.pagination .page-numbers:hover {
	background: #2b1850;
	border-color: rgba(175, 103, 255, .5);
	color: #fff;
}

.pagination .page-numbers.current {
	background: linear-gradient(135deg, #5b0cec 0%, #3a1a9e 100%) !important;
	border-color: rgba(175, 103, 255, .55) !important;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(91, 12, 236, .45);
}

.pagination .page-numbers.dots {
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, .4);
}
