:root {
	--primary-color: #2196F3;
	--secondary-color: #1976D2;
	--background-color: #f5f5f5;
	--text-color: #333;
	--header-height: 60px;
	--footer-height: 80px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', system-ui, sans-serif;
	background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
	color: var(--text-color);
	height: 100vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.app-header {
	height: var(--header-height);
	background-color: var(--primary-color);
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	position: relative;
	z-index: 10;
}

.app-header h1 {
	font-size: 1.8rem;
	margin: 0;
	white-space: nowrap;
}

.header-controls {
	display: flex;
	gap: 12px;
}

.icon-button {
	background: white;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.icon-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	background: #f8f9fa;
}

.icon-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.icon {
	width: 24px;
	height: 24px;
	fill: var(--primary-color);
}

.button-icon {
	font-size: 1.2rem;
}

.app-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	min-height: calc(100vh - var(--header-height) - var(--footer-height));
	padding: 20px;
	padding-bottom: calc(var(--footer-height) + var(--stats-height, 100px));
}

.word-container {
	width: calc(100% - 40px);
	max-width: 600px;
	min-height: 180px;
	background-color: white;
	border-radius: 20px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	margin: auto;
	position: relative;
	top: -8%;
	position: relative;
}

.word-text {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 60px;
	font-size: clamp(1.8rem, 5vw, 2.5rem);
	margin-bottom: 20px;
	opacity: 0;
	animation: fadeIn 0.5s forwards;
	line-height: 1.3;
	padding: 10px;
	word-break: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
}

.answer-text {
	width: 100%;
	display: none;
	justify-content: center;
	align-items: center;
	min-height: 60px;
	font-size: 1.8rem;
	color: var(--primary-color);
	background: rgba(33, 150, 243, 0.1);
	border-radius: 10px;
	padding: 10px;
	margin-top: 10px;
	transition: all 0.3s ease;
}

.answer-text.visible {
	display: flex;
	animation: showAnswer 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stats-container {
	position: fixed;
	bottom: calc(var(--footer-height) + 15px);
	left: 50%;
	transform: translateX(-50%);
	display: none;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 380px;
	padding: 0 20px;
	z-index: 90;
}

.stat-item {
	flex: 1;
	background: white;
	padding: 10px;
	border-radius: 16px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	text-align: center;
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(10px);
	border: 1px solid var(--primary-color);
	transition: all 0.3s ease;
}

.stat-label {
	font-size: 0.75rem;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
	display: block;
}

.stat-value {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--primary-color);
	display: block;
}

.stat-value[id="repeatCount"] {
	color: #4CAF50;
}

.stat-value[id="timer"] {
	font-family: 'Roboto Mono', monospace;
	letter-spacing: -0.5px;
	font-size: 1.1rem;
	color: #666;
}

.stat-value[id="wordIndex"] {
	color: var(--secondary-color);
}

.stat-item:hover {
	transform: translateY(-2px);
	background: var(--primary-color);
	border-color: var(--primary-color);
}

.stat-item:hover .stat-label {
	color: rgba(255, 255, 255, 0.8);
}

.stat-item:hover .stat-value {
	color: white !important;
}

.app-footer {
	height: var(--footer-height);
	background-color: #f0f2f5;
	border-top: 1px solid rgba(0,0,0,0.05);
	padding: 15px;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 100;
	backdrop-filter: blur(10px);
	display: none;
}

.navigation-controls {
	display: flex;
	justify-content: center;
	gap: 20px;
	height: 100%;
	align-items: center;
}

.nav-button, .answer-button {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	background-color: var(--primary-color);
	color: white;
	font-size: 1.2rem;
	cursor: pointer;
	transition: transform 0.2s;
}

.nav-button:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

.nav-button:active, .answer-button:active {
	transform: scale(0.95);
}

.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(8px);
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal-content {
	background: rgba(255, 255, 255, 0.98);
	width: 100%;
	max-width: 340px;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	padding: 20px;
	transform: scale(0.95);
	opacity: 0;
}

