/* Kalistack — Tahta Girişi 2 (ith-)
 *
 * Metin solda, tahta sağda ve hafif eğik. Tahtaya cümleler tebeşirle
 * yazılıyormuş gibi gelir. İlk tahta widget'ıyla aynı renk ailesinden
 * ama düzeni, ölçüsü ve davranışı ayrıdır.
 */

.ith-kap {
	--ith-gece: #1B2447;
	--ith-tahta: #243056;
	--ith-ahsap: #9A6B3F;
	--ith-sari: #FBBF24;
	--ith-kirmizi: #EF4444;
	--ith-tebesir: rgba(255, 255, 255, .92);
	--ith-tebesir-sus: rgba(255, 255, 255, .6);
	--ith-murekkep: #16233E;
	--ith-sus: #55607A;
	--ith-cizgi: #E6E3DA;
	--ith-elyazi: "Caveat", "Segoe Script", "Bradley Hand", cursive;
	--ith-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
	position: relative;
	overflow: hidden;
	background: #FBF7EF;
}

.ith-kap--gece { background: var(--ith-gece); }

.ith {
	position: relative;
	z-index: 1;
	max-width: 1160px;
	margin: 0 auto;
}

.ith-duzen {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}

/* ------------------------------------------------------- sol sütun */

.ith-etiket {
	margin: 0 0 14px;
	font-family: var(--ith-elyazi);
	font-size: 24px;
	font-weight: 500;
	color: var(--ith-kirmizi);
}

.ith-kap--gece .ith-etiket { color: var(--ith-sari); }

.ith-bas {
	margin: 0 0 18px;
	font-family: var(--ith-serif);
	font-size: clamp(28px, 3.8vw, 44px);
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -.022em;
	color: var(--ith-murekkep);
}

.ith-kap--gece .ith-bas { color: #FFFFFF; }

.ith-elyazi {
	font-family: var(--ith-elyazi);
	font-size: 1.32em;
	font-weight: 700;
	line-height: .9;
	color: var(--ith-kirmizi);
}

.ith-kap--gece .ith-elyazi { color: var(--ith-sari); }

.ith-metin {
	margin: 0 0 12px;
	max-width: 52ch;
	font-size: 16px;
	line-height: 1.76;
	color: var(--ith-sus);
}

.ith-kap--gece .ith-metin { color: rgba(255, 255, 255, .72); }

.ith-btnler {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.ith-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 26px;
	border: 2px solid var(--ith-sari);
	border-radius: 8px;
	background: var(--ith-sari);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: #23180B;
	text-decoration: none;
	transition: transform .18s cubic-bezier(.22, .8, .3, 1), box-shadow .18s ease;
}

.ith-btn:hover,
.ith-btn:focus-visible {
	color: #23180B;
	transform: translateY(-2px);
	box-shadow: 0 14px 26px -14px rgba(251, 191, 36, .95);
}

.ith-btn--cizgi {
	background: transparent;
	border-style: dashed;
	border-color: rgba(22, 35, 62, .3);
	color: var(--ith-murekkep);
}

.ith-btn--cizgi:hover,
.ith-btn--cizgi:focus-visible {
	color: var(--ith-murekkep);
	background: rgba(22, 35, 62, .04);
	border-color: var(--ith-murekkep);
	box-shadow: none;
}

.ith-kap--gece .ith-btn--cizgi {
	border-color: rgba(255, 255, 255, .5);
	color: #FFFFFF;
}

.ith-kap--gece .ith-btn--cizgi:hover,
.ith-kap--gece .ith-btn--cizgi:focus-visible {
	color: #FFFFFF;
	background: rgba(255, 255, 255, .08);
	border-color: #FFFFFF;
}

.ith-bilgiler {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 32px;
	margin: 32px 0 0;
	padding: 22px 0 0;
	border-top: 1px dashed var(--ith-cizgi);
	list-style: none;
}

.ith-kap--gece .ith-bilgiler { border-top-color: rgba(255, 255, 255, .2); }

.ith-bilgi-deger {
	display: block;
	font-family: var(--ith-serif);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ith-murekkep);
}

