/* Otomatik üretildi: assets/css/loading.css aynası — elle düzenlemeyin */
/* ==========================================================================
   İşlem ekranı — rezervasyon / arama / iletişim gönderiminde tam ekran katman
   Kurulum: assets/js/site.js "işlem ekranı", metinler app/helpers.php loading_attr()
   Her iki temada da koyu cam kart (marka: gece + amber).
   ========================================================================== */
.ld {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(6, 7, 7, .62); backdrop-filter: blur(10px) saturate(.85); -webkit-backdrop-filter: blur(10px) saturate(.85);
  opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s .28s;
  font-family: var(--f); color: var(--on-night, #f4f3ee);
}
.ld.is-on { opacity: 1; visibility: visible; transition: opacity .28s ease }
html.ld-open, html.ld-open body { overflow: hidden }

.ld__card {
  position: relative; width: min(392px, 100%); padding: 34px 26px 22px; text-align: center; overflow: hidden;
  border-radius: 26px; border: 1px solid rgba(255, 255, 255, .09);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 188, 64, .16), transparent 62%),
    linear-gradient(-180deg, #171917, #0d0e0d);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .4);
  transform: translateY(14px) scale(.95); opacity: 0;
  transition: transform .55s var(--out), opacity .35s ease;
}
.ld.is-on .ld__card { transform: none; opacity: 1 }

/* dönen halka + simge */
.ld__orb { position: relative; width: 96px; height: 96px; margin: 0 auto 20px }
.ld__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: ld-spin 1.15s linear infinite }
.ld__ring circle { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 4 }
.ld__ring .ld__arc { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 26 74; filter: drop-shadow(0 0 6px rgba(255, 188, 64, .55)) }
.ld__ic {
  position: absolute; inset: 15px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255, 188, 64, .28), rgba(255, 188, 64, .08));
  box-shadow: 0 0 0 1px rgba(255, 188, 64, .25) inset; color: var(--amber);
}
.ld__ic::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid rgba(255, 188, 64, .5); animation: ld-pulse 1.8s var(--out) infinite }
.ld__ic .i { width: 28px; height: 28px; animation: ld-bob 1.8s ease-in-out infinite }

.ld__t { margin: 0; font-size: 1.22rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; color: #fff; text-wrap: balance }
.ld__d { margin: 6px auto 0; max-width: 30ch; font-size: .86rem; line-height: 1.5; color: var(--on-night-m, #a3a59c); text-wrap: balance }

/* adımlar */
.ld__steps {
  margin: 20px 0 0; padding: 6px; list-style: none; text-align: start;
  border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06);
}
.ld__steps li {
  display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px;
  font-size: .88rem; font-weight: 600; color: rgba(244, 243, 238, .38); transition: color .3s, background-color .3s;
}
.ld__dot {
  position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .16); transition: background-color .3s, border-color .3s, transform .4s var(--out);
}
.ld__dot .i { width: 13px; height: 13px; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .4s var(--out) }
.ld__steps li.is-on { color: #fff; background: rgba(255, 188, 64, .07) }
.ld__steps li.is-on .ld__dot { border-color: rgba(255, 188, 64, .25); border-top-color: var(--amber); animation: ld-spin .8s linear infinite }
.ld__steps li.is-done { color: rgba(244, 243, 238, .82) }
.ld__steps li.is-done .ld__dot { background: var(--amber); border-color: var(--amber); color: var(--amber-ink, #1d1a11); transform: scale(1.04) }
.ld__steps li.is-done .ld__dot .i { opacity: 1; transform: none }

/* ilerleme çubuğu: hızlı başlar, sona yaklaştıkça yavaşlar (sayfa gelince zaten kaybolur) */
.ld__bar { position: relative; height: 3px; margin: 18px 4px 0; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden }
.ld__bar i { position: absolute; inset: 0 0 0 auto; width: 0; border-radius: inherit; background: linear-gradient(-90deg, var(--amber-d), var(--amber), #ffe0a3) }
.ld.is-on .ld__bar i { animation: ld-fill 9s cubic-bezier(.12, .8, .2, 1) forwards }
.ld__bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(-90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: ld-shine 1.3s ease-in-out infinite }

.ld__g { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: .74rem; color: rgba(244, 243, 238, .45) }
.ld__g .i { width: 13px; height: 13px; color: var(--amber) }

@keyframes ld-spin { to { transform: rotate(-360deg) } }
@keyframes ld-pulse { 0% { transform: scale(1); opacity: .9 } 100% { transform: scale(1.45); opacity: 0 } }
@keyframes ld-bob { 50% { transform: translateY(-2px) } }
@keyframes ld-fill { 0% { width: 0 } 12% { width: 38% } 40% { width: 72% } 100% { width: 94% } }
@keyframes ld-shine { from { transform: translateX(100%) } to { transform: translateX(-100%) } }

@media (max-width: 480px) {
  .ld__card { padding: 28px 18px 18px; border-radius: 22px }
  .ld__orb { width: 84px; height: 84px; margin-bottom: 16px }
  .ld__t { font-size: 1.1rem }
}

/* hareket azaltılmış: döngüler durur, yalnız durum değişir */
.no-motion .ld__ring, .no-motion .ld__ic::after, .no-motion .ld__ic .i, .no-motion .ld__bar i::after { animation: none }
.no-motion .ld__steps li.is-on .ld__dot { animation: none; border-color: var(--amber) }
.no-motion .ld.is-on .ld__bar i { animation: none; width: 70% }
