/* ---------- Değişkenler ---------- */
:root {
	--font-ailesi: "Outfit", sans-serif;
	--font-boyutu: 20px;
}




/* ---------- Temel ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: #ffffff;
	margin: 0px;
	color: #0B1014;
	font-family: var(--font-ailesi);
	font-size: var(--font-boyutu);
}

main {
	min-height: 100vh;
}

button,
select,
form,
input {
	font-family: var(--font-ailesi);
	font-size: var(--font-boyutu);
}

section {
	margin: 0px;
	padding: 0px;
	display: flow-root;
}

p,
ul,
ol,
dl {
	font-weight: 400;
	line-height: 1.5;
	margin-block-start: 0;
	margin-block-end: 1em;
	font-family: var(--font-ailesi);
	font-size: var(--font-boyutu);
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child {
	margin-block-end: 0;
	text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block-start: 1em;
	margin-block-end: 0.5em;
	font-weight: 400;
	color: #3F46CF;
	text-wrap: balance;
	font-family: var(--font-ailesi);
}

h1 {
	font-size: 52px;
	line-height: 1.3;
	margin-top: 0;
}

h2 {
	font-size: 44px;
	line-height: 1.3;
}

h3 {
	font-size: 36px;
	line-height: 1.3;
}

h4 {
	font-size: 32px;
	line-height: 1.3;
}

h5 {
	font-size: 24px;
	line-height: 1.3;
}

h6 {
	font-size: 18px;
	line-height: 1.3;
}

a {
	color: #0B1014;
}

a:hover {
	color: #3F46CF;
}

a:link {
	text-decoration: none;
}

:focus {
	outline: 0;
	background: none;
}

@media only screen and (max-width: 1000px) {
	h1 {
		font-size: 38px;
	}

	h2 {
		font-size: 32px;
	}
}









.kapsayici {
	width: 100%;
	max-width: 640px;
	padding: 0px 10px;
	margin-right: auto;
	margin-left: auto;
}





/* ---------- nav ---------- */
.nav {
	display: grid;
	grid-template-columns: 1fr 640px 1fr;
	padding: 10px 20px;
	gap: 30px;
	background: #0B1014;
	background: linear-gradient(90deg, rgba(40, 41, 176, 0.9) 0%, rgba(109, 74, 162, 0.9) 35%, rgba(109, 74, 162, 0.9) 70%, rgba(63, 70, 207, 0.9) 100%);
	margin-bottom: 60px;
	position: sticky;
	top: 0;
	z-index: 9999;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.nav .nav-sol {
	display: inline-flex;
	align-items: center;
}

.nav .nav-sol .logo {
	display: inline-flex;
	gap: 15px;
	align-items: center;
	font-size: 20px;
	color: #ffffff;
}

.nav .nav-sol .logo img {
	width: 60px;
	height: auto;
}


.nav .nav-orta {
	padding: 0px 10px;
	display: inline-flex;
	align-items: center;
}

.nav .nav-orta form {
	position: relative;
	width: 100%;
}

.nav .nav-orta form input {
	width: 100%;
	border: none;
	background: #f8f9fa;
	padding: 10px 40px 10px 20px;
	border-radius: 30px;
	font-family: inherit;
	font-size: inherit;
	line-height: 32px;
	letter-spacing: 0.2px;
	color: #3F46CF;
	resize: none;
	transition: all 0.3s;
	border: 0px solid rgba(138, 102, 193, 0);
}

.nav .nav-orta form input::placeholder {
	color: rgba(63, 70, 207, 0.8);
	transition: all 0.3s;

}

.nav .nav-orta form input:focus {
	border: 0px solid #3F46CF;
}

.nav .nav-orta form input:focus::placeholder {
	color: #3F46CF;
}

.nav .nav-orta form button {
	position: absolute;
	right: 5px;
	margin: 0;
	border: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
	outline: none;
	height: 100%;
	aspect-ratio: 1/1;
	width: auto;
	background: transparent;
	border-radius: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.nav .nav-orta form button.clear {
	right: 40px;
}

.nav .nav-orta form button svg {
	width: 24px;
	height: auto;
}

.nav .nav-orta form button:hover {
	transform: scale(1.2);
}

.nav .nav-orta .dropdown-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: 70svh;
	overflow-y: auto;
	z-index: 1000;
	display: none;
	flex-direction: column;

	background: #f8f9fa;
	border: 1px solid #dbe0e6;
	box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.10);
	border-radius: 0px 0px 15px 15px;
}

.nav .nav-orta .dropdown-results a,
.nav .nav-orta .dropdown-results .no-result {
	padding: 13px 20px;
	border-bottom: 1px solid #dbe0e6;
	font-size: 18px;
	text-wrap: balance;
}

.nav .nav-orta .dropdown-results a:last-child {
	border-bottom: 0px solid #dbe0e6;
}

