/* ================================================================= */
/* YILDIZLI GECE (STARRY NIGHT / CONSTELLATIONS) STİLLERİ */
/* ================================================================= */
.stars-header {
  text-align: center;
  margin-bottom: 20px;
}

.light-text {
  color: white !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Canvas Konteyneri */
.stars-canvas-container {
  flex: 1;
  position: relative;
  background: radial-gradient(circle at center, #1b1429 0%, #0d0914 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(255, 71, 126, 0.15);
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  margin-top: 10px;
  min-height: 400px;
}

#stars-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none; /* Mobilde scroll'u engeller, pointer event'leri çalışır */
}

/* Yıldız Anısı Detay Kartı (Modal Yapısı) */
.star-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 9, 20, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999; /* Canvas ve diğer her şeyin üstünde */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  cursor: default;
}

.star-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.star-modal-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--rose-light);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border-radius: 24px;
  padding: 40px 30px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  transform: translateY(30px) scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

.star-modal-backdrop.open .star-modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;  /* Mobilde daha büyük dokunma alanı */
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.05);
  background: #f5f5f5;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10001; /* Modal kartının üstünde kesinlikle */
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.modal-close-btn:hover {
  background: var(--rose-deep);
  color: white;
  transform: scale(1.1);
}

.modal-emoji {
  font-size: 50px;
  margin-bottom: 15px;
  animation: modalEmojiFloat 3s ease-in-out infinite alternate;
}

@keyframes modalEmojiFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.05); }
}

.modal-title {
  font-family: var(--primary-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.modal-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--rose-deep);
  background: var(--rose-extra-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.modal-description {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.6;
  text-align: justify;
}

/* Gökyüzündeki Yıldız Bilgi İpucu (Hover) */
.star-tooltip {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--rose-light);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rose-deep);
  pointer-events: none;
  transform: translate(-50%, -100%) translateY(-10px);
  z-index: 50;
  opacity: 0;
  transition: opacity 0.2s;
}

.star-tooltip.visible {
  opacity: 1;
}

/* ================================================================= */
/* RESPONSIVE */
/* ================================================================= */
@media (max-width: 768px) {
  .stars-canvas-container {
    min-height: 350px;
  }
  .star-modal-card {
    padding: 30px 20px;
  }
}
