/**
 * Test oynatıcı stilleri (v2) - daha tatlı, daha şık
 */

.hu-test-page { min-height: 60vh; padding: 1.5rem 0 4rem; }

/* Screen yönetimi */
.hu-test-screen { display: none; animation: hu-fade-in .35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hu-test-screen-active { display: block; }

@keyframes hu-fade-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.hu-back {
	display: inline-block;
	margin-bottom: 1rem;
	color: var(--hu-text-muted);
	font-size: 0.9rem;
	font-weight: 600;
	transition: color .2s ease, transform .2s ease;
}
.hu-back:hover { color: var(--hu-primary); transform: translateX(-3px); }

/* ============= START SCREEN ============= */
.hu-test-hero {
	padding: 2.5rem 2rem;
	border-radius: var(--hu-radius-lg);
	text-align: center;
	margin-bottom: 2rem;
	border: 1px solid var(--hu-border-soft);
	box-shadow: var(--hu-shadow-soft);
	position: relative;
	overflow: hidden;
}
.hu-test-hero::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--hu-test-color, var(--hu-primary));
}
.hu-test-group-badge {
	display: inline-block;
	padding: 0.45rem 1.1rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.85rem;
	margin-bottom: 1.25rem;
	letter-spacing: 0.02em;
}
.hu-test-title {
	font-size: clamp(1.9rem, 4.5vw, 2.8rem);
	margin-bottom: 0.6rem;
	letter-spacing: -0.03em;
}
.hu-test-subtitle {
	color: var(--hu-text-muted);
	max-width: 580px;
	margin: 0 auto 1.5rem;
	font-size: 1rem;
	line-height: 1.6;
}
.hu-test-cover { max-width: 580px; margin: 0 auto 1.5rem; border-radius: var(--hu-radius); overflow: hidden; box-shadow: var(--hu-shadow); }
.hu-test-excerpt { color: var(--hu-text-muted); max-width: 580px; margin: 0 auto 1.5rem; font-size: 1rem; line-height: 1.6; }
.hu-test-meta { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.hu-meta-chip {
	background: var(--hu-bg-soft);
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--hu-text-muted);
	border: 1px solid var(--hu-border-soft);
}
.hu-start-btn { margin-top: 1.5rem; }

/* ============= QUESTIONS SCREEN ============= */
.hu-test-container { max-width: 780px; margin: 0 auto; }
.hu-test-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	gap: 1rem;
}
.hu-test-group-mini {
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.82rem;
}
.hu-test-counter { font-weight: 700; color: var(--hu-text-muted); font-size: 0.9rem; }
.hu-test-counter #hu-current-num {
	color: var(--hu-test-color, var(--hu-primary));
	font-size: 1.1rem;
}

.hu-progress-bar {
	width: 100%;
	height: 10px;
	background: var(--hu-bg-soft);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 2rem;
	box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}
