/**
 * Geometri Kavramları
 * Frontend styles.
 */

.gk-app {
	--gk-primary: #2563eb;
	--gk-primary-dark: #1d4ed8;
	--gk-secondary: #7c3aed;
	--gk-text: #172033;
	--gk-muted: #64748b;
	--gk-border: #dbe4f0;
	--gk-bg: #f6f8fc;
	--gk-white: #ffffff;
	--gk-green: #059669;
	--gk-orange: #ea580c;
	--gk-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);

	width: 100%;
	max-width: 1180px;
	margin: 30px auto;

	font-family:
		Inter,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Arial,
		sans-serif;

	color: var(--gk-text);

	box-sizing: border-box;
}

.gk-app *,
.gk-app *::before,
.gk-app *::after {
	box-sizing: border-box;
}

/* =========================================================
 * SEKME ALANI
 * ========================================================= */

.gk-tabs-wrapper {
	width: 100%;
	margin-bottom: 18px;

	overflow: hidden;

	border: 1px solid var(--gk-border);
	border-radius: 18px;

	background: #ffffff;

	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.gk-tabs {
	display: flex;
	align-items: stretch;

	gap: 7px;

	width: 100%;

	padding: 10px;

	overflow-x: auto;

	scrollbar-width: thin;
	scroll-behavior: smooth;
}

.gk-tabs::-webkit-scrollbar {
	height: 5px;
}

.gk-tabs::-webkit-scrollbar-thumb {
	border-radius: 10px;
	background: #cbd5e1;
}

/*
 * Tema müdahalelerine karşı özellikle güçlü tanımlar.
 */
.gk-app .gk-tabs .gk-tab,
.gk-app .gk-tabs button.gk-tab {
	flex: 0 0 auto;

	min-height: 48px;

	margin: 0 !important;
	padding: 10px 17px !important;

	border: 0 !important;
	border-radius: 12px !important;

	background: #f1f5f9 !important;
	background-image: none !important;

	color: #334155 !important;
	-webkit-text-fill-color: #334155 !important;

	font-family: inherit !important;
	font-size: 14px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;

	text-decoration: none !important;
	text-shadow: none !important;

	opacity: 1 !important;

	cursor: pointer;

	box-shadow: none !important;

	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.gk-app .gk-tabs .gk-tab:hover,
.gk-app .gk-tabs .gk-tab:focus,
.gk-app .gk-tabs .gk-tab:active {
	background: #e2e8f0 !important;

	color: #0f172a !important;
	-webkit-text-fill-color: #0f172a !important;

	transform: translateY(-1px);
}

/*
 * Aktif sekme.
 */
.gk-app .gk-tabs .gk-tab.is-active,
.gk-app .gk-tabs .gk-tab.is-active:hover,
.gk-app .gk-tabs .gk-tab.is-active:focus,
.gk-app .gk-tabs .gk-tab.is-active:active {
	background: linear-gradient(
		135deg,
		#2563eb,
		#7c3aed
	) !important;

	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;

	box-shadow:
		0 8px 22px rgba(37, 99, 235, 0.23) !important;
}

.gk-app .gk-tab:focus-visible,
.gk-app .gk-change-button:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.25) !important;
	outline-offset: 3px;
}

/* =========================================================
 * ANA KART
 * ========================================================= */

.gk-content {
	width: 100%;
}

.gk-concept-card {
	position: relative;

	overflow: hidden;

	padding: 30px;

	border: 1px solid var(--gk-border);
	border-radius: 24px;

	background:
		radial-gradient(
			circle at top right,
			rgba(124, 58, 237, 0.07),
			transparent 32%
		),
		#ffffff;

	box-shadow: var(--gk-shadow);

	animation: gkFadeIn 0.28s ease;
}

/* =========================================================
 * BAŞLIK
 * ========================================================= */

.gk-concept-header {
	margin-bottom: 24px;

	text-align: center;
}

.gk-concept-kicker {
	display: inline-flex;
	align-items: center;

	margin-bottom: 8px;
	padding: 5px 11px;

	border-radius: 999px;

	background: rgba(37, 99, 235, 0.09);

	color: #2563eb;

	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;

	text-transform: uppercase;
}

.gk-concept-title {
	margin: 0 !important;

	color: #111827 !important;

	font-size: clamp(26px, 3vw, 38px) !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
}

/* =========================================================
 * ANA YERLEŞİM
 * ========================================================= */

.gk-main-grid {
	display: grid;

	grid-template-columns:
		minmax(0, 1.15fr)
		minmax(0, 0.85fr);

	gap: 24px;

	align-items: stretch;
}

/* =========================================================
 * GÖRSEL ALANI
 * ========================================================= */

.gk-visual-column {
	display: flex;
	flex-direction: column;
}

