/* Efekt Yap (gömülü): söz aracıyla aynı dil. gomulu.css'in ÜSTÜNE biner. */

/* şablon listesi: daha küçük çipler, grup başlıkları cümle düzeninde, seçili çip mürekkep */
.gomulu .ey-sablonlar { gap: 5px; padding: 22px 22px 0; }
.gomulu .ey-grup {
	margin: 10px 0 3px;
	font-size: 12.5px; font-weight: 620; letter-spacing: 0; text-transform: none;
	color: var(--c-yazi-2);
}
.gomulu .ey-sablonlar a { padding: 4px 11px; font-size: 12.5px; font-weight: 520; line-height: 1.35; border-color: var(--c-cizgi-2); }
.gomulu .ey-sablonlar a:hover { color: var(--c-yazi); border-color: var(--c-soluk); background: var(--c-yuzey); }
.gomulu .ey-sablonlar a.aktif { color: var(--c-yuzey); background: var(--c-yazi); border-color: var(--c-yazi); }

/* yerleşim: resim kartı ayar paneliyle aynı boyda, resim ortada */
.gomulu .main-container { gap: 16px; padding: 18px 22px 22px !important; align-items: stretch; }
.gomulu .canvas { display: flex; align-items: center; justify-content: center; padding: 16px; border-radius: 14px; background: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.3px) 0 0 / 18px 18px, #17141d; }
.gomulu .canvas canvas { border-radius: 10px; }
.gomulu .sidebar { border-radius: 14px; border-color: var(--c-cizgi); }

/* sekmeler: daha küçük, seçili olan vurgu rengi */
.gomulu .tabs > label { min-width: 58px; padding: 8px 10px 7px; border-radius: 10px; font-weight: 560; }
.gomulu .tabs > input:checked + label { box-shadow: 0 0 0 1px var(--c-vurgu); }

/* alanlar ve düğmeler */
.gomulu input[type=text], .gomulu textarea, .gomulu .myselect, .gomulu .ey-duzen select { border-radius: 10px; border-color: var(--c-cizgi-2); }
.gomulu .btn { border-radius: 10px; border-color: var(--c-cizgi-2); }
.gomulu .btn.save, .gomulu #save { height: 42px; border-radius: 11px; padding: 0 26px; font-weight: 620; border-color: var(--c-vurgu); }

@media (max-width: 960px) {
	.gomulu .main-container { padding: 14px !important; }
	.gomulu .canvas { padding: 10px; }
}

