/**
 * Premium hub (kategori) + 404 — yuzde-hesaplama.com
 */

/* —— Layout reset (kategori + 404) —— */
body.yhz-page-kategori .nv-page-title-wrap,
body.yhz-page-kategori .nv-big-title,
body.yhz-404-body .nv-content-none-wrap > p,
body.yhz-404-body .nv-seach-form-wrap {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

body.yhz-page-kategori .single-page-container,
body.yhz-404-body .archive-container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

body.yhz-page-kategori .nv-single-page-wrap.col,
body.yhz-404-body .nv-index-posts.blog.col {
	max-width: none;
	padding: 0;
}

body.yhz-page-kategori .nv-content-wrap.entry-content,
body.yhz-404-main {
	padding: 0;
	max-width: none;
}

/* —— Shared hub tokens —— */
.yhz-hub,
.yhz-404 {
	--yhz-hub-radius: 16px;
	--yhz-hub-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
	color: #1e293b;
}

.yhz-hub--kategori,
.yhz-hub--rehber {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* —— Hero (kategori + 404) —— */
.yhz-hub-hero,
.yhz-404-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(2.5rem, 6vw, 4rem) 1.5rem clamp(2rem, 5vw, 3rem);
	text-align: center;
	color: #fff;
}

.yhz-hub-hero__bg,
.yhz-404-hero__bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 38%, #2563eb 68%, #3b82f6 100%);
	z-index: 0;
}

.yhz-hub-hero__bg::after,
.yhz-404-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.18), transparent),
		radial-gradient(circle at 10% 90%, rgba(96, 165, 250, 0.35), transparent 45%),
		radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.25), transparent 40%);
	pointer-events: none;
}

.yhz-hub-hero__inner,
.yhz-404-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin: 0 auto;
}

.yhz-hub-crumb {
	margin: 0 0 1rem;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.82);
}

.yhz-hub-crumb a {
	color: #bfdbfe;
	text-decoration: none;
}

.yhz-hub-crumb a:hover {
	color: #fff;
	text-decoration: underline;
}

.yhz-hub-crumb span[aria-hidden="true"] {
	margin: 0 0.4rem;
	opacity: 0.55;
}

.yhz-hub-hero__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #93c5fd;
}

.yhz-hub-hero__title,
.yhz-404-hero__title {
	margin: 0 0 0.75rem;
	font-family: "Nunito", system-ui, sans-serif;
	font-size: clamp(1.75rem, 5vw, 2.65rem);
	font-weight: 800;
	line-height: 1.12;
	color: #fff;
}

.yhz-hub-hero__lead,
.yhz-404-hero__lead {
	margin: 0 auto 1.35rem;
	max-width: 34rem;
	font-size: clamp(0.95rem, 2.2vw, 1.08rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
}

.yhz-hub-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 0.65rem;
	margin-bottom: 1.75rem;
	width: 100%;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
}

.yhz-hub-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1.35rem;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	white-space: nowrap;
	box-sizing: border-box;
	flex: 0 1 auto;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.yhz-hub-btn--primary {
	background: #fff;
	color: #1d4ed8 !important;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.yhz-hub-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.yhz-hub-btn--ghost {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #fff !important;
	backdrop-filter: blur(6px);
}

.yhz-hub-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.18);
}

.yhz-hub-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yhz-hub-stats li {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 7.5rem;
	padding: 0.75rem 1.1rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(8px);
}

.yhz-hub-stats strong {
	font-family: "Nunito", system-ui, sans-serif;
	font-size: 1.35rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
}

.yhz-hub-stats span {
	margin-top: 0.15rem;
	font-size: 0.72rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.75);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* —— Hub body —— */
.yhz-hub-body,
.yhz-404-body {
	max-width: 1100px;
	margin: 0 auto;
	padding: clamp(1.75rem, 4vw, 2.5rem) 1.25rem 3rem;
}

.yhz-hub-section {
	margin-bottom: 2.5rem;
}

.yhz-hub-section__head {
	margin-bottom: 1.35rem;
	text-align: center;
}

.yhz-hub-section__title {
	margin: 0 0 0.35rem;
	font-family: "Nunito", system-ui, sans-serif;
	font-size: clamp(1.25rem, 3vw, 1.55rem);
	font-weight: 800;
	color: #0f172a;
}

.yhz-hub-section__sub {
	margin: 0;
	font-size: 0.95rem;
	color: #64748b;
}

/* —— Category cards —— */
.yhz-hub-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.15rem;
}

