/* ==========================================================================
   Night Sky & Atmospheric Animations (bg.jpg ile Gece Gökyüzü)
   ========================================================================== */

/* Arka plan doğrudan body üzerine fixed olarak bağlanır */
body {
  background-color: #050e1a !important;
  background-image: url('../images/bg.jpg') !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

/* Gece Gökyüzü Animasyon Katmanı (Kayan yıldızlar, parlayan ay, parçacıklar) */
.night-sky-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* Body'nin üstünde, hikaye kartının (z-index: 10) altında */
  pointer-events: none;
  overflow: hidden;
}

/* Hafif atmosferik tonlama - bg.jpg ve Kabe manzarasını net gösterir */
.night-sky-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(3, 10, 22, 0.12) 0%,
    rgba(3, 10, 22, 0.04) 40%,
    rgba(3, 10, 22, 0.3) 75%,
    rgba(3, 10, 22, 0.6) 100%
  );
  pointer-events: none;
}

/* ==========================================================================
   Parlayan Gerçek Dolunay (moon.png + Parlama Işıltısı)
   ========================================================================== */

.moon-glow {
  position: absolute;
  top: -30px;
  left: -20px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: url('../images/moon.png') center center no-repeat;
  background-size: contain;
  filter: drop-shadow(0 0 35px rgba(224, 242, 254, 0.9)) drop-shadow(0 0 85px rgba(56, 189, 248, 0.7));
  animation: moonGlowPulse 5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
}

.moon-halo-ring {
  position: absolute;
  top: -50px;
  left: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.4) 0%, rgba(125, 211, 252, 0.2) 45%, transparent 70%);
  animation: haloBreathe 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes moonGlowPulse {
  0% {
    filter: drop-shadow(0 0 25px rgba(186, 230, 253, 0.75)) drop-shadow(0 0 55px rgba(56, 189, 248, 0.5));
    transform: scale(0.97);
  }
  100% {
    filter: drop-shadow(0 0 50px rgba(224, 242, 254, 0.98)) drop-shadow(0 0 110px rgba(56, 189, 248, 0.85));
    transform: scale(1.03);
  }
}

@keyframes haloBreathe {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* ==========================================================================
   Yıldızlar ve Kayan Yıldızlar Canvas'ı
   ========================================================================== */

#skyCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Canvas handles occasional shooting stars smoothly */
.shooting-star {
  display: none;
}

/* ==========================================================================
   Hafif Gece Sisi (Night Mist)
   ========================================================================== */

.night-mist {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 30%;
  background: radial-gradient(
    ellipse at bottom,
    rgba(2, 6, 23, 0.45) 0%,
    rgba(2, 6, 23, 0.15) 60%,
    transparent 100%
  );
  animation: mistDrift 30s linear infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes mistDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-15%); }
}