.gk-visual-box {
	display: flex;

	align-items: center;
	justify-content: center;

	min-height: 370px;

	padding: 20px;

	overflow: hidden;

	border: 1px solid #dbeafe;
	border-radius: 20px;

	background:
		linear-gradient(
			180deg,
			#f8fbff 0%,
			#eff6ff 100%
		);
}

.gk-svg {
	display: block;

	width: 100%;
	max-width: 650px;

	height: auto;
	max-height: 360px;
}

/* =========================================================
 * SVG
 * ========================================================= */

.gk-svg-line,
.gk-svg-radius,
.gk-svg-diameter {
	fill: none;

	stroke: #2563eb;

	stroke-width: 5;
	stroke-linecap: round;
}

.gk-svg-radius {
	stroke: #059669;

	stroke-width: 5;
}

.gk-svg-diameter {
	stroke: #ea580c;

	stroke-width: 4;
}

.gk-svg-point {
	fill: #111827;
}

.gk-svg-point-large {
	fill: #7c3aed;
}

.gk-svg-label {
	fill: #172033;

	font-size: 24px;
	font-weight: 800;
}

.gk-svg-label-large {
	font-size: 30px;
}

.gk-svg-line-name {
	fill: #7c3aed;

	font-size: 27px;
	font-style: italic;
	font-weight: 800;
}

.gk-svg-helper-label {
	fill: #475569;

	font-size: 18px;
	font-weight: 700;
}

.gk-svg-circle {
	fill: none;

	stroke: #2563eb;

	stroke-width: 6;
}

.gk-svg-circle-fill {
	fill: rgba(37, 99, 235, 0.07);

	stroke: none;
}

.gk-svg-symbol-center {
	fill: #7c3aed;

	font-size: 40px;
	font-weight: 900;

	text-anchor: middle;
}

.gk-svg-right-angle {
	fill: none;

	stroke: #ea580c;

	stroke-width: 5;
}

.gk-svg-angle-label {
	fill: #ea580c;

	font-size: 22px;
	font-weight: 800;
}

.gk-svg-polygon {
	fill: rgba(37, 99, 235, 0.09);

	stroke: #2563eb;

	stroke-width: 5;
	stroke-linejoin: round;
}

.gk-svg-polygon-name {
	fill: #7c3aed;

	font-size: 27px;
	font-weight: 800;
}

.gk-svg marker path {
	fill: #2563eb;
}

/* =========================================================
 * MODEL SAYACI
 * ========================================================= */

.gk-model-counter {
	display: flex;

	justify-content: center;

	margin-top: 10px;

	color: #64748b;

	font-size: 13px;
	font-weight: 700;
}

/* =========================================================
 * AÇIKLAMA
 * ========================================================= */

.gk-description-column {
	display: flex;

	flex-direction: column;

	gap: 16px;
}

.gk-description-box {
	padding: 22px;

	border: 1px solid #e2e8f0;
	border-radius: 18px;

	background: #ffffff;
}

.gk-description-box h3 {
	margin: 0 0 10px !important;

	color: #1e293b !important;

	font-size: 19px !important;
	font-weight: 800 !important;
}

.gk-description-box p {
	margin: 0 !important;

	color: #475569 !important;

	font-size: 16px !important;
	line-height: 1.75 !important;
}

/* =========================================================
 * OKUNUŞ / SEMBOL
 * ========================================================= */

.gk-info-grid {
	display: grid;

	grid-template-columns: 1fr;

	gap: 12px;
}

.gk-info-card {
	position: relative;

	padding: 18px 20px;

	border: 1px solid #e2e8f0;
	border-radius: 16px;

	background: #f8fafc;
}

.gk-info-label {
	display: block;

	margin-bottom: 7px;

	color: #64748b !important;

	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.05em;

	text-transform: uppercase;
}

.gk-info-card strong {
	display: block;

	color: #172033 !important;

	font-size: 18px;
	font-weight: 800;
	line-height: 1.45;
}

.gk-info-card .gk-symbol {
	color: #2563eb !important;

	font-family:
		"Cambria Math",
		"Times New Roman",
		serif;

	font-size: 22px;
}

/* =========================================================
 * ÖRNEK
 * ========================================================= */

.gk-example-box {
	display: flex;

	align-items: center;

	gap: 16px;

	margin-top: 24px;
	padding: 20px 22px;

	border: 1px solid #fde68a;
	border-radius: 18px;

	background:
		linear-gradient(
			135deg,
			#fffbeb,
			#fff7ed
		);
}

.gk-example-icon {
	display: flex;

	flex: 0 0 44px;

	align-items: center;
	justify-content: center;

	width: 44px;
	height: 44px;

	border-radius: 50%;

	background: #f59e0b;

	color: #ffffff;

	font-size: 23px;
	font-weight: 900;
}

.gk-example-content {
	min-width: 0;
}