.hu-progress-fill {
	height: 100%;
	width: 0%;
	border-radius: 999px;
	transition: width .4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 0 12px var(--hu-test-color, var(--hu-primary));
	position: relative;
}
.hu-progress-fill::after {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
	animation: hu-progress-shine 1.5s linear infinite;
}
@keyframes hu-progress-shine {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

/* Soru kartı */
.hu-question-card {
	background: #fff;
	border: 1px solid var(--hu-border-soft);
	border-radius: var(--hu-radius);
	padding: 2.25rem 2rem;
	box-shadow: var(--hu-shadow);
	margin-bottom: 1.5rem;
	animation: hu-question-in .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes hu-question-in {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
.hu-question-num {
	display: inline-block;
	background: var(--hu-test-color, var(--hu-primary));
	color: #fff;
	font-size: 0.74rem;
	font-weight: 800;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	margin-bottom: 1rem;
	letter-spacing: 0.03em;
}
.hu-question-text {
	font-size: clamp(1.25rem, 3vw, 1.6rem);
	font-weight: 800;
	margin-bottom: 1.75rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
}
.hu-question-image {
	border-radius: var(--hu-radius-sm);
	overflow: hidden;
	margin-bottom: 1.5rem;
	max-width: 400px;
}

/* Seçenekler - daha tatlı, dokunsal */
.hu-options { display: flex; flex-direction: column; gap: 0.75rem; }
.hu-option {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1.05rem 1.3rem;
	border: 2px solid var(--hu-border);
	border-radius: var(--hu-radius-sm);
	cursor: pointer;
	transition: all .2s cubic-bezier(0.34, 1.56, 0.64, 1);
	background: #fff;
	text-align: left;
	font-size: 1rem;
	font-weight: 500;
	color: var(--hu-text);
	width: 100%;
	font-family: inherit;
}
.hu-option:hover {
	border-color: var(--hu-test-color, var(--hu-primary));
	transform: translateX(6px);
	box-shadow: var(--hu-shadow-soft);
}
.hu-option.hu-option-selected {
	border-color: var(--hu-test-color, var(--hu-primary));
	background: color-mix(in srgb, var(--hu-test-color, var(--hu-primary)) 8%, #fff);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--hu-test-color, var(--hu-primary)) 18%, transparent);
}
.hu-option-letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 2px solid var(--hu-border);
	font-weight: 800;
	font-size: 0.9rem;
	flex-shrink: 0;
	transition: all .2s ease;
}
.hu-option.hu-option-selected .hu-option-letter {
	background: var(--hu-test-color, var(--hu-primary));
	border-color: var(--hu-test-color, var(--hu-primary));
	color: #fff;
	transform: scale(1.1);
}
.hu-option-text { flex: 1; }

.hu-test-bottombar {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
}
.hu-test-bottombar .hu-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============= RESULT SCREEN ============= */
.hu-result-wrap { max-width: 940px; margin: 0 auto; }

.hu-result-header { text-align: center; margin-bottom: 2rem; animation: hu-result-pop .5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes hu-result-pop {
	from { opacity: 0; transform: scale(0.9); }
	to { opacity: 1; transform: scale(1); }
}
.hu-result-label {
	text-transform: uppercase;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	color: var(--hu-text-muted);
	margin-bottom: 0.5rem;
}
.hu-result-title { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.03em; }
.hu-result-name {
	background: var(--hu-grad-warm);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: hu-grad-shift 4s ease infinite;
}

.hu-result-card {
	background: #fff;
	border-radius: var(--hu-radius);
	overflow: hidden;
	box-shadow: 0 24px 70px -22px rgba(0,0,0,0.25);
	border: 1px solid var(--hu-border-soft);
	animation: hu-card-rise .6s cubic-bezier(0.34, 1.56, 0.64, 1) .1s both;
}
@keyframes hu-card-rise {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}
.hu-result-top-bar { height: 6px; background: var(--hu-test-color, var(--hu-primary)); }

.hu-result-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 2rem;
	padding: 2rem;
}
@media (max-width: 768px) {
	.hu-result-grid { grid-template-columns: 1fr; text-align: center; }
}

.hu-result-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hu-result-avatar {
	width: 200px;
	height: 200px;
	border-radius: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
	font-weight: 900;
	color: #fff;
	background: linear-gradient(135deg, var(--hu-test-color, var(--hu-primary)), color-mix(in srgb, var(--hu-test-color, var(--hu-primary)) 70%, #000));
	box-shadow: 0 16px 40px -10px var(--hu-test-color, var(--hu-primary));
	background-size: cover;
	background-position: center;
	position: relative;
}
.hu-result-avatar::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 28px;
	border: 2px solid rgba(255,255,255,0.3);
	pointer-events: none;
}
.hu-result-name-big { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.hu-result-real-name { color: var(--hu-text-muted); font-size: 0.95rem; }
.hu-result-traits { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.hu-result-trait {
	background: color-mix(in srgb, var(--hu-test-color, var(--hu-primary)) 15%, transparent);
	color: var(--hu-test-color, var(--hu-primary));
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
}

.hu-result-info { display: flex; flex-direction: column; gap: 1rem; }
.hu-result-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 0.75rem;
}
.hu-result-info-item {
	background: var(--hu-bg-soft);
	padding: 0.8rem;
	border-radius: var(--hu-radius-sm);
	border: 1px solid var(--hu-border-soft);
}
.hu-result-info-label {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.74rem;
	color: var(--hu-text-muted);
	margin-bottom: 0.3rem;
	font-weight: 600;
}
.hu-result-info-value { font-weight: 700; font-size: 0.92rem; }

.hu-result-tagline {
	border-left: 4px solid var(--hu-test-color, var(--hu-primary));
	background: color-mix(in srgb, var(--hu-test-color, var(--hu-primary)) 8%, transparent);
	padding: 1rem 1.25rem;
	border-radius: 0 var(--hu-radius-sm) var(--hu-radius-sm) 0;
	font-weight: 600;
	font-style: italic;
}

.hu-result-desc { line-height: 1.75; }
.hu-result-desc h2 { font-size: 1.35rem; margin-top: 1.5rem; }
.hu-result-desc h2:first-child { margin-top: 0; }
.hu-result-desc h3 { font-size: 1.1rem; margin-top: 1rem; }
.hu-result-desc p { color: var(--hu-text-muted); }
.hu-result-desc ul { margin: 0.5rem 0 1rem; padding-left: 1.5rem; color: var(--hu-text-muted); }
.hu-result-desc strong { color: var(--hu-text); }

/* Fun facts */
.hu-result-facts {
	border-top: 1px solid var(--hu-border-soft);
	padding: 2rem;
	background: var(--hu-bg-soft);
}
.hu-result-facts-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.88rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--hu-text-muted);
	margin-bottom: 1rem;
}
.hu-result-facts-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 0.5rem;
}
.hu-result-fact {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	background: #fff;
	padding: 0.65rem 0.8rem;
	border-radius: var(--hu-radius-sm);
	font-size: 0.88rem;
	border: 1px solid var(--hu-border-soft);
}
.hu-result-fact-num {
	background: var(--hu-test-color, var(--hu-primary));
	color: #fff;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.72rem;
	font-weight: 800;
	flex-shrink: 0;
	margin-top: 2px;
}

/* Eşleşme dağılımı */
.hu-result-match {
	background: #fff;
	border-radius: var(--hu-radius);
	padding: 2rem;
	box-shadow: var(--hu-shadow);
	border: 1px solid var(--hu-border-soft);
	margin-top: 1.5rem;
}
.hu-result-match-title { margin-bottom: 1.25rem; }
.hu-result-match-list { display: flex; flex-direction: column; gap: 0.75rem; }
.hu-result-match-row { display: flex; align-items: center; gap: 0.75rem; }
.hu-result-match-rank { width: 24px; text-align: center; font-weight: 700; color: var(--hu-text-muted); font-size: 0.9rem; }
.hu-result-match-name { width: 100px; font-weight: 600; font-size: 0.92rem; }
.hu-result-match-bar-wrap {
	flex: 1;
	height: 30px;
	background: var(--hu-bg-soft);
	border-radius: 999px;
	overflow: hidden;
	position: relative;
}
.hu-result-match-bar {
	height: 100%;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 10px;
	color: #fff;
	font-weight: 800;
	font-size: 0.8rem;
	transition: width .9s cubic-bezier(0.34, 1.56, 0.64, 1);
	min-width: 2px;
}
.hu-result-match-pct {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--hu-text);
}

/* Butonlar */
.hu-result-actions {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.75rem;
	flex-wrap: wrap;
}
.hu-result-actions .hu-btn { flex: 1; min-width: 170px; }

/* Diğer testler */
.hu-result-other { margin-top: 3rem; }
.hu-result-other-title { text-align: center; font-size: 1.5rem; margin-bottom: 1.5rem; }

/* Loading */
.hu-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 3rem;
	color: var(--hu-text-muted);
}
.hu-loading-spinner {
	width: 28px;
	height: 28px;
	border: 3px solid var(--hu-bg-soft);
	border-top-color: var(--hu-test-color, var(--hu-primary));
	border-radius: 50%;
	animation: hu-spin .8s linear infinite;
}
@keyframes hu-spin { to { transform: rotate(360deg); } }

