/* Fundo espacial — estrelas + Saturno (dashboard e landing) */

.sgae-space-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sgae-app .main-content .sgae-space-layer {
  left: 260px;
}

body.sgae-browse-expanded .sgae-app .main-content .sgae-space-layer {
  left: 0;
}

#sgae-space-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.sgae-saturn {
  position: absolute;
  width: 72px;
  height: 72px;
  right: 8%;
  top: 12%;
  opacity: 0.55;
  animation: sgae-saturn-drift 28s ease-in-out infinite alternate;
}

.sgae-saturn-planet {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fde68a 0%, #d97706 45%, #92400e 100%);
  box-shadow: inset -6px -8px 14px rgba(0, 0, 0, 0.35);
  animation: sgae-saturn-spin 48s linear infinite;
}

.sgae-saturn-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: rgba(253, 224, 71, 0.75);
  border-right-color: rgba(251, 191, 36, 0.45);
  border-bottom-color: rgba(217, 119, 6, 0.35);
  border-left-color: rgba(253, 224, 71, 0.55);
  transform: rotateX(68deg) rotateZ(18deg);
  animation: sgae-saturn-ring 48s linear infinite;
}

[data-theme="light"] .sgae-saturn {
  opacity: 0.38;
}

@keyframes sgae-saturn-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes sgae-saturn-ring {
  from { transform: rotateX(68deg) rotateZ(18deg); }
  to { transform: rotateX(68deg) rotateZ(378deg); }
}

@keyframes sgae-saturn-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-24px, 18px); }
}

.sgae-app .content-area,
body.sgae-landing .landing-container {
  position: relative;
  z-index: 1;
}

.sgae-app .sidebar,
.sgae-app .top-bar {
  position: relative;
  z-index: 2;
}

body.sgae-landing .sgae-space-layer {
  z-index: 0;
}
