/**
 * Yesti Ofis Kartlari
 * Flip (ters donen) ofis kartlari.
 *
 * NOT: .is-flipped / .is-hoverlock class'lari JS ile eklenir. LiteSpeed UCSS bu tur
 * kurallari silebildigi icin bu dosya data-no-optimize="1" ile yuklenir.
 */

.yesti-oc {
	--yoc-primary: #008036;
	--yoc-front-bg: #f5f8f5;
	--yoc-front-border: #e3eae3;
	--yoc-back-a: #008036;
	--yoc-back-b: #005a25;
	--yoc-back-angle: 155deg;
	--yoc-back-text: #ffffff;
	--yoc-radius: 0px;
	--yoc-gap: 24px;
	--yoc-height: 340px;
	--yoc-cols: 4;

	background-color: #fff;
	padding: 80px 24px;
}

.yesti-oc,
.yesti-oc *,
.yesti-oc *::before,
.yesti-oc *::after {
	box-sizing: border-box;
}

.yesti-oc-inner-wrap {
	max-width: 1320px;
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Baslik ---------- */

.yesti-oc-head {
	max-width: 720px;
	margin: 0 auto 48px;
	text-align: center;
}

.yesti-oc-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--yoc-primary);
}

.yesti-oc-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: currentColor;
}

.yesti-oc-title {
	margin: 14px 0 0;
	font-size: 38px;
	line-height: 1.2;
	font-weight: 700;
	color: #12241a;
}

.yesti-oc-subtitle {
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.7;
	color: #5b6b60;
}

/* ---------- Izgara ---------- */

.yesti-oc-grid {
	display: grid;
	grid-template-columns: repeat(var(--yoc-cols), minmax(0, 1fr));
	gap: var(--yoc-gap);
}

/* ---------- Kart / flip mekanigi ---------- */

.yesti-oc-card {
	position: relative;
	height: var(--yoc-height);
	perspective: 1600px;
	cursor: pointer;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.yesti-oc-card:focus-visible {
	outline: 2px solid var(--yoc-primary);
	outline-offset: 4px;
}

.yesti-oc-inner {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.yesti-oc[data-axis="y"] .yesti-oc-card.is-flipped > .yesti-oc-inner {
	transform: rotateY(180deg);
}

.yesti-oc[data-axis="x"] .yesti-oc-card.is-flipped > .yesti-oc-inner {
	transform: rotateX(180deg);
}

/* Dokunmatik cihazlarda hover yoktur; oralarda yalnizca tiklama calisir. */
@media (hover: hover) {
	.yesti-oc[data-hover="yes"][data-axis="y"] .yesti-oc-card:hover > .yesti-oc-inner {
		transform: rotateY(180deg);
	}

	.yesti-oc[data-hover="yes"][data-axis="x"] .yesti-oc-card:hover > .yesti-oc-inner {
		transform: rotateX(180deg);
	}

	/* Acik kart tiklamayla kapatildiginda, mouse hala uzerindeyken geri donmesin. */
	.yesti-oc[data-hover="yes"][data-axis="y"] .yesti-oc-card.is-hoverlock:hover > .yesti-oc-inner,
	.yesti-oc[data-hover="yes"][data-axis="x"] .yesti-oc-card.is-hoverlock:hover > .yesti-oc-inner {
		transform: none;
	}
}

.yesti-oc-face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	border-radius: var(--yoc-radius);
	overflow: hidden;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

/* ---------- On yuz ---------- */

.yesti-oc-front {
	transform: rotateY(0deg);
	background-color: var(--yoc-front-bg);
	border: 1px solid var(--yoc-front-border);
	padding: 32px 28px;
	align-items: flex-start;
}

.yesti-oc-front::before {
	content: "";
	position: absolute;
	top: -70px;
	right: -70px;
	width: 190px;
	height: 190px;
	background: radial-gradient(circle, color-mix(in srgb, var(--yoc-primary) 14%, transparent), transparent 70%);
	pointer-events: none;
}

.yesti-oc-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-bottom: auto;
	background-color: color-mix(in srgb, var(--yoc-primary) 10%, transparent);
	color: var(--yoc-primary);
	font-size: 24px;
	line-height: 1;
}

.yesti-oc-icon svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.yesti-oc-icon i {
	line-height: 1;
}

.yesti-oc-front-text {
	position: relative;
	margin-top: 24px;
}

.yesti-oc-front .yesti-oc-name {
	margin: 0;
	font-size: 21px;
	line-height: 1.3;
	font-weight: 700;
	color: #12241a;
}

.yesti-oc-sub {
	display: block;
	margin-top: 7px;
	font-size: 14px;
	line-height: 1.5;
	color: #5b6b60;
}

.yesti-oc-hint {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--yoc-primary);
}

.yesti-oc-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background-color: var(--yoc-primary);
}

.yesti-oc-arrow svg {
	width: 15px;
	height: 15px;
	fill: #fff;
}

/* ---------- Arka yuz ---------- */

.yesti-oc-back {
	background-image: linear-gradient(var(--yoc-back-angle), var(--yoc-back-a) 0%, var(--yoc-back-b) 100%);
	color: var(--yoc-back-text);
	padding: 30px 26px;
}

.yesti-oc[data-axis="y"] .yesti-oc-back {
	transform: rotateY(180deg);
}

.yesti-oc[data-axis="x"] .yesti-oc-back {
	transform: rotateX(180deg);
}

.yesti-oc-back .yesti-oc-name {
	margin: 0 0 16px;
	padding-bottom: 14px;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	color: inherit;
	border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.yesti-oc-body {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	/* "safe": icerik tasarsa ortalamayi birakip basa hizalar, kirpmaz. */
	justify-content: safe center;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.yesti-oc-body::-webkit-scrollbar {
	width: 4px;
}

.yesti-oc-body::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.35);
}

.yesti-oc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.yesti-oc-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.6;
	color: inherit;
	opacity: 0.94;
}

.yesti-oc-row::before,
.yesti-oc-row::marker {
	content: none;
}

.yesti-oc-row > svg {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	margin-top: 3px;
	fill: currentColor;
	opacity: 0.7;
}

.yesti-oc-row a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	transition: border-color 0.2s ease;
}

.yesti-oc-row a:hover,
.yesti-oc-row a:focus {
	color: inherit;
	border-bottom-color: currentColor;
}

.yesti-oc-map {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	padding: 10px 18px;
	background-color: rgba(255, 255, 255, 0.14);
	color: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.yesti-oc-map svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.yesti-oc-map:hover,
.yesti-oc-map:focus {
	background-color: #fff;
	color: var(--yoc-back-a);
	transform: translateY(-1px);
}

/* ---------- Erisilebilirlik ---------- */

@media (prefers-reduced-motion: reduce) {
	.yesti-oc-inner {
		transition: none;
	}

	.yesti-oc-map {
		transition: none;
	}
}

/* color-mix desteklemeyen tarayicilar icin yedek. */
@supports not (background: color-mix(in srgb, #000 10%, transparent)) {
	.yesti-oc-icon {
		background-color: rgba(0, 128, 54, 0.1);
	}

	.yesti-oc-front::before {
		background: radial-gradient(circle, rgba(0, 128, 54, 0.12), transparent 70%);
	}
}