/* Konfeti */
.hu-confetti {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 9999;
	overflow: hidden;
	display: block;
}

/* ============= TEST SEO İÇERİK (görünür) ============= */
.hu-test-seo {
	padding: 3rem 0 1rem;
	background: var(--hu-bg-soft);
	border-top: 1px solid var(--hu-border-soft);
	margin-top: 3rem;
}
.hu-test-seo-inner {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 20px;
	line-height: 1.8;
}
.hu-test-seo .hu-seo-h2 {
	font-size: clamp(1.35rem, 3vw, 1.7rem);
	margin: 2.25rem 0 1rem;
	color: var(--hu-secondary);
	letter-spacing: -0.01em;
}
.hu-test-seo .hu-seo-h2:first-child { margin-top: 0; }
.hu-test-seo p { color: var(--hu-text-muted); margin: 0 0 1rem; }
.hu-test-seo .hu-seo-steps {
	margin: 1rem 0 1.5rem;
	padding-left: 1.5rem;
	color: var(--hu-text-muted);
}
.hu-test-seo .hu-seo-steps li { margin-bottom: 0.6rem; }
.hu-test-seo .hu-seo-steps strong { color: var(--hu-text); }
.hu-test-seo-content { margin: 1.5rem 0; }
.hu-test-seo-content h2 { font-size: 1.4rem; margin: 1.5rem 0 0.75rem; }
.hu-test-seo-content h3 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.hu-test-seo-content p, .hu-test-seo-content ul { color: var(--hu-text-muted); }
.hu-test-seo-content ul { padding-left: 1.5rem; }
.hu-test-seo-content li { margin-bottom: 0.4rem; }
.hu-test-seo-content strong { color: var(--hu-text); }
.hu-seo-faq { margin-top: 2.5rem; }

