/* ═══════════════════════════════════════════════════════════════════
   ATLAS ICONS — حركات رموز التاريخ والجغرافيا
   ═══════════════════════════════════════════════════════════════════ */

.phy-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.phy-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
  pointer-events: none;
  user-select: none;
}

/* ─── حركات ─── */
@keyframes phySpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes phySpinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes phyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes phyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes phyGlow {
  0%, 100% { filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); opacity: 1; }
  50% { filter: drop-shadow(0 0 18px rgba(249, 115, 22, 0.55)); opacity: 0.92; }
}

@keyframes phyShimmer {
  0%, 100% { filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)) brightness(1); }
  50% { filter: drop-shadow(0 0 22px rgba(249, 115, 22, 0.6)) brightness(1.12); }
}

@keyframes phyWalk {
  0%, 100% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(4px) translateY(-3px); }
  75% { transform: translateX(-4px) translateY(-2px); }
}

@keyframes phyWing {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  30% { transform: rotate(-6deg) translateY(-4px); }
  70% { transform: rotate(6deg) translateY(-2px); }
}

@keyframes phyBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}

@keyframes phyMapDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
  50% { transform: translate(-1%, -0.5%) scale(1.02); opacity: 0.3; }
}

@keyframes phyFrameGlow {
  0%, 100% { filter: drop-shadow(0 4px 12px rgba(249,115,22,.3)); }
  50% { filter: drop-shadow(0 0 16px rgba(249,115,22,.55)); }
}

@keyframes phyOrbitFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6px, -8px) scale(1.05); }
  66% { transform: translate(-5px, 4px) scale(0.98); }
}

.phy-anim--spin .phy-icon-img { animation: phySpin 8s linear infinite; }
.phy-anim--spin-slow .phy-icon-img { animation: phySpinSlow 14s linear infinite; }
.phy-anim--float .phy-icon-img { animation: phyFloat 4s ease-in-out infinite; }
.phy-anim--pulse .phy-icon-img { animation: phyPulse 3s ease-in-out infinite; }
.phy-anim--glow .phy-icon-img { animation: phyGlow 3.5s ease-in-out infinite; }
.phy-anim--shimmer .phy-icon-img { animation: phyShimmer 4s ease-in-out infinite; }
.phy-anim--walk .phy-icon-img { animation: phyWalk 2.5s ease-in-out infinite; }
.phy-anim--wing .phy-icon-img { animation: phyWing 3s ease-in-out infinite; }
.phy-anim--bob .phy-icon-img { animation: phyBob 4.5s ease-in-out infinite; }
.phy-anim--map-drift { animation: phyMapDrift 20s ease-in-out infinite; }
.phy-anim--frame-glow { animation: phyFrameGlow 4s ease-in-out infinite; }
@keyframes phyOrbitFloatCenter {
  0%, 100% { transform: translateX(-50%) translate(0, 0) scale(1); }
  33% { transform: translateX(-50%) translate(6px, -8px) scale(1.05); }
  66% { transform: translateX(-50%) translate(-5px, 4px) scale(0.98); }
}

.phy-anim--orbit { animation: phyOrbitFloat 5s ease-in-out infinite; }

.phy-hero__float {
  animation: phyOrbitFloat 6s ease-in-out infinite;
}
.phy-hero__float--tc,
.phy-hero__float--bc {
  animation: phyOrbitFloatCenter 6s ease-in-out infinite;
}

/* أحجام */
.phy-icon-wrap--xs { width: 28px; height: 28px; }
.phy-icon-wrap--sm { width: 40px; height: 40px; }
.phy-icon-wrap--md { width: 56px; height: 56px; }
.phy-icon-wrap--lg { width: 72px; height: 72px; }
.phy-icon-wrap--xl { width: 96px; height: 96px; }

.phy-tag .phy-icon-wrap { width: 22px; height: 22px; }
.phy-tag .phy-icon-img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.2)); }

.phy-hero__facts .phy-icon-wrap {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.phy-metric__ico .phy-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto;
}

.phy-brand__logo .phy-icon-wrap {
  width: 100%;
  height: 100%;
}

/* رموز عائمة حول الإطار */
.phy-hero__floats {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  z-index: 4;
}