.gk-example-label {
	display: block;

	margin-bottom: 4px;

	color: #92400e !important;

	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.05em;

	text-transform: uppercase;
}

.gk-example-content p {
	margin: 0 !important;

	color: #78350f !important;

	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.6 !important;
}

/* =========================================================
 * DEĞİŞTİR BUTONU
 * ========================================================= */

.gk-actions {
	display: flex;

	justify-content: center;

	margin-top: 24px;
}

.gk-app .gk-change-button,
.gk-app button.gk-change-button {
	display: inline-flex;

	align-items: center;
	justify-content: center;

	gap: 9px;

	min-width: 160px;
	min-height: 50px;

	margin: 0 !important;
	padding: 12px 24px !important;

	border: 0 !important;
	border-radius: 14px !important;

	background: linear-gradient(
		135deg,
		#2563eb,
		#7c3aed
	) !important;

	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;

	font-family: inherit !important;
	font-size: 15px !important;
	font-style: normal !important;
	font-weight: 800 !important;

	text-decoration: none !important;
	text-shadow: none !important;

	opacity: 1 !important;

	cursor: pointer;

	box-shadow:
		0 10px 25px rgba(37, 99, 235, 0.24) !important;

	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		filter 0.2s ease;
}

.gk-app .gk-change-button:hover,
.gk-app .gk-change-button:focus,
.gk-app .gk-change-button:active {
	background: linear-gradient(
		135deg,
		#1d4ed8,
		#6d28d9
	) !important;

	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;

	transform: translateY(-2px);

	box-shadow:
		0 14px 30px rgba(37, 99, 235, 0.30) !important;
}

.gk-change-button:active {
	transform: translateY(0);
}

.gk-change-icon {
	font-size: 21px;

	line-height: 1;
}

/* =========================================================
 * PLACEHOLDER
 * ========================================================= */

.gk-placeholder {
	padding: 40px;

	border: 1px solid var(--gk-border);
	border-radius: 20px;

	background: #ffffff;

	text-align: center;
}

.gk-placeholder-title {
	margin-top: 0 !important;

	color: #172033 !important;
}

.gk-placeholder-description {
	color: #475569 !important;

	line-height: 1.7;
}

.gk-placeholder-notice {
	margin-top: 15px;

	color: #64748b;

	font-size: 13px;
}

/* =========================================================
 * ANİMASYON
 * ========================================================= */

@keyframes gkFadeIn {

	from {
		opacity: 0;
		transform: translateY(7px);
	}

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

.gk-visual-box.is-changing {
	animation: gkFadeIn 0.25s ease;
}

/* =========================================================
 * TABLET
 * ========================================================= */

@media (max-width: 900px) {

	.gk-concept-card {
		padding: 22px;
	}

	.gk-main-grid {
		grid-template-columns: 1fr;
	}

	.gk-visual-box {
		min-height: 320px;
	}

	.gk-description-column {
		display: grid;

		grid-template-columns: 1fr;
	}

	.gk-info-grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}
}

/* =========================================================
 * MOBİL
 * ========================================================= */

@media (max-width: 600px) {

	.gk-app {
		margin: 18px auto;
	}

	.gk-tabs-wrapper {
		border-radius: 14px;
	}

	.gk-tabs {
		padding: 8px;
	}

	.gk-app .gk-tabs .gk-tab,
	.gk-app .gk-tabs button.gk-tab {
		min-height: 43px;

		padding: 9px 13px !important;

		font-size: 13px !important;
	}

	.gk-concept-card {
		padding: 16px;

		border-radius: 18px;
	}

	.gk-concept-header {
		margin-bottom: 17px;
	}

	.gk-concept-title {
		font-size: 25px !important;
	}

	.gk-concept-kicker {
		font-size: 10px;
	}

	.gk-main-grid {
		gap: 16px;
	}

	.gk-visual-box {
		min-height: 245px;

		padding: 8px;

		border-radius: 15px;
	}

	.gk-svg {
		max-height: 260px;
	}

	.gk-description-box {
		padding: 17px;
	}

	.gk-description-box h3 {
		font-size: 17px !important;
	}

	.gk-description-box p {
		font-size: 14px !important;
	}

	.gk-info-grid {
		grid-template-columns: 1fr;
	}

	.gk-info-card {
		padding: 15px;
	}

	.gk-info-card strong {
		font-size: 16px;
	}

	.gk-info-card .gk-symbol {
		font-size: 20px;
	}

	.gk-example-box {
		align-items: flex-start;

		margin-top: 17px;
		padding: 16px;
	}

	.gk-example-icon {
		flex-basis: 36px;

		width: 36px;
		height: 36px;

		font-size: 18px;
	}

	.gk-example-content p {
		font-size: 14px !important;
	}

	.gk-actions {
		margin-top: 18px;
	}

	.gk-app .gk-change-button,
	.gk-app button.gk-change-button {
		width: 100%;
	}
}