* {
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

/* @import url('https://fonts.cdnfonts.com/css/sf-pro-display'); */

@font-face {
	font-family: 'SF Pro Display';
	src: url('assets/fonts/SF-Pro-Display-Medium.woff2') format('opentype');
	font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: 'SF Pro Display';
	src: url('assets/fonts/SF-Pro-Display-Bold.woff2') format('opentype');
	font-weight: 600;
	font-style: normal;
}

@font-face {
	font-family: 'Rounded';
	src: url('assets/fonts/SF-Pro-Rounded-Medium.woff2') format('opentype');
	font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: 'Roundeddd';
	src: url('assets/fonts/SF-Pro-Rounded-Regular.woff2') format('opentype');
	font-weight: 500;
	font-style: normal;
}

/* Splash Screen Styles */
#splash-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #1d9bf0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: opacity 1s ease-out;
}

#splash-screen.hidden {
	opacity: 0;
	pointer-events: none;
}

#splash-screen svg {
	width: 80px;
	height: 80px;
	fill: white;
	margin-bottom: 20px;
}

.loader {
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top: 3px solid white;
	width: 20px;
	height: 20px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Landing Page Styles */
.logo {
	width: 80px;
	height: 80px;
	margin-bottom: 14px;
}

.button {
	border: none;
	outline: none;
	cursor: pointer;
	font-family: 'SF Pro Display';
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.4px;
	color: #fff;
	border-radius: 9999px;
	padding: 12px 25px;
	margin-bottom: 20px;
	background-color: #1d9bf0;
	transition: background-color 0.2s ease;
	/* box-shadow: 0 4px 6px rgba(29, 155, 240, 0.2); */
}

.button:hover {
	background-color: #1a8cd8;
}

.button:active {
	transform: scale(0.98);
}

.wrapped-btn {
	color: #fff;
	position: relative;
	margin-bottom: 10px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	font-weight: 900;
	font-size: 20px;
	letter-spacing: 1px;
	text-shadow: 0 10px 500px #000, 0 0 20px #000, 0 2px 3px #000;
	overflow: hidden;
	z-index: 1;
	background: transparent;
	/* Ensure no background color interferes */
}

.wrapped-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('./assets/img/wrapped.webp');
	background-size: cover;
	background-position: center;
	opacity: 0.8;
	/* Background opacity */
	z-index: -1;
	transition: transform 0.3s ease;
}

.wrapped-btn:hover {
	background-color: transparent;
	/* Subtle zoom effect on hover */
}

.wrapped-btn:hover::before {
	transform: scale(1.05);
	/* Subtle zoom effect on hover */
}

.button-link {
	text-decoration: none;
}

.title {
	margin: 0;
	margin-bottom: 20px;
	font-size: 40px;
	font-weight: 800;
	font-family: 'SF Pro Display';
	color: #0f1419;
	text-align: center;
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.hero-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 600px;
	/* padding: 0 20px; */
	width: 100%;
}

.hero-container .button-link {
	width: 100%;
	display: flex;
	justify-content: center;
}

.hero-container .button {
	width: 100%;
	max-width: 350px;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	align-items: center;
}

.certificate-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	background-color: #fafeff;
	border: 1px solid #cfd9de;
	border-radius: 9999px;
	padding: 12px 20px;
	margin-bottom: 20px;
	transition: all 0.2s ease;
}

/* .certificate-badge:hover {
	background-color: #e7ecef;
	border-color: #b8c5cc;
} */

.badge-icon {
	width: 20px;
	height: 20px;
	color: #1d9bf0;
	flex-shrink: 0;
}

.badge-text {
	font-family: 'SF Pro Display';
	font-size: 15px;
	font-weight: 600;
	color: #536471;
}

.first {
	display: flex;
	flex-direction: column;
	align-content: center;
	align-items: center;
	justify-content: center;
	background-color: #ffffff;
	height: 100vh;
}

/* Container Styles */
#container {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 10px;
	background-color: #fff;
}

#container h2 {
	font-family: 'SF Pro Display', sans-serif;
	margin-bottom: 20px;
	font-size: 28px;
}

