/* ==========================================================================
   YEAPP - Sayaç Kartları (yeapp_counter)
   Tüm seçiciler :where() ile düşük özgüllükte yazıldı; böylece Elementor
   panelindeki Tasarım ayarları her zaman bu varsayılanları ezebilir.
   Kart renkleri kart üzerindeki --c (ana), --cd (koyu), --cl (açık) değişkenlerinden gelir.
   ========================================================================== */

@keyframes ysc-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes ysc-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ysc-in    { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Temel ---------- */
:where(.ysc) { box-sizing: border-box; padding: 4px 0; }
:where(.ysc) *, :where(.ysc) *::before, :where(.ysc) *::after { box-sizing: border-box; }
:where(.ysc) .ysc-inner { max-width: 100%; margin: 0 auto; }

:where(.ysc) .ysc-head { text-align: center; margin: 0 auto 28px; max-width: 720px; }
:where(.ysc) .ysc-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7F77DD; margin-bottom: 8px; }
:where(.ysc) .ysc-title { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; color: #1a1a1a; }
:where(.ysc) .ysc-sub { margin: 10px 0 0; color: #6b7280; font-size: 1rem; line-height: 1.6; }

:where(.ysc) .ysc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(var(--ysc-min, 140px), 1fr));
	gap: 14px;
}

