/* OMNI birleşik loader — logo2.png tabanlı */

.omni-loader__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.omni-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.omni-loader__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.omni-loader--overlay .omni-loader__stage {
  width: 5.5rem;
  height: 5.5rem;
}

.omni-loader--inline .omni-loader__stage {
  width: 3.75rem;
  height: 3.75rem;
}

.omni-loader--micro .omni-loader__stage,
.omni-loader--avatar .omni-loader__stage {
  width: 1.35rem;
  height: 1.35rem;
}

.omni-loader--avatar .omni-loader__stage {
  width: 2rem;
  height: 2rem;
}

.omni-loader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 40deg,
    rgba(201, 162, 39, 0.15) 40deg 120deg,
    var(--accent, #c9a227) 120deg 200deg,
    rgba(168, 134, 30, 0.85) 200deg 280deg,
    rgba(201, 162, 39, 0.2) 280deg 360deg
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: omniLoaderRingSpin 2.4s linear infinite;
}

.omni-loader--micro .omni-loader__ring,
.omni-loader--avatar .omni-loader__ring {
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
}

.omni-loader__orbit {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(201, 162, 39, 0.55);
  border-right-color: rgba(201, 162, 39, 0.12);
  animation: omniLoaderOrbitSpin 1.6s linear infinite reverse;
}

.omni-loader--micro .omni-loader__orbit,
.omni-loader--avatar .omni-loader__orbit {
  inset: 10%;
}

.omni-loader__logo {
  position: relative;
  z-index: 1;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  animation: omniLoaderLogoBreathe 2.8s ease-in-out infinite;
}

.omni-loader--overlay .omni-loader__logo {
  width: 3.25rem;
  height: 3.25rem;
}

.omni-loader--inline .omni-loader__logo {
  width: 2.15rem;
  height: 2.15rem;
}

.omni-loader--micro .omni-loader__logo {
  width: 1rem;
  height: 1rem;
}

.omni-loader--avatar .omni-loader__logo {
  width: 1.35rem;
  height: 1.35rem;
}

.omni-loader--inline {
  padding: 1.5rem 0;
  width: 100%;
}

.omni-loader--centered {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* Overlay — içerik alanı üzerinde */
.omni-loader-overlay-host {
  position: relative;
}

.omni-loader-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.omni-loader-overlay--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pool-main .app {
  position: relative;
}

/* page-content-shell — pool-skeleton.css */

/* Buton içi loader */
.omni-loader-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.1rem;
}

.omni-loader-btn .omni-loader {
  vertical-align: middle;
}

/* Avatar overlay */
.profile-avatar__loader.omni-loader-avatar-host {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  animation: none;
}

.profile-avatar__loader.omni-loader-avatar-host.hidden {
  display: none;
}

/* Chat / gallery inline alanları */
.pool-chat-empty--loading,
.feedback-gallery__loading.omni-loader-host {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  padding: 1rem;
}

.feedback-gallery__loading.omni-loader-host {
  min-height: 0;
  width: 100%;
  height: 100%;
}

.pool-chat-bubble__image-loading.omni-loader-host {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  width: 100%;
}

.bucket-recent--loading {
  display: flex;
  justify-content: center;
  padding: 0.75rem 0;
}

@keyframes omniLoaderRingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes omniLoaderOrbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes omniLoaderLogoBreathe {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.04) rotate(180deg);
    opacity: 1;
  }
}

@keyframes omniLoaderPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .omni-loader__ring,
  .omni-loader__orbit,
  .omni-loader__logo {
    animation: omniLoaderPulse 1.8s ease-in-out infinite;
  }

  .omni-loader-overlay {
    transition: none;
  }
}