.sorular {
	width: 100%;
	max-width: 600px;
	padding: 0 5px;
	box-sizing: border-box;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

/* Tweet (Soru) Styles */
.soru {
	background-color: #fff;
	border: 1px solid rgb(239, 243, 244);
	border-radius: 16px;
	padding: 0;
	padding-top: 12px;
	padding-bottom: 12px;
	font-family: 'SF Pro Display', sans-serif;
	transition: background-color 0.2s;
	margin-bottom: 12px;
}

.soru:hover {
	cursor: pointer;
}

.tweet {
	display: flex;
	padding: 0 16px;
	margin: 5px 0;
	position: relative;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.tweet-left {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-right: 12px;
	flex-shrink: 0;
	min-height: 100%;
}

.thread-line {
	width: 2px;
	background-color: #cfd9dea6;
	flex: 1;
	border-radius: 5px;
	min-height: 50px;
	margin-top: 4px;
	margin-bottom: 0;
}

.tweet:last-child .thread-line {
	display: none;
}

.tweet-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: 20px;
	z-index: 1;
}

.tweet-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.tweet-right {
	flex: 1;
	min-width: 0;
	padding-bottom: 12px;
}

.tweet-header {
	display: flex;
	align-items: center;
	margin-bottom: 2px;
}

.tweet-user-info {
	display: flex;
	gap: 4px;
}

.tweet-name {
	font-weight: 700;
	font-size: 15px;
	color: #0f1419;
}

.tweet-username {
	font-weight: 400;
	font-size: 15px;
	color: #536471;
}

.tweet-content {
	font-size: 16px;
	color: #0f1419;
	margin-top: 2px;
	margin-bottom: 5px;
}

.tweet-footer {
	display: flex;
	justify-content: space-between;
	max-width: 425px;
	color: #536471;
}

.tweet-action {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	transition: color 0.2s;
}

.tweet-action svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.tweet-action:hover {
	color: #1d9bf0;
}

.tweet-action.retweet:hover {
	color: #00ba7c;
}

.tweet-action.like:hover {
	color: #f91880;
}

.answer {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	background-color: #1d9bf0;
	border-radius: 16px;
	padding: 7px 10px;
	color: #ffffff;
	margin-top: 5px;
	margin-bottom: 5px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.answer:hover {
	background-color: #1a8cd8;
}

.answer:active {
	transform: scale(0.97);
}

.answer.selected {
	background-color: #1a8cd8;
	transform: scale(1.02);
	box-shadow: 0 2px 8px rgba(29, 155, 240, 0.3);
}

.answer.not-selected {
	opacity: 0.9;
	background-color: #8ecdf8;
}

.answer.not-selected:hover {
	opacity: 0.7;
	background-color: #7ab8e0;
}

.tweet-answer> :last-child {
	margin-bottom: 12px;
}

/* Finish Test Button */
.finish-test-container {
	display: flex;
	justify-content: center;
	padding: 0px 0px;
	/* margin-top: 20px; */
}

.tweet-image>img {
	width: 100%;
	height: auto;
	max-height: 320px;
	object-fit: cover;
	border-radius: 12px;
	margin-top: 5px;
	border: 1px solid rgb(207, 217, 222);
}

/* Results Page Styles - Twitter Card Style */
#results-page {
	width: 100%;
	/* max-width: 600px; */
	/* margin: 10px 0px; */
	box-sizing: border-box;
	display: none;
}

.results-container {
	background-color: #fff;
	border: 1px solid rgb(239, 243, 244);
	border-radius: 16px;
	padding: 20px;
}

.results-header {
	text-align: center;
	padding-bottom: 16px;
	border-bottom: 1px solid rgb(239, 243, 244);
	/* margin-bottom: 20px; */
}

.results-logo {
	width: 48px;
	height: 48px;
	/* margin-bottom: 12px; */
}

.results-title {
	font-family: 'SF Pro Display';
	font-size: 24px;
	font-weight: 800;
	color: #0f1419;
	margin: 0;
}

.results-stats {
	display: flex;
	justify-content: space-around;
	gap: 16px;
	margin-bottom: 20px;
	padding: 16px 0;
	border-bottom: 1px solid rgb(239, 243, 244);
}

.stat-card {
	text-align: center;
	flex: 1;

	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.stat-value {
	font-family: 'SF Pro Display';
	font-size: 80px;
	filter: drop-shadow(0 0 0.75rem #afe4ff);
	font-weight: 800;
	color: #1d9bf0;
	margin-bottom: 4px;
}

.stat-label {
	/* font-family: Rounded; */
	font-family: 'SF Pro Display';
	/* letter-spacing: 0.1px; */
	font-size: 25px;
	font-weight: 600;
	color: #070707;
	margin-bottom: 5px;
	/* text-transform: uppercase; */
	letter-spacing: 0.5px;
}

/* Level Badge Colors */
.level-badge {
	padding: 6px 12px;
	border-radius: 9999px;
	display: inline-block;
	/* font-size: 24px; */
}

/* .level-badge.level-c2 {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.level-badge.level-c1 {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	color: white;
}

.level-badge.level-b2 {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	color: white;
}

.level-badge.level-b1 {
	background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
	color: white;
}

.level-badge.level-a2 {
	background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
	color: white;
}

.level-badge.level-a1 {
	background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
	color: #0f1419;
} */

/* Results Review Section */
.results-review {
	margin-bottom: 20px;
}

.review-title {
	font-family: 'SF Pro Display';
	font-size: 18px;
	font-weight: 700;
	color: #0f1419;
	margin-bottom: 16px;
}

.review-item {
	background-color: #f7f9f9;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 12px;
}

.review-item:hover {
	background-color: #eff3f4;
}

.review-item.correct {
	border-left: 3px solid #1a8cd8;
}

/* .review-item.wrong {
	border-left: 3px solid #f91880;
} */

.review-question {
	margin-bottom: 12px;
}

.review-number {
	font-family: 'SF Pro Display';
	font-size: 11px;
	font-weight: 700;
	color: #536471;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: block;
	margin-bottom: 4px;
}

.review-text {
	font-family: 'SF Pro Display';
	font-size: 14px;
	font-weight: 600;
	color: #0f1419;
}

.review-answers {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.review-answer {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 8px;
	font-family: 'SF Pro Display';
	background-color: #fff;
}

/* .review-answer.user-answer.correct {
	background-color: #e8f2f5;
	border: 1px solid #00ba7c;
} */

.review-answer.user-answer.wrong {
	background-color: #fef1f5;
	border: 1px solid #f91880;
}

.review-answer.correct-answer {
	background-color: #eff9ff;
	border: 1px solid #1a8cd8;
}

.answer-label {
	font-size: 12px;
	font-weight: 600;
	color: #536471;
}

.answer-text {
	font-size: 14px;
	font-weight: 700;
	color: #0f1419;
	flex: 1;
}

.check-icon,
.x-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.check-icon {
	color: #1a8cd8;
}

.x-icon {
	color: #f91880;
}

/* Results Actions */
.results-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	/* padding-top: 16px; */
	/* border-top: 1px solid rgb(0, 0, 0); */
}

#nickInput {
	width: auto;
	height: 48px;
	border-radius: 100px;
	border: 1px solid rgb(199, 211, 214);
	padding: 0 12px;
	font-size: 16px;
	color: #0f1419;
	outline: none;
	transition: border-color 0.2s;

	font-family: 'SF Pro Display';
}

.button-secondary {
	background-color: #eff3f4;
	color: #0f1419;

	font-size: 15px;
}

.button-secondary:hover {
	background-color: #e7ecef;
}

/* Responsive Design */
@media (max-width: 600px) {
	.title {
		font-size: 40px;
	}

	/* .hero-container {
		padding: 0 16px;
	} */

	.certificate-badge {
		padding: 10px 16px;
	}

	.badge-text {
		font-size: 14px;
	}

	.results-title {
		font-size: 20px;
	}

	/* .stat-value {
		font-size: 24px;
	} */

	.results-stats {
		flex-direction: column;
		gap: 12px;
	}

	.results-actions {
		flex-direction: column;
	}

	.results-actions .button {
		width: 100%;
	}
}

/* Modal Overlay (Arkaplan) */
.icon-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.249);
	z-index: 10000;
	display: flex;
	/* JS ile kontrol edilecek ama varsayılan flex yapısı kalsın */
	justify-content: center;
	align-items: center;
	font-family: 'SF Pro Display';
}