:where(.ysc) .ysc-card {
	position: relative; overflow: hidden; display: block;
	text-align: center; color: inherit; text-decoration: none;
	background: #fff; border: 1px solid rgba(0, 0, 0, .08); border-radius: 16px;
	padding: 1.25rem 1rem 1rem;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
:where(.ysc) a.ysc-card { color: inherit; text-decoration: none; cursor: pointer; }
:where(.ysc) a.ysc-card:focus-visible { outline: 3px solid var(--cd, #7F77DD); outline-offset: 3px; }

/* Dekor */
:where(.ysc) .ysc-blob, :where(.ysc) .ysc-dot { position: absolute; border-radius: 50%; pointer-events: none; animation: ysc-drift 4s ease-in-out infinite; }
:where(.ysc) .ysc-blob { background: var(--c); opacity: .12; }
:where(.ysc) .ysc-dot { opacity: .2; animation-duration: 3s; }
:where(.ysc) .ysc-dot--1 { background: var(--c); }
:where(.ysc) .ysc-dot--2 { background: var(--cd); }

/* İkon dairesi */
:where(.ysc) .ysc-circle {
	position: relative; z-index: 1;
	display: flex; align-items: center; justify-content: center;
	width: var(--ysc-circle, 80px); height: var(--ysc-circle, 80px);
	margin: 0 var(--ysc-mr, auto) .875rem var(--ysc-ml, auto);
	border-radius: 50%; background: var(--cl);
	animation: ysc-pulse 3s ease-in-out infinite;
}
:where(.ysc) .ysc-emoji { font-size: calc(var(--ysc-circle, 80px) * var(--ysc-icon-scale, .4)); line-height: 1; }
:where(.ysc) .ysc-circle img { display: block; width: calc(var(--ysc-icon-scale, .62) * 100%); height: calc(var(--ysc-icon-scale, .62) * 100%); object-fit: contain; }

/* Yazılar */
:where(.ysc) .ysc-body { position: relative; z-index: 1; display: block; }
:where(.ysc) .ysc-num { display: block; font-size: 26px; font-weight: 700; color: #1a1a1a; line-height: 1; margin-bottom: .2rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
:where(.ysc) .ysc-label { display: block; font-size: 12px; color: #6b7280; line-height: 1.4; }

/* Hover */
:where(.ysc:not(.ysc--no-hover)) .ysc-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0, 0, 0, .1); }

/* ---------- Model 2 · Piksel Kaşif ---------- */
:where(.ysc--m2) .ysc-card { background: #fff; border: 3px solid #171A34; border-radius: 0; box-shadow: 6px 6px 0 var(--c); padding: 1.4rem 1rem 1.15rem; }
:where(.ysc--m2:not(.ysc--no-hover)) .ysc-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--c); }
:where(.ysc--m2) .ysc-grid { gap: 22px; padding: 0 9px 9px 0; }
:where(.ysc--m2) .ysc-circle { border-radius: 0; border: 3px solid #171A34; background: var(--cl); }
:where(.ysc--m2) .ysc-blob { display: none; }
:where(.ysc--m2) .ysc-dot { border-radius: 0; opacity: .55; }
:where(.ysc--m2) .ysc-dot--1 { bottom: auto !important; top: 12px; left: auto !important; right: 14px; }
:where(.ysc--m2) .ysc-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 28px; color: #171A34; }
:where(.ysc--m2) .ysc-label { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #4a4a4a; }

/* ---------- Model 3 · Yatay Kompakt ---------- */
:where(.ysc--m3) .ysc-grid { grid-template-columns: repeat(auto-fit, minmax(var(--ysc-min, 230px), 1fr)); }
:where(.ysc--m3) .ysc-card {
	display: flex; align-items: center; gap: 14px; text-align: left;
	padding: 14px 18px 14px 14px; border-radius: 14px;
	border: 1px solid rgba(0, 0, 0, .07); border-left: 5px solid var(--c);
}
:where(.ysc--m3) .ysc-circle { flex: 0 0 auto; width: var(--ysc-circle, 60px); height: var(--ysc-circle, 60px); margin: 0; }
:where(.ysc--m3) .ysc-emoji { font-size: calc(var(--ysc-circle, 60px) * var(--ysc-icon-scale, .45)); }
:where(.ysc--m3) .ysc-body { min-width: 0; }
:where(.ysc--m3) .ysc-num { font-size: 24px; margin-bottom: .25rem; }
:where(.ysc--m3) .ysc-label { font-size: 13px; }
:where(.ysc--m3) .ysc-blob { top: auto !important; bottom: -40px; right: -30px !important; }
:where(.ysc--m3) .ysc-dot--1 { left: auto !important; right: 22px; bottom: 14px !important; }
:where(.ysc--m3) .ysc-dot--2 { left: auto !important; right: 46px; top: 12px !important; }
:where(.ysc--m3:not(.ysc--no-hover)) .ysc-card:hover { transform: translateX(4px); box-shadow: 0 10px 26px rgba(0, 0, 0, .08); }

/* ---------- Model 4 · Gece Neon ---------- */
:where(.ysc--m4) .ysc-card { background: #1E1830; border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; padding: 1.5rem 1rem 1.2rem; }
:where(.ysc--m4) .ysc-blob { opacity: .22; filter: blur(14px); }
:where(.ysc--m4) .ysc-dot { opacity: .7; box-shadow: 0 0 10px var(--c); }
:where(.ysc--m4) .ysc-circle { background: rgba(255, 255, 255, .04); border: 2px solid var(--c); box-shadow: 0 0 18px -2px var(--c), inset 0 0 14px -4px var(--c); }
:where(.ysc--m4) .ysc-num { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 30px; color: var(--c); text-shadow: 0 0 16px var(--c); }
:where(.ysc--m4) .ysc-label { color: #C9C6DD; font-size: 12.5px; }
:where(.ysc--m4) .ysc-badge { color: #B6FF3B; }
:where(.ysc--m4) .ysc-title { color: #fff; }
:where(.ysc--m4) .ysc-sub { color: #C9C6DD; }
:where(.ysc--m4:not(.ysc--no-hover)) .ysc-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px -10px var(--c); border-color: var(--c); }

/* ---------- Seçenekler ---------- */
:where(.ysc--no-decor) .ysc-blob, :where(.ysc--no-decor) .ysc-dot { display: none; }
:where(.ysc--static) .ysc-circle, :where(.ysc--static) .ysc-blob, :where(.ysc--static) .ysc-dot { animation: none; }

/* Giriş animasyonu — yalnızca JS çalıştığında gizlenir (JS yoksa kartlar normal görünür) */
:where(.ysc.ysc-js:not(.ysc--no-entrance)) .ysc-card { opacity: 0; }
:where(.ysc.ysc-js.is-in:not(.ysc--no-entrance)) .ysc-card { opacity: 1; animation: ysc-in .6s cubic-bezier(.2, .7, .3, 1) var(--d, 0s) backwards; }

/* ---------- Responsive varsayılanlar ---------- */
@media (max-width: 767px) {
	:where(.ysc) .ysc-head { margin-bottom: 20px; }
	:where(.ysc) .ysc-grid { gap: 12px; }
	:where(.ysc--m2) .ysc-grid { gap: 18px; }
	:where(.ysc) .ysc-num { font-size: 23px; }
	:where(.ysc--m2) .ysc-num, :where(.ysc--m4) .ysc-num { font-size: 25px; }
	:where(.ysc) .ysc-circle { width: var(--ysc-circle, 68px); height: var(--ysc-circle, 68px); }
	:where(.ysc) .ysc-emoji { font-size: calc(var(--ysc-circle, 68px) * var(--ysc-icon-scale, .4)); }
	:where(.ysc--m3) .ysc-circle { width: var(--ysc-circle, 52px); height: var(--ysc-circle, 52px); }
	:where(.ysc--m3) .ysc-emoji { font-size: calc(var(--ysc-circle, 52px) * var(--ysc-icon-scale, .45)); }
	:where(.ysc--m3) .ysc-num { font-size: 21px; }
}
@media (max-width: 359px) {
	:where(.ysc) .ysc-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	:where(.ysc) .ysc-circle, :where(.ysc) .ysc-blob, :where(.ysc) .ysc-dot, :where(.ysc) .ysc-card { animation: none !important; transition: none !important; }
	:where(.ysc.ysc-js) .ysc-card { opacity: 1 !important; }
}