.modal[style*="display: flex"] .modal-content {
	animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalPop {
	from {
		transform: scale(0.95);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.modal-header h2 {
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--text-color);
	margin: 0;
}

.close-button {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: #f5f5f5;
	color: #666;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.close-button:hover {
	background: #eeeeee;
	color: #333;
}

.modal-body {
	padding: 0;
}

.settings-group {
	margin-bottom: 35px;
}

.settings-group label {
	display: block;
	font-size: 1rem;
	font-weight: 500;
	margin-bottom: 12px;
	color: var(--text-color);
}

.range-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 30px;
}

.input-wrapper {
	flex: 1;
	position: relative;
}

.settings-input {
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 12px;
	font-size: 1rem;
	text-align: center;
	background: #f0f2f5;
	color: var(--text-color);
	transition: all 0.2s ease;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.settings-input:focus {
	outline: none;
	background: #e8eaed;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}

.settings-input:invalid {
	color: #dc3545;
	background: #fff5f5;
}

.input-label {
	position: absolute;
	bottom: -22px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 0.85rem;
	color: #666;
	transition: all 0.2s ease;
}

.range-separator {
	font-weight: 500;
	color: #666;
	padding: 0 8px;
}

.settings-input:hover {
	background: #e8eaed;
}

.settings-input:focus + .input-label {
	color: var(--primary-color);
	transform: translateY(-2px);
}

.direction-buttons, .order-buttons {
	display: flex;
	gap: 8px;
}

.direction-btn, .order-btn {
	flex: 1;
	padding: 12px 8px;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	background: white;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
	font-weight: 500;
}

.direction-btn.active, .order-btn.active {
	border-color: var(--primary-color);
	background: var(--primary-color);
	color: white;
}

.direction-arrow {
	font-size: 1.2rem;
}

.direction-icon, .order-icon {
	font-size: 1.2rem;
}

.primary-button {
	margin-top: 10px;
	align-self: center;
	background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
	padding: 12px 24px;
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 500;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
	border: none;
	min-width: 120px;
}

.primary-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
	filter: brightness(1.1);
}

.primary-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.start-icon {
	font-size: 1.1rem;
}

.start-text {
	font-size: 0.95rem;
	letter-spacing: 0.5px;
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.modal-content {
	animation: modalFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (display-mode: standalone) {
	.app-header {
		padding-top: env(safe-area-inset-top);
	}
	
	.app-footer {
		padding-bottom: env(safe-area-inset-bottom);
	}
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.direction-text {
	white-space: nowrap;
}

.settings-input:invalid {
	border-color: #dc3545;
}

.settings-input:focus {
	border-color: var(--primary-color);
	outline: none;
}

.about-modal {
	max-width: 320px;
}

.about-content {
	padding: 10px 0;
}

.about-logo {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.logo-text {
	font-size: 2rem;
	font-weight: bold;
	background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: block;
}

.logo-version {
	font-size: 0.9rem;
	color: #666;
	display: block;
	margin-top: 5px;
	padding: 4px 8px;
	background: #f5f5f5;
	border-radius: 12px;
	display: inline-block;
}

.developers h3 {
	margin-bottom: 20px;
	color: var(--text-color);
	font-size: 1.2rem;
}

.developer-cards {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.developer-card {
	background: #f8f9fa;
	border: 1px solid rgba(0,0,0,0.05);
	padding: 12px;
	margin-bottom: 8px;
	border-radius: 16px;
	transition: transform 0.2s ease;
	display: flex;
	align-items: center;
	gap: 12px;
}

.developer-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.developer-avatar {
	width: 40px;
	height: 40px;
	background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
	border-radius: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: 1.2rem;
}

.developer-info {
	text-align: left;
}

.developer-info h4 {
	margin: 0 0 5px 0;
	color: var(--text-color);
}

.whatsapp-link {
	display: flex;
	align-items: center;
	gap: 5px;
	text-decoration: none;
	color: #25D366;
	font-weight: 500;
	padding: 5px 10px;
	border-radius: 8px;
	background: #25D36610;
	transition: all 0.3s ease;
}

.whatsapp-link:hover {
	background: #25D36620;
}

.whatsapp-icon {
	font-size: 1.1rem;
}

/* Mode butonları */
.mode-buttons {
	display: flex;
	gap: 8px;
}

.mode-btn {
	flex: 1;
	padding: 15px;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	background: white;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.mode-btn.active {
	border-color: var(--primary-color);
	background: var(--primary-color);
	color: white;
}

.mode-icon {
	font-size: 1.5rem;
}

.mode-text {
	font-size: 0.9rem;
	font-weight: 500;
}

/* Test container */
.test-container {
	width: 100%;
	max-width: 600px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 20px;
	padding-bottom: calc(var(--footer-height) + 20px);
}

.question-area {
	background: white;
	padding: 25px;
	border-radius: 15px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	text-align: center;
	margin-bottom: 80px;
}

.options-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	margin-top: 25px;
}

.option-btn {
	padding: 12px;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	background: white;
	cursor: pointer;
	transition: all 0.2s;
	font-size: clamp(0.9rem, 4vw, 1.1rem);
	color: var(--text-color);
	line-height: 1.3;
	height: auto;
	min-height: 60px;
	white-space: normal;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.option-btn:hover {
	border-color: var(--primary-color);
	transform: translateY(-2px);
}

.option-btn.correct {
	background: #4CAF50;
	color: white;
	border-color: #4CAF50;
}

.option-btn.wrong {
	background: #f44336;
	color: white;
	border-color: #f44336;
}

.test-stats {
	position: fixed;
	bottom: calc(var(--footer-height) + 20px);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	justify-content: center;
	gap: 15px;
	width: 100%;
	max-width: 400px;
	padding: 0 20px;
	z-index: 90;
}

.test-stat {
	background: white;
	padding: 12px 20px;
	border-radius: 12px;
	min-width: 100px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.test-stat-label {
	font-size: 0.8rem;
	color: #666;
	display: block;
	margin-bottom: 5px;
}

.test-stat-value {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--text-color);
}

#scoreCount {
	color: var(--primary-color);
	transition: color 0.3s ease;
}

/* Test modunda stats-container'ı gizle */
.mode-test .stats-container {
	display: none;
}

/* Ayarlar modalını güncelle */
.settings-modal {
	max-width: 340px;
}

.settings-tabs {
	display: flex;
	gap: 5px;
	margin-bottom: 20px;
	background: #f5f5f5;
	padding: 5px;
	border-radius: 10px;
}

.tab-btn {
	flex: 1;
	padding: 8px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #666;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 0.9rem;
}

.tab-btn.active {
	background: white;
	color: var(--primary-color);
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab-content {
	display: none;
	margin-bottom: 15px;
	min-height: 100px;
	padding: 0 5px;
}

.tab-content.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

.settings-content {
	padding: 0 5px;
}

/* Buton gruplarını güncelle */
.direction-buttons, .order-buttons {
	margin-bottom: 15px;
}

.direction-btn, .order-btn, .mode-btn {
	padding: 10px;
}

/* Başla butonunu alta sabitle */
.primary-button {
	margin-top: auto;
}

.modal-body {
	display: flex;
	flex-direction: column;
	min-height: 250px;
	padding: 10px 0;
}

/* Mobil için özel düzenlemeler */
@media screen and (max-width: 480px) {
	.word-container {
		min-height: 150px;
		padding: 15px;
		margin: auto;
	}

	.options-grid {
		gap: 10px;
	}

	/* Çok uzun metinler için kaydırma özelliği */
	.word-text.long-text, 
	.answer-text.long-text,
	.option-btn.long-text {
		max-height: 120px;
		overflow-y: auto;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	/* Kaydırma çubuğu stilini özelleştir */
	.long-text::-webkit-scrollbar {
		width: 4px;
	}

	.long-text::-webkit-scrollbar-thumb {
		background: rgba(0,0,0,0.2);
		border-radius: 4px;
	}

	.app-header {
		padding: 0 10px;
	}

	.app-header h1 {
		font-size: 1.4rem;
		max-width: 40%;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.header-controls {
		gap: 8px;
	}

	.icon-button {
		width: 36px;
		height: 36px;
		padding: 8px;
	}

	.icon {
		width: 20px;
		height: 20px;
	}

	.modal-content {
		margin: 10px auto;
		padding: 20px;
	}

	.modal {
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.app-content {
		padding-top: 0;
		min-height: calc(100vh - var(--header-height) - var(--footer-height) - var(--stats-height, 100px));
	}

	.stats-container {
		position: fixed;
		bottom: calc(var(--footer-height) + 20px);
	}
	
	.add-to-basket-compact,
	.remove-from-basket-compact {
		margin: 16px auto 0 auto;
		z-index: 20;
		width: 52px;
		height: 52px;
	}
}

/* Çok küçük ekranlar için ek optimizasyon */
@media screen and (max-width: 360px) {
	.app-header h1 {
		font-size: 1.2rem;
		max-width: 35%;
	}

	.header-controls {
		gap: 6px;
	}

	.icon-button {
		width: 32px;
		height: 32px;
	}
}

/* Kurulum butonu için animasyon */
@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

#installBtn {
	animation: pulse 2s infinite;
	background: white;
}

#installBtn:hover {
	animation: none;
	transform: translateY(-2px);
}

#installBtn .icon {
	fill: #4CAF50;
}

/* Mobil için özel stil */
@media screen and (max-width: 480px) {
	#installBtn {
		order: -1;
	}
}

/* Toast bildirimi için stil */
.offline-toast {
	position: fixed;
	bottom: calc(var(--footer-height) + 20px);
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 12px 24px;
	border-radius: 25px;
	font-size: 0.9rem;
	z-index: 1000;
	animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s;
}

@keyframes toastIn {
	from {
		transform: translate(-50%, 100%);
		opacity: 0;
	}
	to {
		transform: translate(-50%, 0);
		opacity: 1;
	}
}

@keyframes toastOut {
	from {
		transform: translate(-50%, 0);
		opacity: 1;
	}
	to {
		transform: translate(-50%, 100%);
		opacity: 0;
	}
}

.update-toast {
	position: fixed;
	top: calc(var(--header-height) + 20px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--primary-color);
	color: white;
	padding: 12px 24px;
	border-radius: 25px;
	font-size: 0.9rem;
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 15px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	animation: slideIn 0.3s ease;
}

.update-toast button {
	background: white;
	color: var(--primary-color);
	border: none;
	padding: 6px 12px;
	border-radius: 15px;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.2s;
}

.update-toast button:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@keyframes slideIn {
	from {
		transform: translate(-50%, -100%);
		opacity: 0;
	}
	to {
		transform: translate(-50%, 0);
		opacity: 1;
	}
}

/* Modal aktif olduğunda arka planı burlama */
body.modal-open {
	overflow: hidden;
}

body.modal-open > *:not(.modal):not(.welcome-container) {
	filter: blur(2px);
	transition: filter 0.3s ease;
	opacity: 0.8;
	pointer-events: none;
}

/* Çalışma modu aktif olduğunda göster */
body:not(.mode-test) .stats-container.active {
	display: flex;
}

/* Header başlığı için link stili */
.app-header h1 a {
	color: inherit;
	text-decoration: none;
	display: inline-block;
	position: relative;
	transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	padding: 8px 12px;
	margin: -8px -12px; /* padding'i dengelemek için negatif margin */
	border-radius: 8px;
	background: linear-gradient(to right, 
		rgba(255,255,255,0.1), 
		rgba(255,255,255,0.1)
	) no-repeat right -100% top 0;
	background-size: 200% 100%;
}

.app-header h1 a:hover {
	background-position: left 0 top 0;
	transform: scale(0.97);
}

.app-header h1 a:active {
	transform: scale(0.94);
	background-color: rgba(255,255,255,0.15);
}

/* Eski hover çizgisini kaldır */
.app-header h1 a::after {
	display: none;
}

/* Hoş geldin ekranı */
.welcome-container {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	text-align: center;
	padding-top: var(--header-height); /* Header için alan bırak */
}

.welcome-content {
	max-width: 600px;
	width: 100%;
	background: white;
	padding: 40px;
	border-radius: 24px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	margin-top: calc(var(--header-height) * -0.5); /* Header'ı dengele */
}

.welcome-content h2 {
	font-size: 2.2rem;
	background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 15px;
}

.welcome-content p {
	color: #666;
	font-size: 1.1rem;
	margin-bottom: 35px;
}

.welcome-features {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 30px;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 12px;
	transition: transform 0.3s ease;
}

.feature-item:hover {
	transform: translateX(5px);
}

.feature-icon {
	font-size: 1.5rem;
}

.feature-text {
	font-size: 1rem;
	color: var(--text-color);
}

.welcome-button {
	background: var(--primary-color);
	color: white;
	border: none;
	padding: 15px 30px;
	border-radius: 12px;
	font-size: 1.1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 auto;
	transition: all 0.3s ease;
}

.welcome-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.welcome-button .arrow {
	transition: transform 0.3s ease;
}

.welcome-button:hover .arrow {
	transform: translateX(5px);
}

/* Footer'ı başlangıçta gizle */
.app-footer {
	display: none;
}

/* Çalışma modu aktif olduğunda footer'ı göster */
body:not(.mode-test) .app-footer.active {
	display: block;
}

/* Mobil cihazlar için özel düzenlemeler */
@media screen and (min-width: 768px) {
	.modal {
		align-items: center;
	}
	
	.modal-content {
		border-radius: 20px;
		margin: auto;
		transform: translateY(20px);
	}
	
	/* Desktop için farklı animasyon */
	@keyframes slideUp {
		from {
			transform: translateY(20px);
			opacity: 0;
		}
		to {
			transform: translateY(0);
			opacity: 1;
		}
	}
}

/* Mobil için ek düzenleme */
@media screen and (max-width: 768px) {
	.welcome-container {
		padding: 16px;
		min-height: calc(100vh - var(--header-height));
		display: flex;
		align-items: center;
	}
	
	.welcome-content {
		padding: 30px 20px;
		transform: translateY(-2vh);
	}
	
	.welcome-content h2 {
		font-size: 1.8rem;
		margin-bottom: 12px;
	}
	
	.welcome-content p {
		font-size: 1rem;
		margin-bottom: 25px;
	}
	
	.feature-item {
		padding: 12px;
	}
	
	.feature-text {
		font-size: 0.95rem;
	}
	
	.welcome-button {
		width: 100%;
		padding: 14px 20px;
	}
}

/* Modal blur efekti için */
body.modal-open > *:not(.modal):not(.welcome-container) {
	filter: blur(2px);
	transition: filter 0.3s ease;
	opacity: 0.8;
	pointer-events: none;
}

/* Modern toast notification */
.toast-container {
	position: fixed;
	top: calc(var(--header-height) + 20px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 2000;
	pointer-events: none;
}

.toast {
	background: #333;
	color: white;
	padding: 12px 24px;
	border-radius: 50px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	opacity: 0;
	transform: translateY(-20px);
	animation: toastSlideIn 0.3s ease forwards;
}

.toast.error {
	background: #dc3545;
}

.toast-icon {
	font-size: 1.2rem;
}

@keyframes toastSlideIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes toastSlideOut {
	to {
		opacity: 0;
		transform: translateY(-20px);
	}
}

.source-selection {
	margin-bottom: 15px;
}

.unit-selection {
	margin-bottom: 15px;
}

.unit-selection label {
	display: block;
	margin-bottom: 8px;
	color: var(--text-color);
	font-size: 0.9rem;
	font-weight: 500;
}

.unit-select {
	width: 100%;
	padding: 12px 15px;
	padding-right: 35px;
	border: 2px solid #e0e0e0;
	border-radius: 4px;
	background-color: #f8f9fa;
	color: var(--text-color);
	font-size: 1rem;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.unit-select:focus {
	outline: none;
	border-color: #2196F3;
	background-color: white;
}

.unit-select:hover {
	border-color: #2196F3;
	background-color: white;
}

.source-selection label {
	display: block;
	margin-bottom: 8px;
	color: var(--text-color);
	font-size: 0.9rem;
	font-weight: 500;
}

.select-wrapper {
	position: relative;
	width: 100%;
}

.select-arrow {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #666;
	font-size: 0.8rem;
	pointer-events: none;
	transition: transform 0.3s ease;
}

.source-select:focus + .select-arrow {
	transform: translateY(-50%) rotate(180deg);
}

.source-select {
	width: 100%;
	padding: 12px 15px;
	padding-right: 35px;
	border: 2px solid #e0e0e0;
	border-radius: 4px;
	background-color: #f8f9fa;
	color: var(--text-color);
	font-size: 1rem;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.source-select:focus {
	outline: none;
	border-color: #2196F3;
	background-color: white;
}

.source-select:hover {
	border-color: #2196F3;
	background-color: white;
}

/* ID aralığı input'ları ile aynı stil */
.source-select, .settings-input {
	height: 45px;
	border: 2px solid #e0e0e0;
	background-color: #f8f9fa;
	transition: all 0.3s ease;
}

.source-select:hover, .settings-input:hover {
	border-color: #2196F3;
	background-color: white;
}

.source-select:focus, .settings-input:focus {
	border-color: #2196F3;
	background-color: white;
	outline: none;
}

.range-inputs {
	margin-top: 20px;
}

/* Quiz seçenekleri için yeni stiller - mevcut kodun en sonuna eklenecek */
.quiz-options {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #eee;
	margin-bottom: 20px;
}

.quiz-input-group {
	display: flex;
	align-items: center;
	gap: 15px;
}

.quiz-input-group label {
	flex: 0 0 auto;
	font-size: 0.9rem;
	color: var(--text-color);
}

.quiz-input-group .input-wrapper {
	flex: 1;
}

.quiz-options .settings-input {
	text-align: center;
}

/* Quiz sonuç modalı için stiller - en sona eklenecek */
.result-modal {
	max-width: 400px;
}

.result-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin: 20px 0;
}

.result-stat {
	background: #f8f9fa;
	padding: 15px;
	border-radius: 12px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

.result-icon {
	font-size: 1.5rem;
}

.result-label {
	font-size: 0.85rem;
	color: #666;
}

.result-value {
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--text-color);
}

.result-message {
	text-align: center;
	margin: 25px 0;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 12px;
}

.result-emoji {
	font-size: 3rem;
	display: block;
	margin-bottom: 15px;
}

.result-text {
	font-size: 1.1rem;
	color: var(--text-color);
	line-height: 1.4;
}

#finalScore {
	color: var(--primary-color);
}

/* Modal kapalıyken normal duruma dön */
body:not(.modal-open) > * {
	filter: none !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	transition: all 0.3s ease;
}

/* Quiz input alanı için özel stil */
.quiz-input-group .settings-input {
	width: 80px;
	min-width: 80px;
}

/* Quiz seçenekleri için stil düzeltmeleri - en sona eklenecek */
.options-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	width: 100%;
	margin-top: 20px;
	margin-bottom: 100px;
}

.option-btn {
	background: white;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	padding: 15px;
	font-size: 1.1rem;
	color: var(--text-color);
	cursor: pointer;
	transition: all 0.3s ease;
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	word-break: break-word;
}

.option-btn:hover {
	border-color: var(--primary-color);
	background: #f8f9fa;
	transform: translateY(-2px);
}

.option-btn.correct {
	background: #e8f5e9;
	border-color: #4caf50;
	color: #2e7d32;
}

.option-btn.wrong {
	background: #ffebee;
	border-color: #f44336;
	color: #c62828;
}

/* Mobil cihazlar için düzenleme */
@media screen and (max-width: 480px) {
	.options-container {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	
	.option-btn {
		font-size: 1rem;
		padding: 12px;
		min-height: 50px;
	}
}



/* Navigation butonları için düzeltme */
.navigation-controls {
	display: flex !important;
	justify-content: center;
	gap: 20px;
	padding: 10px 0;
}


/* Footer pozisyon düzeltmesi */
.app-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: white;
	z-index: 100;
}

/* Navigation kontrollerinin pozisyonunu düzelt */
.navigation-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	height: 100%;
	padding: 10px 0;
}

/* Mobil cihazlar için düzenleme */
@media screen and (max-width: 480px) {
	.test-stat {
		padding: 8px;
		font-size: 0.8rem;
		max-width: 80px;
	}
}

.options-container {
	margin-bottom: 100px; /* Şıkların altına boşluk ekler */
}

@media screen and (max-width: 480px) {
	.test-stats-container {
		bottom: 20px;
	}
	
	.options-container {
		margin-bottom: 80px; /* Mobilde daha az boşluk */
	}
}

/* Mobil düzenlemeler */
@media screen and (max-width: 480px) {
    .test-stats-container {
        padding: 12px 20px;
        gap: 12px;
        bottom: 20px;
    }
    
    .test-stat {
        padding: 6px 8px;
    }
    
    .test-stat-value {
        font-size: 1.2rem;
    }
}

/* Quiz sayaçları için minimal tasarım - en sona eklenecek */
.test-stats-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    justify-content: center;
    gap: 15px;
    padding: 15px 25px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 90;
    max-width: 340px;
}

.test-stat {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    background: white;
    border-radius: 12px;
    min-width: 70px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.test-stat-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

.test-stat-value {
    font-size: 1.3rem;
    font-weight: 600;
    display: block;
}

/* Sayaç değerleri için renkler */
#correctCount {
    color: #4CAF50; /* Yeşil */
}

#wrongCount {
    color: #f44336; /* Kırmızı */
}

#scoreCount {
    color: var(--primary-color); /* Mavi */
}

/* Quiz modu görünürlük kontrolü */
.mode-test .test-stats-container {
    display: flex !important;
}

/* Mobil düzenlemeler */
@media screen and (max-width: 480px) {
    .test-stats-container {
        padding: 12px 20px;
        gap: 12px;
        bottom: 20px;
    }
    
    .test-stat {
        padding: 6px 8px;
    }
    
    .test-stat-value {
        font-size: 1.2rem;
    }
}

.about-logo {
    max-width: 100%; /* Kutunun genişliğine göre otomatik ayar */
    height: auto;    /* Yüksekliği otomatik ayarla */
    display: block;  /* Altındaki metinle düzgün hizalanması için */
    margin: 0 auto;  /* Ortalamak için */
}

/* Sepet Stilleri */
.basket-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f44336;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
    z-index: 11; /* Header'ın z-index'inden büyük olmalı */
}

.basket-modal {
    max-width: 500px;
    width: 90%;
}

.basket-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
}

.basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.basket-item:last-child {
    margin-bottom: 0;
}

.basket-word {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    margin-right: 10px;
}

.word-en {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.word-tr {
    color: #666;
    font-size: 0.95rem;
}

.remove-word {
    background: none;
    border: none;
    color: #f44336;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove-word:hover {
    background: #ffebee;
    color: #d32f2f;
}

.basket-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.basket-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#clearBasket {
    background: #ffebee;
    color: #f44336;
}

#clearBasket:hover {
    background: #ffcdd2;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

#studyBasket {
    background: var(--primary-color);
    color: white;
}