.ith-kap--gece .ith-bilgi-deger { color: var(--ith-sari); }

.ith-bilgi-ad {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	color: var(--ith-sus);
}

.ith-kap--gece .ith-bilgi-ad { color: rgba(255, 255, 255, .6); }

/* ---------------------------------------------------------- tahta */

.ith-tahta-sar {
	--ith-egim: 2;
	transform: rotate(calc(var(--ith-egim) * -1deg));
}

.ith-tahta {
	padding: 12px;
	border-radius: 6px;
	background:
		repeating-linear-gradient(180deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 7px),
		linear-gradient(180deg, #B07E4C 0%, var(--ith-ahsap) 45%, #7E5430 100%);
	box-shadow: 0 2px 0 rgba(0, 0, 0, .3), 0 30px 56px -30px rgba(0, 0, 0, .55);
}

.ith-tahta-ic {
	position: relative;
	min-height: 240px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 34px 30px;
	border-radius: 3px;
	background: var(--ith-tahta);
	box-shadow: inset 0 0 60px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .06);
	text-align: center;
}

.ith-tahta-ust {
	margin: 0 0 16px;
	font-family: var(--ith-elyazi);
	font-size: 22px;
	color: var(--ith-tebesir-sus);
}

/* Sabit yükseklik: cümle değişince tahta zıplamasın. */
.ith-yaz {
	margin: 0;
	min-height: 3.9em;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ith-elyazi);
	font-size: clamp(26px, 3.2vw, 36px);
	font-weight: 700;
	line-height: 1.3;
	color: var(--ith-tebesir);
}

.ith-imlec {
	display: inline-block;
	width: 2px;
	height: 1.02em;
	margin-left: 4px;
	background: var(--ith-sari);
	vertical-align: -.14em;
	opacity: 0;
}

/* İmleç yalnızca yazma sürerken görünür; sınıfı JS ekler. */
.ith-yaz--calisiyor .ith-imlec {
	opacity: 1;
	animation: ith-yanip 1s steps(1) infinite;
}

@keyframes ith-yanip {
	0%, 55%   { opacity: 1; }
	56%, 100% { opacity: 0; }
}

.ith-tahta-alt {
	margin: 16px 0 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--ith-tebesir-sus);
}

.ith-raf {
	position: relative;
	height: 16px;
	margin: 0 22px;
	border-radius: 0 0 6px 6px;
	background: linear-gradient(180deg, #C08A55 0%, #8A5D34 100%);
	box-shadow: 0 10px 16px -12px rgba(0, 0, 0, .7);
}

.ith-tebesir,
.ith-silgi {
	position: absolute;
	top: 4px;
	height: 6px;
	border-radius: 3px;
}

.ith-tebesir--1 { left: 14%; width: 38px; background: rgba(255, 255, 255, .9); }
.ith-tebesir--2 { left: 24%; width: 28px; background: var(--ith-sari); }

.ith-silgi {
	right: 16%;
	top: 2px;
	width: 46px;
	height: 9px;
	border-radius: 2px;
	background: linear-gradient(180deg, #64748B 0 55%, #3F4A5F 55% 100%);
}

/* ------------------------------------------------------ duyarlılık */

@media ( max-width: 1024px ) {
	.ith-duzen { grid-template-columns: minmax(0, 1fr); gap: 42px; }
	.ith-tahta-sar { --ith-egim: 1; max-width: 560px; margin: 0 auto; }
}

@media ( max-width: 767px ) {
	.ith-tahta-sar { --ith-egim: 0; }
	.ith-tahta { padding: 9px; }
	.ith-tahta-ic { min-height: 200px; padding: 26px 18px; }
	.ith-btnler { flex-direction: column; align-items: stretch; }
	.ith-btn { width: 100%; }
	.ith-bilgiler { gap: 14px 22px; }
}

/* Hareket istenmiyorsa yazma hiç başlamaz; ilk cümle sabit durur. */
@media ( prefers-reduced-motion: reduce ) {
	.ith-imlec { display: none; }
	.ith-kap *,
	.ith-kap *::before,
	.ith-kap *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
}
