/* Google Ads yönetimi hero maketi (views/partials/gads-hero.php). 680×470 sabit tasarım, --sc ile ölçeklenir.
   Eski Chromium/Yandex: color-mix, :has, container query, iç içe kural yok; hareket yalnızca transform/opacity/stroke-dashoffset. */
.gh { position: relative; width: 100%; max-width: 680px; height: calc(470px * var(--sc, 1)); margin: 0 auto; }
.gh__in { position: absolute; left: 0; top: 0; width: 680px; height: 470px; transform: scale(var(--sc, 1)); transform-origin: 0 0;
  --p-bg: #0e141b; --p-bg2: #141c25; --p-card: #172130; --p-line: rgba(255, 255, 255, .08); --p-tx: #e8eef4; --p-tx2: #9aa7b5; --p-tx3: #6f7d8c; --p-ac: #22c3d0; --p-ok: #47cd89;
  font-family: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--p-tx); }
:root[data-theme="light"] .gh__in { --p-bg: #ffffff; --p-bg2: #f5f7f9; --p-card: #ffffff; --p-line: rgba(16, 24, 40, .09); --p-tx: #101828; --p-tx2: #475467; --p-tx3: #8a94a6; --p-ac: #0d8f9c; --p-ok: #067647; }
.gh-halo { position: absolute; left: 60px; top: 40px; width: 520px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(34, 195, 208, .28), rgba(34, 195, 208, 0)); filter: blur(10px); }

