/* ============================================================
   AstroAria Global Loader Styles
   Include on every page via your main stylesheet
   or as: <link rel="stylesheet" href="css/Custom/loader.css">
   ============================================================ */

/* ── PAGE OVERLAY LOADER ──────────────────────────────────── */
#astroPageLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  transition: opacity .25s ease;
}

#astroPageLoader.apl-hidden {
  opacity: 0;
  pointer-events: none;
}

.apl-backdrop {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.apl-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Orbit ring + planet */
.apl-orbit {
  position: relative;
  width: 56px;
  height: 56px;
  animation: apl-spin 1.1s linear infinite;
}

.apl-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  border: 2.5px solid rgba(192, 57, 43, .15);
  pointer-events: none;
}

.apl-planet {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #c0392b;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .18);
}

/* Centre dot */
.apl-orbit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #e8b4b0;
  border-radius: 50%;
}

@keyframes apl-spin {
  to { transform: rotate(360deg); }
}

.apl-text {
  font-size: 13px;
  color: #c0392b;
  font-weight: 600;
  letter-spacing: .4px;
  margin: 4px 0 0;
  animation: apl-pulse 1.4s ease-in-out infinite;
}

@keyframes apl-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .45; }
}


/* ── BUTTON SPINNER ───────────────────────────────────────── */
.abl-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: abl-spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

/* For dark/outline buttons, use this class on the btn */
.btn-outline-danger .abl-spinner,
.btn-secondary .abl-spinner,
.btn-cancel .abl-spinner {
  border-color: rgba(0,0,0,.2);
  border-top-color: #666;
}

.abl-btn-text {
  vertical-align: middle;
}

@keyframes abl-spin {
  to { transform: rotate(360deg); }
}

button:disabled {
  cursor: not-allowed !important;
  opacity: .7 !important;
}


/* ── SKELETON CARDS ───────────────────────────────────────── */
.ask-skeleton-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #f2dede;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 16px 14px 12px;
}

.ask-sk-inner {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.ask-sk-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ask-sk-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.ask-sk-line {
  height: 11px;
  border-radius: 6px;
  background: #eee;
}

.ask-sk-name   { width: 65%; }
.ask-sk-short  { width: 45%; }
.ask-sk-medium { width: 80%; }

.ask-sk-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f9eded;
  padding-top: 10px;
  gap: 10px;
}

.ask-sk-price {
  height: 12px;
  width: 90px;
  border-radius: 6px;
  background: #eee;
}

.ask-sk-btn {
  height: 34px;
  width: 90px;
  border-radius: 20px;
  background: #eee;
}

/* Shimmer animation */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.shimmer {
  background: linear-gradient(90deg,
    #f0f0f0 25%,
    #fce8e6 50%,
    #f0f0f0 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}