/* Shared Passophonics loading panel. The ring and fixed centre dot use the
   active theme's --accent token, including administrator-created themes. */
.pp-site-loading {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 96px;
  margin: 14px 0 0;
  padding: 18px 17px;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--accent, #17c1ff) 22%, var(--line, #39283f));
  border-radius: 14px;
  background: linear-gradient(
    105deg,
    color-mix(in srgb, var(--accent, #17c1ff) 8%, var(--panel, #17111d)),
    color-mix(in srgb, var(--panel, #17111d) 92%, transparent)
  );
}

/* The Club Lookup status has tighter #status rules than other page states. */
#status.pp-site-loading,
.search-meta #status.pp-site-loading {
  min-height: 96px;
  margin: 14px 0 0;
  padding: 18px 17px;
  white-space: normal;
  overflow: visible;
}

.pp-loading-icon {
  position: relative;
  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent, #17c1ff) 48%, transparent));
}

.pp-loading-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 35deg,
    transparent 0 15%,
    var(--accent, #17c1ff) 39%,
    color-mix(in srgb, var(--accent, #17c1ff) 65%, white) 64%,
    transparent 82% 100%
  );
  animation: pp-loading-ring-spin 1.35s linear infinite;
}

.pp-loading-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid color-mix(in srgb, var(--accent, #17c1ff) 23%, var(--panel, #17111d));
  border-radius: 50%;
  background: var(--panel, #17111d);
}

.pp-loading-core {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent, #17c1ff) 42%, white);
  box-shadow: 0 0 9px 3px color-mix(in srgb, var(--accent, #17c1ff) 75%, transparent);
  animation: pp-loading-dot-pulse 1.5s ease-in-out infinite;
}

.pp-loading-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.pp-loading-title {
  color: var(--accent, #17c1ff);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.35;
}

.pp-loading-subtitle {
  color: var(--muted, #b3a4bb);
  font-size: 11px;
  line-height: 1.4;
}

@keyframes pp-loading-ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes pp-loading-dot-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(.72); opacity: .72; }
  50% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
}

@media (max-width: 560px) {
  .pp-site-loading { min-height: 84px; padding: 15px; }
  #status.pp-site-loading,
  .search-meta #status.pp-site-loading { min-height: 84px; padding: 15px; }
  .pp-loading-title { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-loading-ring,
  .pp-loading-core {
    animation-duration: .01ms;
    animation-iteration-count: 1;
  }
}