#studyBasket:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.basket-actions button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Mobil için düzenlemeler */
@media screen and (max-width: 480px) {
    .basket-actions {
        flex-direction: column;
    }
    
    .basket-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Sepete Ekle Butonu */
.add-to-basket {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #2196F3;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.add-to-basket:hover {
    color: #1976D2;
    transform: translateY(-50%) scale(1.1);
}

.add-to-basket svg {
    width: 24px;
    height: 24px;
}

/* Kelime Gösterim Alanı için Pozisyon */
.word-container {
    position: relative;
}

/* Sepet sayacı için düzeltme */
#basketBtn {
    position: relative;
}

.basket-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #f44336;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
    z-index: 11;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.offline-banner {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	background: #ff5252;
	color: #fff;
	text-align: center;
	padding: 14px 0;
	font-size: 1.1rem;
	font-weight: 500;
	z-index: 2000;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	letter-spacing: 0.5px;
	animation: slideDown 0.4s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideDown {
	from { transform: translateY(-100%); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.add-to-basket-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 0 auto;
  padding: 12px;
  background: #2196f3;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 8px rgba(33,150,243,0.10);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  outline: none;
  position: relative;
  z-index: 10;
}
.add-to-basket-compact svg {
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  transition: stroke 0.2s;
}
.add-to-basket-compact:hover, .add-to-basket-compact:focus {
  background: #1769aa;
  box-shadow: 0 4px 16px rgba(33,150,243,0.18);
  transform: translateY(-2px) scale(1.04);
}
.add-to-basket-compact:active {
  background: #0d47a1;
}

/* Sepetten Çıkar Butonu */
.remove-from-basket-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 0 auto;
  padding: 12px;
  background: #f44336;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 8px rgba(244,67,54,0.10);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  outline: none;
  position: relative;
  z-index: 10;
}

.remove-from-basket-compact svg {
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  transition: stroke 0.2s;
}

.remove-from-basket-compact:hover, .remove-from-basket-compact:focus {
  background: #d32f2f;
  box-shadow: 0 4px 16px rgba(244,67,54,0.18);
  transform: translateY(-2px) scale(1.04);
}

.remove-from-basket-compact:active {
  background: #b71c1c;
}