.nav .nav-orta .dropdown-results a:hover {
	background: #dbe0e6;
}

.active-dropdown #liveSearch {
	border-right: 1px solid #dbe0e6;
	border-left: 1px solid #dbe0e6;
	border-bottom: 0px solid #dbe0e6;
	border-top: 1px solid #dbe0e6;
	border-radius: 15px 15px 0px 0px;
}

.overlay {
	display: none;
}

.active-dropdown .overlay {
	display: block;
	position: fixed;
	top: 0px;
	left: 0;
	right: 0;
	width: 100%;
	height: 100vh;
	z-index: -1;

	background: linear-gradient(90deg, rgba(40, 41, 176, 1) 0%, rgba(109, 74, 162, 1) 35%, rgba(109, 74, 162, 1) 70%, rgba(63, 70, 207, 1) 100%);
	opacity: 0.10;
}

body.active-dropdown {
	overflow: hidden;
}


.nav .nav-sag {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	color: #ffffff;
}

.nav .nav-sag svg {
	width: 32px;
	height: auto;
}

.nav .nav-sag .lang-dropdown {
	position: relative;
	display: inline-block;
}

.nav .nav-sag .lang-dropdown button {
	all: unset;
	display: flex;
	align-items: center;
	cursor: pointer;
	background: transparent;
	border: 0px solid #ccc;
	padding: 10px 0 10px 10px;
	border-radius: 0px;
	font-family: inherit;
	transition: background 0.2s;
	position: relative;
}

.nav .nav-sag .lang-dropdown button .bayrak {
	position: absolute;
	right: -2px;
	top: 8px;
	width: 16px;
	height: auto;
}

