/*
  Shared premium UI — reveals, orbs, section accents
*/

@keyframes sr-float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.45; }
  50% { transform: translate(12px, -18px) scale(1.08); opacity: 0.7; }
}

@keyframes sr-shimmer-line {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes sr-pulse-ring {
  0% { transform: scale(0.92); opacity: 0.5; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes sr-icon-pop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.sr-ui-reveal,
.fade-up,
.sr-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-i, 0) * 0.07s);
}

.sr-ui-reveal.is-visible,
.fade-up.visible,
.fade-up.is-visible,
.sr-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-ui-reveal {
  transform: translateY(22px);
}

.sr-section-orb {
  pointer-events: none;
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  animation: sr-float-orb 14s ease-in-out infinite;
}

.sr-section-orb.a {
  width: 220px;
  height: 220px;
  top: -40px;
  left: -60px;
  background: rgba(56, 189, 248, 0.14);
}

.sr-section-orb.b {
  width: 180px;
  height: 180px;
  bottom: 10%;
  right: -40px;
  background: rgba(232, 185, 74, 0.1);
  animation-delay: -5s;
}

.sr-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.5rem auto 1.5rem;
}

.sr-section-divider::before,
.sr-section-divider::after {
  content: "";
  height: 1px;
  width: 3.5rem;
  background: linear-gradient(90deg, transparent, rgba(79, 209, 229, 0.35), transparent);
}

.sr-section-divider-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.65);
}

@media (prefers-reduced-motion: reduce) {
  .sr-ui-reveal,
  .fade-up,
  .sr-fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sr-section-orb {
    animation: none;
  }
}

/* RTL — same layout language, mirrored where needed */
html[dir="rtl"] .sr-seo-paragraph::before {
  left: auto;
  right: 1rem;
}

html[dir="rtl"] .sr-seo-paragraph {
  padding: 1rem 2.75rem 1rem 1.15rem;
}

html[dir="rtl"] .sr-seo-paragraph:hover {
  transform: translateX(-4px);
}

html[dir="rtl"] .sr-faq-a,
html[dir="rtl"] .sr-faq-answer > p {
  padding: 0 3.85rem 1.15rem 1.15rem;
}

html[dir="rtl"] body.sr-site nav.nav-premium .nav-shell {
  direction: rtl;
}

html[dir="rtl"] body.sr-site nav.nav-premium .nav-pill-icon {
  transform: scaleX(-1);
}
