/* public/stars.css */

.stars-app {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, #020308 0%, #060914 100%);
  overflow: hidden;
}

/* Base night sky texture */
.stars-app::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="0.5" fill="rgba(255,255,255,0.8)"/><circle cx="80" cy="40" r="0.8" fill="rgba(255,255,255,0.6)"/><circle cx="150" cy="90" r="0.4" fill="rgba(255,255,255,0.9)"/><circle cx="30" cy="160" r="0.7" fill="rgba(255,255,255,0.5)"/><circle cx="180" cy="180" r="0.5" fill="rgba(255,255,255,0.7)"/></svg>') repeat;
  background-size: 200px 200px;
  opacity: 0.5;
  pointer-events: none;
}

.stars-ui {
  position: absolute;
  top: 40px; left: 0; right: 0;
  text-align: center;
  z-index: 20;
  pointer-events: none;
}

.stars-title {
  font-family: var(--font-display);
  color: var(--accent-stars);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-style: italic;
  font-weight: 400;
  text-shadow: 0 0 15px rgba(179,157,219,0.3);
}

.stars-subtitle {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-top: 8px;
  text-transform: uppercase;
}

/* ── SVG Lines ── */
.constellation-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 5;
  pointer-events: none;
}

.star-line {
  stroke: rgba(179,157,219,0.5);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  /* animated via JS */
}

/* ── Stars ── */
.stars-container {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.star-node {
  position: absolute;
  width: 24px; height: 24px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.star-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(255,255,255,0.8), 0 0 20px 5px rgba(179,157,219,0.4);
  transition: all 0.3s ease;
}

.star-node:hover .star-dot,
.star-node.is-active .star-dot {
  transform: scale(1.8);
  background: #fff;
  box-shadow: 0 0 15px 4px rgba(255,255,255,1), 0 0 30px 10px rgba(179,157,219,0.6);
}

.star-label {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.7rem;
  margin-top: 8px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.star-node:hover .star-label,
.star-node.is-active .star-label {
  opacity: 1;
}

/* ── Modal ── */
.memory-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.memory-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.memory-modal-content {
  background: linear-gradient(135deg, rgba(10,14,26,0.95), rgba(5,7,17,0.95));
  border: 1px solid rgba(179,157,219,0.3);
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 30px rgba(179,157,219,0.1);
  text-align: center;
}

.memory-modal.is-visible .memory-modal-content {
  transform: scale(1);
}

.memory-close {
  position: absolute;
  top: 15px; right: 15px;
  background: none; border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.memory-close:hover {
  color: var(--text-primary);
}

.memory-date {
  color: var(--accent-stars);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.memory-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.memory-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,248,220,0.8);
}
