/* Space-themed background for public pages - inspired by landing page */

/* Only apply to regular public pages (not landing page) */
.gc-public-space-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;

  /* Base space background */
  background: radial-gradient(ellipse at center, #1a2332 0%, #090a0f 100%);
}

/* Nebula effects for public pages */
.gc-public-nebula {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  background:
    radial-gradient(ellipse at top left, rgba(138, 43, 226, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse at bottom right, rgba(0, 212, 255, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse at center bottom, rgba(0, 255, 136, 0.1) 0%, transparent 60%);
  filter: blur(60px);
}

/* Multiple star layers for depth */
.gc-public-stars-1 {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 40px 70px, #fff, transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, #fff, transparent),
    radial-gradient(1px 1px at 160px 30px, #fff, transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.6;
}

.gc-public-stars-2 {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(1px 1px at 25px 25px, #b0e0ff, transparent),
    radial-gradient(1px 1px at 75px 75px, #ffd4e5, transparent),
    radial-gradient(1px 1px at 125px 25px, #ffffcc, transparent),
    radial-gradient(1px 1px at 175px 75px, #b0e0ff, transparent);
  background-repeat: repeat;
  background-size: 250px 250px;
  opacity: 0.4;
}

.gc-public-stars-3 {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 100px 100px, #fff, transparent),
    radial-gradient(2px 2px at 200px 50px, #00d4ff, transparent),
    radial-gradient(2px 2px at 50px 200px, #a78bfa, transparent);
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: 0.3;
}

/* Subtle grid pattern for sci-fi feel */
.gc-public-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
}

/* Planet silhouette in corner */
.gc-public-planet {
  position: absolute;
  bottom: -200px;
  right: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a1f2e, #0a0e1a);
  box-shadow:
    inset -15px -15px 30px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(0, 212, 255, 0.05);
  opacity: 0.3;
}

/* Shooting star streak */
.gc-public-shooting-star {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0.2;
  transform: rotate(-30deg);
}

/* Content area enhancement */
.gc-public-content {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Enhance text readability on space background */
.gc-public-space-bg + * {
  position: relative;
  z-index: 1;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .gc-public-planet {
    bottom: -150px;
    right: -100px;
    width: 250px;
    height: 250px;
  }

  .gc-public-stars-1,
  .gc-public-stars-2,
  .gc-public-stars-3 {
    background-size: 150px 150px, 200px 200px, 250px 250px;
  }
}

@media (max-width: 480px) {
  .gc-public-nebula {
    opacity: 0.15;
    filter: blur(40px);
  }

  .gc-public-planet {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -75px;
  }
}