/* Pencere */
.gh-win { position: absolute; left: 0; top: 34px; width: 560px; height: 392px; border-radius: 14px; overflow: hidden; background: var(--p-bg); border: 1px solid var(--p-line);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03); }
.gh-win__bar { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 12px; background: var(--p-bg2); border-bottom: 1px solid var(--p-line); }
.gh-dots { display: flex; gap: 5px; }
.gh-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.gh-dots i + i { background: #febc2e; } .gh-dots i + i + i { background: #28c840; }
.gh-url { display: flex; align-items: center; gap: 5px; height: 18px; padding: 0 10px; border-radius: 6px; background: var(--p-bg); color: var(--p-tx3); font-size: 10px; }
.gh-url svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; }
.gh-app { padding: 10px 12px; }
.gh-top { display: flex; align-items: center; gap: 8px; height: 30px; }
.gh .gh-logo { display: block; height: 18px; width: auto; }
.gh .gh-logo--l { display: none; }
:root[data-theme="light"] .gh .gh-logo--d { display: none; }
:root[data-theme="light"] .gh .gh-logo--l { display: block; }
.gh-chip { font-size: 9px; font-weight: 600; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--p-line); color: var(--p-tx2); }
.gh-acc { display: flex; align-items: center; gap: 6px; margin-left: 6px; padding: 3px 8px 3px 4px; border-radius: 8px; border: 1px solid var(--p-line); background: var(--p-bg2); }
.gh-gl { width: 18px; height: 18px; padding: 2px; border-radius: 5px; background: #fff; }
.gh-acc b { display: block; font-size: 10px; line-height: 1.2; }
.gh-acc small { display: block; font-size: 8px; color: var(--p-tx3); }
.gh-av { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 8px; font-weight: 700; background: rgba(34, 195, 208, .18); color: var(--p-ac); }
.gh-bal { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--p-card); border: 1px solid var(--p-line); }
.gh-bal small { display: block; font-size: 8.5px; color: var(--p-tx3); }
.gh-bal b { font-size: 15px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gh-bal__d { font-size: 10px; color: var(--p-ok); font-weight: 600; }
.gh-bal__bar { flex: 1 1 auto; height: 5px; border-radius: 3px; background: var(--p-line); overflow: hidden; }
.gh-bal__bar i { display: block; width: 100%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #22c3d0, #47cd89); transform: scaleX(.62); transform-origin: 0 50%; }
.gh-btn { font-size: 9.5px; font-weight: 700; padding: 6px 9px; border-radius: 7px; background: var(--p-ac); color: #04262a; white-space: nowrap; }

/* Göstergeler (ax_gauge görsel dili) */
.gh-gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.gh-g { position: relative; padding: 7px 8px 8px; border-radius: 10px; background: var(--p-card); border: 1px solid var(--p-line); text-align: center; }
.gh-g small { display: block; text-align: left; font-size: 8.5px; color: var(--p-tx2); font-weight: 600; }
.gh-g svg { display: block; width: 100%; height: auto; margin-top: 2px; overflow: visible; }
.gh-g__t line { stroke: var(--p-tx3); stroke-width: 1.4; opacity: .45; }
.gh-g__track, .gh-g__arc { fill: none; stroke-width: 9; stroke-linecap: round; }
.gh-g__track { stroke: var(--p-line); }
.gh-g__arc { stroke-dasharray: 100 100; stroke-dashoffset: calc(100 - var(--v) * 100); }
.gh-g__dot { transform-origin: 100px 96px; transform: rotate(calc(var(--v) * 180deg)); }
.gh-g__dot circle { stroke: var(--p-card); stroke-width: 3; }
.gh-g > b { position: absolute; left: 0; right: 0; bottom: 9px; font-size: 13px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Grafik + kampanyalar */
.gh-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; margin-top: 8px; }
.gh-chart, .gh-camps { padding: 8px 10px; border-radius: 10px; background: var(--p-card); border: 1px solid var(--p-line); }
.gh-chart__h { display: flex; justify-content: space-between; align-items: center; }
.gh-chart__h small { font-size: 8.5px; color: var(--p-tx2); font-weight: 600; }
.gh-up { font-size: 8.5px; font-weight: 700; color: var(--p-ok); }
.gh-chart svg { display: block; width: 100%; height: 78px; margin-top: 6px; }
.gh-chart__l { fill: none; stroke: #5ee0e8; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100 100; stroke-dashoffset: 0; }
.gh-camps { display: grid; gap: 2px; align-content: start; }
.gh-camp { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--p-line); }
.gh-camp:last-child { border-bottom: 0; }
.gh-camp b { display: block; font-size: 9.5px; }
.gh-camp small { display: block; font-size: 8px; color: var(--p-tx3); }
.gh-pill { font-style: normal; font-size: 8px; font-weight: 700; padding: 3px 7px; border-radius: 999px; color: var(--p-ok); background: rgba(71, 205, 137, .14); }

/* Telefon */
.gh-phone { position: absolute; left: 532px; top: 128px; width: 142px; height: 286px; padding: 7px; border-radius: 26px; background: #05080c; box-shadow: 0 26px 60px -24px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.gh-phone__in { position: relative; height: 100%; padding: 22px 9px 9px; border-radius: 20px; overflow: hidden; background: var(--p-bg); display: flex; flex-direction: column; gap: 8px; }
.gh-phone__notch { position: absolute; left: 50%; top: 6px; width: 44px; height: 9px; margin-left: -22px; border-radius: 6px; background: #05080c; }
.gh .gh-phone .gh-logo { height: 14px; }
.gh-phone__bal { padding: 8px; border-radius: 10px; background: var(--p-card); border: 1px solid var(--p-line); }
.gh-phone__bal small { display: block; font-size: 7.5px; color: var(--p-tx3); }
.gh-phone__bal b { display: block; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gh-phone__bal span { font-size: 8px; color: var(--p-ok); font-weight: 600; }
.gh-g--sm { padding-bottom: 22px; }
.gh-g--sm > b { bottom: 6px; font-size: 12px; }
.gh-phone__tabs { margin-top: auto; display: flex; justify-content: space-around; padding-top: 7px; border-top: 1px solid var(--p-line); }
.gh-phone__tabs i { width: 14px; height: 4px; border-radius: 2px; background: var(--p-line); }
.gh-phone__tabs i.on { background: var(--p-ac); }

/* Yüzen kartlar */
.gh-fc { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--p-card); border: 1px solid var(--p-line);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); white-space: nowrap; }
.gh-fc b { display: block; font-size: 11px; }
.gh-fc small { display: block; font-size: 9.5px; color: var(--p-tx2); }
.gh-fc__i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(34, 195, 208, .16); color: var(--p-ac); }
.gh-fc__i--ok { background: rgba(71, 205, 137, .16); color: var(--p-ok); }
.gh-fc__i--gift { background: rgba(245, 158, 11, .16); color: #f5a524; }
.gh-fc--1 { left: 330px; top: 0; }
.gh-fc--2 { left: 18px; top: 404px; }
.gh-fc--3 { left: 300px; top: 412px; }
.gh-tag { position: absolute; left: 12px; top: 6px; font-size: 10px; font-weight: 600; letter-spacing: .04em; color: var(--p-tx3); }

/* Animasyon (JS .is-run ekler; temel stiller son durumu gösterir → JS/animasyon yoksa maket tam görünür) */
@media (prefers-reduced-motion: no-preference) {
  .gh.is-run .gh-g__arc { animation: gh-arc 1.6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.25s + var(--i) * .12s); }
  .gh.is-run .gh-g__dot { animation: gh-dot 1.6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.25s + var(--i) * .12s); }
  .gh.is-run .gh-chart__l { animation: gh-draw 2s ease-out .5s both; }
  .gh.is-run .gh-chart__a { animation: gh-fade 1.2s ease-out 1.4s both; }
  .gh.is-run .gh-bal__bar i { animation: gh-bar 1.6s cubic-bezier(.2, .8, .2, 1) .2s both; }
  .gh.is-run .gh-camp { animation: gh-in .6s ease-out both; }
  .gh.is-run .gh-camp:nth-child(2) { animation-delay: .15s; } .gh.is-run .gh-camp:nth-child(3) { animation-delay: .3s; }
  .gh.is-run .gh-fc--1 { animation: gh-pop .7s cubic-bezier(.2, .9, .3, 1.2) 1.2s both, gh-float 6s ease-in-out 2s infinite; }
  .gh.is-run .gh-fc--2 { animation: gh-pop .7s cubic-bezier(.2, .9, .3, 1.2) 2s both, gh-float 7s ease-in-out 3s infinite; }
  .gh.is-run .gh-fc--3 { animation: gh-pop .7s cubic-bezier(.2, .9, .3, 1.2) 2.8s both, gh-float 6.5s ease-in-out 3.6s infinite; }
  .gh.is-run .gh-phone { animation: gh-rise .9s cubic-bezier(.2, .8, .2, 1) .1s both; }
  .gh.is-paused *, .gh.is-paused { animation-play-state: paused !important; }
}
@keyframes gh-arc { from { stroke-dashoffset: 100; } }
@keyframes gh-dot { from { transform: rotate(0deg); } }
@keyframes gh-draw { from { stroke-dashoffset: 100; } }
@keyframes gh-fade { from { opacity: 0; } }
@keyframes gh-bar { from { transform: scaleX(0); } }
@keyframes gh-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes gh-pop { from { opacity: 0; transform: translateY(10px) scale(.92); } }
@keyframes gh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes gh-rise { from { opacity: 0; transform: translateY(24px); } }
/* Dar ekran: telefon gizli, sahne 570 px tasarım genişliğiyle ölçeklenir */
.gh.is-narrow .gh-phone { display: none; }
.gh.is-narrow .gh-fc--1 { left: 300px; }
.gh.is-narrow .gh-fc--3 { left: 330px; }