/* ============= İLGİLİ TESTLER ============= */
.hu-related-section {
	padding: 3rem 0 4rem;
	background: var(--hu-bg);
	border-top: 1px solid var(--hu-border-soft);
}
.hu-related-title {
	text-align: center;
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 0.5rem;
}
.hu-related-desc {
	text-align: center;
	color: var(--hu-text-muted);
	max-width: 560px;
	margin: 0 auto 2rem;
	font-size: 0.95rem;
}
.hu-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
}
.hu-related-item {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem 1.25rem;
	background: #fff;
	border: 1px solid var(--hu-border-soft);
	border-radius: var(--hu-radius);
	text-decoration: none;
	color: inherit;
	transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s ease, border-color .25s ease;
}
.hu-related-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--hu-shadow);
	border-color: color-mix(in srgb, var(--hu-card-color, var(--hu-primary)) 40%, transparent);
}
.hu-related-letter {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 900;
	font-size: 1.25rem;
	flex-shrink: 0;
	box-shadow: 0 6px 14px -4px var(--hu-card-color, var(--hu-primary));
}
.hu-related-text { flex: 1; min-width: 0; }
.hu-related-name {
	font-weight: 700;
	font-size: 0.95rem;
	margin-bottom: 0.15rem;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hu-related-meta { font-size: 0.78rem; color: var(--hu-text-muted); }
.hu-related-arrow {
	color: var(--hu-card-color, var(--hu-primary));
	font-weight: 700;
	font-size: 1.1rem;
	transition: transform .2s ease;
}
.hu-related-item:hover .hu-related-arrow { transform: translateX(4px); }

/* ============= DARK MODE ============= */
@media (prefers-color-scheme: dark) {
	.hu-question-card, .hu-result-card, .hu-result-match, .hu-result-fact, .hu-related-item, .hu-result-info-item {
		background: var(--hu-bg-soft);
		border-color: var(--hu-border);
	}
	.hu-result-info-item { background: var(--hu-bg); }
	.hu-test-hero { background: color-mix(in srgb, var(--hu-bg) 50%, transparent); }
	.hu-option { background: var(--hu-bg-soft); }
	.hu-option.hu-option-selected { background: var(--hu-bg); }
	.hu-result-desc p, .hu-result-desc ul { color: var(--hu-text-muted); }
	.hu-result-desc strong { color: var(--hu-text); }
	.hu-test-seo { background: var(--hu-bg); border-top-color: var(--hu-border); }
	.hu-related-section { background: var(--hu-bg-soft); border-top-color: var(--hu-border); }
	.hu-meta-chip, .hu-result-match-bar-wrap { background: var(--hu-bg); }
	.hu-progress-bar { background: var(--hu-bg); }
}