.yhz-hub-card {
	position: relative;
	border-radius: var(--yhz-hub-radius);
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.yhz-hub-card:hover {
	border-color: #cbd5e1;
	box-shadow: var(--yhz-hub-shadow);
}

.yhz-hub-card__link {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 1.35rem 1.35rem 0.85rem;
	text-decoration: none !important;
	color: inherit;
}

.yhz-hub-card__bar {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: var(--yhz-hub-radius) var(--yhz-hub-radius) 0 0;
	background: var(--yhz-accent, #2563eb);
}

.yhz-hub-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 0.85rem;
	border-radius: 12px;
	background: color-mix(in srgb, var(--yhz-accent, #2563eb) 12%, #fff);
	color: var(--yhz-accent, #2563eb);
}

.yhz-hub-card__icon svg {
	width: 24px;
	height: 24px;
}

.yhz-hub-card__tag {
	display: inline-block;
	margin-bottom: 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--yhz-accent, #2563eb);
}

.yhz-hub-card__title {
	margin: 0 0 0.45rem;
	font-family: "Nunito", system-ui, sans-serif;
	font-size: 1.15rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.25;
}

.yhz-hub-card__desc {
	margin: 0 0 1rem;
	flex: 1;
	font-size: 0.88rem;
	line-height: 1.55;
	color: #64748b;
}

.yhz-hub-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding-top: 0.65rem;
	border-top: 1px solid #f1f5f9;
}

.yhz-hub-card__count {
	font-size: 0.8rem;
	font-weight: 700;
	color: #94a3b8;
}

.yhz-hub-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.82rem;
	font-weight: 800;
	color: var(--yhz-accent, #2563eb);
}

.yhz-hub-card__cta svg {
	width: 16px;
	height: 16px;
	transition: transform 0.15s ease;
}

.yhz-hub-card__link:hover .yhz-hub-card__cta svg {
	transform: translateX(3px);
}

.yhz-hub-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	padding: 0.65rem 1.35rem 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	background: #f8fafc;
	border-top: 1px solid #f1f5f9;
	border-radius: 0 0 var(--yhz-hub-radius) var(--yhz-hub-radius);
}

.yhz-hub-card__meta a {
	color: #475569 !important;
	text-decoration: none !important;
}

.yhz-hub-card__meta a:hover {
	color: var(--yhz-accent, #2563eb) !important;
}

.yhz-hub-card__meta span[aria-hidden="true"] {
	color: #cbd5e1;
}

/* —— Tool strip —— */
.yhz-hub-tools {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.yhz-hub-tool {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 1.15rem 1.25rem;
	border-radius: 14px;
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	border: 1px solid #e2e8f0;
	text-decoration: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.yhz-hub-tool:hover {
	border-color: #93c5fd;
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
	transform: translateY(-2px);
}

.yhz-hub-tool__label {
	font-family: "Nunito", system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 800;
	color: #1e293b;
}

.yhz-hub-tool__hint {
	font-size: 0.82rem;
	color: #64748b;
}

/* —— 404 —— */
.yhz-404-hero__code {
	display: block;
	margin: 0 0 0.5rem;
	font-family: "Nunito", system-ui, sans-serif;
	font-size: clamp(4rem, 14vw, 7rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.04em;
	background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.55) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: none;
}

.yhz-404-search {
	margin-bottom: 2rem;
	padding: 1.5rem 1.6rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--yhz-hub-radius);
	box-shadow: var(--yhz-hub-shadow);
}

.yhz-404-search__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	font-family: "Nunito", system-ui, sans-serif;
	font-size: 1.15rem;
	font-weight: 800;
	color: #0f172a;
}

.yhz-404-search__title svg {
	width: 22px;
	height: 22px;
	color: #2563eb;
}

.yhz-404-search-form__wrap {
	display: flex;
	max-width: 520px;
	margin: 0 auto;
	border: 2px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	background: #f8fafc;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.yhz-404-search-form__wrap:focus-within {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
	background: #fff;
}

.yhz-404-search-form input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 0.85rem 1rem;
	font-size: 1rem;
	background: transparent;
	outline: none;
	color: #1e293b;
}

.yhz-404-search-form button {
	border: 0;
	padding: 0 1.35rem;
	background: #2563eb;
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.15s ease;
}

.yhz-404-search-form button:hover {
	background: #1d4ed8;
}

.yhz-404-shortcuts {
	margin-bottom: 2rem;
}

.yhz-404-shortcuts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.85rem;
}

.yhz-404-shortcut {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	padding: 1rem 1.1rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	text-decoration: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.yhz-404-shortcut:hover {
	border-color: #93c5fd;
	box-shadow: 0 8px 22px rgba(37, 99, 235, 0.09);
	transform: translateY(-2px);
}

.yhz-404-shortcut__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 0.35rem;
	border-radius: 10px;
	background: #eff6ff;
	color: #2563eb;
}

.yhz-404-shortcut__icon svg {
	width: 20px;
	height: 20px;
}

.yhz-404-shortcut__label {
	font-family: "Nunito", system-ui, sans-serif;
	font-size: 0.95rem;
	font-weight: 800;
	color: #1e293b;
}

.yhz-404-shortcut__hint {
	font-size: 0.78rem;
	color: #94a3b8;
}

.yhz-404-guide-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.yhz-404-guide-list li + li {
	border-top: 1px solid #f1f5f9;
}

.yhz-404-guide-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 1.15rem;
	text-decoration: none !important;
	color: #334155;
	font-size: 0.92rem;
	font-weight: 600;
	transition: background 0.12s ease, color 0.12s ease;
}

.yhz-404-guide-list a:hover {
	background: #eff6ff;
	color: #2563eb;
}

.yhz-404-guide-list a svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: #94a3b8;
}

.yhz-404-guide-list a:hover svg {
	color: #2563eb;
}

/* —— Category archive (pro) —— */
body.yhz-category-archive .archive-container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

body.yhz-category-archive .nv-index-posts.blog.col {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1.25rem 3rem;
}

.yhz-hub-hero--archive {
	margin: 0 0 2rem;
	text-align: center;
}

.yhz-category-archive .yhz-archive-hero {
	margin: 0 0 2rem;
	max-width: none;
	border-radius: 0;
}

@media (max-width: 900px) {
	.yhz-hub-grid {
		grid-template-columns: 1fr;
	}

	.yhz-hub-tools,
	.yhz-404-shortcuts-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.yhz-hub-hero__actions {
		flex-direction: column;
		align-items: stretch;
		max-width: none;
	}

	.yhz-hub-btn {
		width: 100%;
		max-width: none;
		white-space: normal;
	}

	.yhz-hub-stats {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0.5rem;
		width: 100%;
	}

	.yhz-hub-stats li {
		min-width: 0;
		width: auto;
		flex: none;
	}

	.yhz-hub-stats li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}