/* ---------- sabit düzen: önizleme yerinde durur, menü tek satır, ayar paneli sabit kutu ---------- */
.gomulu .ey-serit { flex: none; position: relative; margin: 0; padding: 14px 22px 0; }
.gomulu .ey-serit .ey-sablonlar {
	display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
	height: 40px; margin: 0; padding: 0 2px;
	overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
}
.gomulu .ey-serit .ey-sablonlar::-webkit-scrollbar { display: none; }
.gomulu .ey-serit .ey-sablonlar.yukleniyor { background: linear-gradient(90deg, var(--c-yuzey-2, #eee) 0 90px, transparent 90px 98px) 0 50% / 98px 28px repeat-x; border-radius: 999px; opacity: .6; }
.gomulu .ey-sablonlar a, .gomulu .ey-grup { flex: 0 0 auto; white-space: nowrap; }
.gomulu .ey-serit .ey-grup { margin: 0 2px 0 8px; padding: 0; font-size: 12px; font-weight: 650; color: var(--c-soluk); }
.gomulu .ey-serit .ey-grup:first-child { margin-left: 0; }
.gomulu .ey-sablonlar a { padding: 0 13px; height: 30px; display: inline-flex; align-items: center; }
.gomulu .ey-ok {
	position: absolute; top: 14px; z-index: 2; width: 40px; height: 40px; padding: 0 0 3px;
	display: none; align-items: center; justify-content: center;
	font-size: 22px; line-height: 1; color: var(--c-yazi); cursor: pointer;
	border: 0; background: linear-gradient(90deg, var(--c-yuzey, #fff) 55%, transparent);
}
.gomulu .ey-ok.ey-sol { left: 22px; }
.gomulu .ey-ok.ey-sag { right: 22px; background: linear-gradient(270deg, var(--c-yuzey, #fff) 55%, transparent); justify-content: flex-end; }
.gomulu .ey-serit.sol-var .ey-sol, .gomulu .ey-serit.sag-var .ey-sag { display: flex; }

.gomulu .canvas { position: relative; }
.gomulu .canvas.yukleniyor canvas { opacity: .25; }
.gomulu .canvas.yukleniyor::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px;
	border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%;
	animation: ey-don .8s linear infinite;
}
@keyframes ey-don { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gomulu .canvas.yukleniyor::after { animation-duration: 3s; } }
.gomulu .canvas canvas { transition: opacity .2s; }

/* panel içi kaydırma çubuğu: ince */
.gomulu .tabs > div { scrollbar-width: thin; scrollbar-color: var(--c-cizgi-2) transparent; }

/* masaüstü: sayfa yüksekliği sabit, sekme değişince hiçbir şey oynamaz */
@media (min-width: 961px) {
	html.gomulu, .gomulu body { height: 100% !important; overflow: hidden !important; }
	.gomulu body { display: flex; flex-direction: column; }
	.gomulu .main-container {
		flex: 1 1 auto; min-height: 0; width: 100%; margin: 0; grid-template-rows: minmax(0, 1fr);
		grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
		padding: 14px 22px 22px !important;
	}
	.gomulu .canvas { height: 100%; min-height: 0 !important; container-type: size; display: flex; align-items: center; justify-content: center; }
	.gomulu .canvas canvas {
		width: min(100cqw, calc(100cqh * var(--oran, 1.4))) !important;
		height: auto !important; max-width: none; max-height: 100cqh;
	}
	.gomulu .sidebar { height: 100%; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
	.gomulu .sidebar .showmobile, .gomulu .sidebar_content, .gomulu .sidebar_content .sub_content { display: block; height: 100% !important; min-height: 0; }
	.gomulu .sidebar_content { padding: 14px 8px 14px 16px; }
	.gomulu .tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); column-gap: 6px; height: 100%; }
	.gomulu .tabs > label { grid-row: 1; margin: 0 0 12px; min-width: 0; padding: 8px 4px 7px; }
	.gomulu .tabs > div { grid-row: 2; grid-column: 1 / -1; min-height: 0; overflow-y: auto; padding: 0 8px 4px 0; }
}
/* dar ekran: yığılı düzen, ama ayar paneli yine sabit yükseklikte (sayfa sekmeyle uzayıp kısalmaz) */
@media (max-width: 960px) {
	.gomulu .sidebar { height: 420px; overflow: hidden; }
	.gomulu .sidebar .showmobile, .gomulu .sidebar_content, .gomulu .sidebar_content .sub_content { display: block; height: 100% !important; min-height: 0; }
	.gomulu .tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); column-gap: 4px; height: 100%; }
	.gomulu .tabs > label { grid-row: 1; margin: 0 0 10px; min-width: 0; padding: 8px 2px 7px; }
	.gomulu .tabs > div { grid-row: 2; grid-column: 1 / -1; min-height: 0; overflow-y: auto; padding-right: 6px; }
	.gomulu .ey-serit { padding: 12px 14px 0; }
	.gomulu .ey-ok { display: none !important; }
}

/* yazı tipi listesi: kapalıyken hiç çizilmez, açılınca yalnızca görünen satırların yazı tipi indirilir
   (yoksa sayfa açılırken yüzlerce yazı tipi dosyası birden istenir ve araç yavaşlar) */
.gomulu .myselect:not(.shown) .drop { display: none; }
.gomulu .myselect .drop span { content-visibility: auto; contain-intrinsic-size: auto 34px; }
.gomulu .ey-serit { display: none; }