.phy-hero__float {
  position: absolute;
  padding: 8px;
  background: var(--phy-hero-float-bg);
  border: 2px solid rgba(249, 115, 22, 0.45);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
html[data-theme="dark"] .phy-hero__float {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.phy-hero__float--sm .phy-icon-wrap { width: 44px; height: 44px; }
.phy-hero__float--md .phy-icon-wrap { width: 56px; height: 56px; }
.phy-hero__float--lg .phy-icon-wrap { width: 68px; height: 68px; }

.phy-hero__float--tl { top: 0; left: 0; }
.phy-hero__float--tc { top: -4%; left: 50%; transform: translateX(-50%); }
.phy-hero__float--tr { top: 0; right: 0; }
.phy-hero__float--ml { top: 42%; left: -6%; }
.phy-hero__float--mr { top: 38%; right: -6%; }
.phy-hero__float--bl { bottom: 8%; left: 2%; }
.phy-hero__float--bc { bottom: -2%; left: 50%; transform: translateX(-50%); }
.phy-hero__float--br { bottom: 8%; right: 2%; }

/* شريط الرموز */
.phy-hero__iconStrip .phy-icon-wrap {
  width: 48px;
  height: 48px;
}

.phy-hero__iconItem:nth-child(1) .phy-icon-img { animation-delay: 0s; }
.phy-hero__iconItem:nth-child(2) .phy-icon-img { animation-delay: 0.3s; }
.phy-hero__iconItem:nth-child(3) .phy-icon-img { animation-delay: 0.6s; }
.phy-hero__iconItem:nth-child(4) .phy-icon-img { animation-delay: 0.9s; }
.phy-hero__iconItem:nth-child(5) .phy-icon-img { animation-delay: 1.2s; }
.phy-hero__iconItem:nth-child(6) .phy-icon-img { animation-delay: 1.5s; }
.phy-hero__iconItem:nth-child(7) .phy-icon-img { animation-delay: 1.8s; }
.phy-hero__iconItem:nth-child(8) .phy-icon-img { animation-delay: 2.1s; }

/* مميزات وCTA */
.phy-feature__watermark .phy-icon-wrap {
  width: 80px;
  height: 80px;
  opacity: 0.2;
}

.phy-cta__deco .phy-icon-wrap {
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0.15;
}
.phy-cta__deco .phy-icon-wrap:nth-child(1) { left: 5%; bottom: 10%; }
.phy-cta__deco .phy-icon-wrap:nth-child(2) { right: 8%; top: 12%; width: 120px; height: 120px; }
.phy-cta__deco .phy-icon-wrap:nth-child(3) { left: 42%; top: -10px; width: 80px; height: 80px; }

.phy-grade__stamp .phy-icon-wrap {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phy-grade__stamp .phy-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.phy-footer__logo .phy-icon-wrap {
  width: 100%;
  height: 100%;
}

/* Auth */
.auth-imgPane__symbols .phy-icon-wrap {
  width: 100%;
  height: 48px;
  opacity: 0.35;
}

.phy-hero__compass .phy-icon-wrap {
  width: 48px;
  height: 48px;
}

.phy-hero__portraitEmpty .phy-icon-wrap {
  width: 70%;
  height: 70%;
  margin: auto;
}

.phy-hero__coords .phy-icon-wrap {
  width: 22px;
  height: 22px;
}

/* تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .phy-anim--spin .phy-icon-img,
  .phy-anim--spin-slow .phy-icon-img,
  .phy-anim--float .phy-icon-img,
  .phy-anim--pulse .phy-icon-img,
  .phy-anim--glow .phy-icon-img,
  .phy-anim--shimmer .phy-icon-img,
  .phy-anim--walk .phy-icon-img,
  .phy-anim--wing .phy-icon-img,
  .phy-anim--bob .phy-icon-img,
  .phy-anim--map-drift,
  .phy-anim--frame-glow,
  .phy-hero__float,
  .phy-hero__formulaGlyphs {
    animation: none !important;
  }
}

/* الموبايل: نفس رموز الكمبيوتر بتموضع داخلي لا يقطع الحواف */
@media (max-width: 960px) {
  .phy-hero__floats {
    inset: -2% 0 2%;
  }
  .phy-hero__float--tl { top: 4%; left: 2%; }
  .phy-hero__float--tr { top: 4%; right: 2%; }
  .phy-hero__float--ml { top: 42%; left: 0; }
  .phy-hero__float--mr { top: 38%; right: 0; }
  .phy-hero__float--bl { bottom: 16%; left: 2%; }
  .phy-hero__float--br { bottom: 16%; right: 2%; }
  .phy-hero__float--tc { top: 0; left: 50%; }
  .phy-hero__float--bc { bottom: 8%; left: 50%; }
  .phy-hero__float--lg .phy-icon-wrap { width: 48px; height: 48px; }
  .phy-hero__float--md .phy-icon-wrap { width: 42px; height: 42px; }
  .phy-hero__float--sm .phy-icon-wrap { width: 36px; height: 36px; }
  .phy-cta__deco .phy-icon-wrap {
    width: 72px;
    height: 72px;
    opacity: 0.22;
  }
  .phy-cta__deco .phy-icon-wrap:nth-child(2) { width: 88px; height: 88px; }
  .phy-cta__deco .phy-icon-wrap:nth-child(3) { width: 64px; height: 64px; }
}

@media (max-width: 560px) {
  .phy-hero__floats { inset: 0; }
  .phy-hero__float--tl { top: 2%; left: 0; }
  .phy-hero__float--tr { top: 2%; right: 0; }
  .phy-hero__float--bl { bottom: 18%; left: 0; }
  .phy-hero__float--br { bottom: 18%; right: 0; }
  .phy-hero__float--lg .phy-icon-wrap { width: 44px; height: 44px; }
  .phy-hero__float--md .phy-icon-wrap { width: 38px; height: 38px; }
  .phy-hero__iconStrip .phy-icon-wrap { width: 28px; height: 28px; }
}