.nav .nav-sag .lang-dropdown-menu {
	position: absolute;
	top: 110%;
	right: 0;
	left: auto;
	background: #fff;
	min-width: 180px;
	border: 1px solid #dbe0e6;
	box-shadow: 0 0px 10px rgba(0, 0, 0, 0.10);
	border-radius: 6px;
	overflow: hidden;

	opacity: 0;
	transform: translateY(-10px);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav .nav-sag .lang-dropdown-menu a.active {
	background: #dbe0e6;
}

.nav .nav-sag .lang-dropdown-menu.show {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.nav .nav-sag .lang-dropdown-menu a {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 15px;
	border-bottom: 1px solid #dbe0e6;
	transition: background 0.2s;
}

.nav .nav-sag .lang-dropdown-menu a:last-child {
	border-bottom: 0px solid #dbe0e6;
}

.nav .nav-sag .lang-dropdown-menu a:hover {
	background: #dbe0e6;
}

.nav .nav-sag .lang-dropdown-menu a img {
	width: 20px;
	height: auto;
}

@media only screen and (max-width: 1000px) {
	.nav {
		grid-template-columns: 32px 1fr 32px;
		gap: 10px;
		padding: 10px 10px;
		margin-bottom: 30px;
	}

	.nav .nav-sol .logo img {
		width: 32px;
		height: auto;
	}

	.nav .nav-sol .logo .logo-yazi {
		display: none;
	}

	.nav .nav-orta {
		padding: 0;
	}

	.nav .nav-orta form input {
		padding: 5px 40px 5px 15px;
	}

	.active-dropdown .nav .nav-orta form input {
		padding: 10px 90px 10px 15px;
	}

	.nav .nav-orta form button {
		right: 0px;
	}

	.nav .nav-orta .dropdown-results a,
	.nav .nav-orta .dropdown-results .no-result {
		padding: 12px 15px;
		font-size: 18px;
	}

	.active-dropdown .nav .nav-orta {
		position: fixed;
		width: 100%;
		padding: 15px 10px !important;
		z-index: 111;
	}
}









/* ---------- kart ---------- */
.kartlar {
	display: flex;
	flex-direction: column;
}

.kartlar .kart a {
	border-bottom: 1px solid #dbe0e6;
	transition: all 0.3s;
	padding: 20px 5px;
	display: grid;
	grid-template-columns: 1fr 24px;
	align-items: center;
	gap: 20px;
	text-wrap: balance;
	background: #ffffff;
	transition: all 0.3s;
}

.kartlar .kart:first-child a {
	border-top: 1px solid #dbe0e6;
}

.kartlar .kart a:hover {
	padding-right: 0;
	background: #dbe0e6;
}

@media only screen and (max-width: 1000px) {
	.kartlar .kart a {
		padding: 15px 5px;
	}
}









/* ---------- footer ---------- */
footer {
	background: linear-gradient(90deg, rgba(40, 41, 176, 1) 0%, rgba(109, 74, 162, 1) 35%, rgba(109, 74, 162, 1) 70%, rgba(63, 70, 207, 1) 100%);
	margin-top: 60px;
	text-align: center;
	padding: 40px 10px;
	color: #ffffff;
}

footer .logo img {
	width: 60px;
}

@media only screen and (max-width: 1000px) {
	footer .logo img {
		width: 32px;
	}
}









/* ---------- 404.php ---------- */
.dort {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 100px;
}

.dort h1 {
	font-size: 120px;
	margin: 0;
}

.dort h2 {
	margin: 0 0 20px 0;
}

.dort a {
	background: #2829B0;
	color: #ffffff;
	padding: 15px 30px;
	border-radius: 40px;
	transition: all 0.3s;
}

.dort a:hover {
	background: #6D4AA2;
}









/* ---------- story-image.php ---------- */
.story {
	margin: 50px 0 30px 0;
	display: flex;
	gap: 30px;
	flex-direction: column;
}

.story .story-download-btn {
	all: unset;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	cursor: pointer;
	background: #2829B0;
	color: #ffffff;
	border: 0px solid #ccc;
	padding: 20px 20px;
	border-radius: 5px;
	font-family: inherit;
	transition: all 0.3s;
}

.story .story-download-btn:hover {
	background: #6D4AA2;
}

.story .preview-area img {
	border-radius: 5px;
}

.story .preview-area {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.story .preview-area a {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #2829B0;
	color: #ffffff;
	padding: 15px 30px;
	border-radius: 50px;
	margin-top: 20px;
	transition: all 0.3s;
}

.story .preview-area a:hover {
	background: #6D4AA2;
}





/* Tema butonları */
.theme-buttons {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	align-items: center;
}

.theme-buttons.hidden {
	display: none;
}

.theme-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 0px solid #ddd;
	background: #fff;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	transition: all 0.2s;
}

.theme-btn.active {
	transform: scale(1.1);
}

.theme-btn:hover {
	transform: scale(1.1);
}

.theme-default {
	background: url('/imaj/story-background-2.webp') bottom center / cover no-repeat;
	color: #ffffff;
}

.theme-neonblue {
	background: linear-gradient(180deg, #00F5D4 0%, #0077B6 100%);
	color: #FFF94F;
}

.theme-sunset {
	background: linear-gradient(180deg, #FF9A3D 0%, #FF006E 100%);
	color: #0A2540;
}

.theme-emerald {
	background: linear-gradient(180deg, #00E676 0%, #00BFA6 100%);
	color: #FFFFFF;
}

.theme-crimson {
	background: linear-gradient(180deg, #B00020 0%, #4A0E4E 100%);
	color: #FFEB3B;
}

.theme-cyber {
	background: linear-gradient(180deg, #4B00E0 0%, #8E2DE2 100%);
	color: #B9FF66;
}

.theme-goldnoir {
	background: linear-gradient(180deg, #0A0A0A 0%, #2C2C2C 100%);
	color: #FFD700;
}

.theme-buttons span {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ffffff;
}



.preview-area.hidden {
	display: none;
}

.preview-area img {
	width: 100%;
	opacity: 0;
	filter: blur(10px);
	transition: opacity 1s ease, filter 1s ease;
}

.preview-area img.visible {
	opacity: 1;
	filter: blur(0);
}






/* Story canvas temel */
.story-canvas {
	width: 1080px;
	height: 1920px;
	padding: 200px 100px;
	box-sizing: border-box;
	position: absolute;
	left: -999999px;
	display: flex;
	flex-direction: column;
	justify-content: start;
	align-items: start;
	color: #ffffff;
}

.story-logo svg {
	width: 160px;
	height: auto;
	margin-bottom: 80px;
}

.story-canvas .story-title {
	font-size: 80px;
	font-weight: 600;
	margin: 0 0 40px 0;
	line-height: 1.3;
}

.story-canvas .story-description {
	font-size: 50px;
}

.story-canvas .story-site {
	font-size: 50px;
	margin-top: 50px;
}



/* Temalar */
.story-canvas.theme-default {
	color: #ffffff;
	background: url('/imaj/story-background-2.webp') center / cover no-repeat;
}

.story-canvas.theme-neonblue {
	background: linear-gradient(180deg, #00F5D4 0%, #0077B6 100%);
	color: #FFF94F;
}

.story-canvas.theme-sunset {
	background: linear-gradient(180deg, #FF9A3D 0%, #FF006E 100%);
	color: #0A2540;
}

.story-canvas.theme-emerald {
	background: linear-gradient(180deg, #00E676 0%, #00BFA6 100%);
	color: #FFFFFF;
}

.story-canvas.theme-crimson {
	background: linear-gradient(180deg, #B00020 0%, #4A0E4E 100%);
	color: #FFEB3B;
}

.story-canvas.theme-cyber {
	background: linear-gradient(180deg, #4B00E0 0%, #8E2DE2 100%);
	color: #B9FF66;
}

.story-canvas.theme-goldnoir {
	background: linear-gradient(180deg, #0A0A0A 0%, #2C2C2C 100%);
	color: #FFD700;
}