/* Modal Kutusu */
.icon-modal-content {
	background: white;
	border-radius: 15px;
	padding: 20px;
	max-width: 400px;
	width: 80%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Modal Başlık Alanı */
.icon-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.icon-modal-header h2 {
	font-size: 20px;
	color: #1d9bf0;
	margin: 0;
	/* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; */
	font-family: SF Pro Display;
}

/* Kapatma Butonu */
.icon-modal-close {
	background: none;
	border: none;
	font-size: 32px;
	cursor: pointer;
	color: #536471;
	padding: 0;
	width: 32px;
	height: 32px;
	line-height: 1;
	transition: color 0.2s;
}

.icon-modal-close:hover {
	color: #1d9bf0;
}

/* İkon Izgarası (Grid) */
.icon-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 5px;
	margin-bottom: 20px;
}

/* Tekil İkon Kutusu */
.icon-option {
	aspect-ratio: 1;
	border: 2px solid #e1e8ed;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
	overflow: hidden;
	background: #f7f9fa;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.icon-option:hover {
	border-color: #1d9bf0;
	transform: scale(1.05);
}

.icon-option.selected {
	border-color: #1d9bf0;
	border-width: 3px;
	background: #e8f5fd;
}

.icon-option img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Onay Butonu */
.icon-confirm-btn {
	width: 100%;
	padding: 15px;
	/* background: linear-gradient(135deg, #1d9bf0 0%, #0c7abf 100%); */
	background-color: #1d9bf0;
	color: white;
	border: none;
	border-radius: 12px;
	letter-spacing: 0.3px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	/* margin-top: 20px; */
	transition: transform 0.2s, box-shadow 0.2s;
	font-family: inherit;
}

.icon-confirm-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(29, 155, 240, 0.4);
}

.icon-confirm-btn:active {
	transform: translateY(0);
}

/* Yükleniyor (Loader) Alanı */
.loading-content {
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Sade Spinner */
.simple-spinner {
	width: 50px;
	height: 50px;
	border: 5px solid rgba(255, 255, 255, 0.3);
	border-top: 5px solid #1d9bf0;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}