.apod-layout {
  display: flex;
  padding: 20px;
  gap: 10px;
}

.apod-img-panel {
  flex: 2;
  min-width: 0;
}

.apod-content-panel {
  flex: 1;
  padding-right: 30px;
  align-self: flex-start;
}

#apod-img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-height: 60vh;
  object-fit: contain;
  background: rgba(var(--purple-rgb), 0.15);
  border: 1px solid rgba(var(--white-rgb), 0.07);
  border-radius: 10px;
  padding: 12px;
  box-shadow:
    0 0 30px rgba(var(--purple-rgb), 0.15),
    inset 0 1px 0 rgba(var(--purple-rgb), 0.1);
}

#apod-explanation {
  padding: 20px 0;
}

#apod-date-picker {
  background: rgba(var(--blue-dark-rgb), 0.8);
  border: 1px solid rgba(var(--cyan-rgb), 0.4);
  border-radius: 6px;
  color: var(--white);
  padding: 8px 12px;
  font-family: "Share Tech Mono";
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
  width: 40%;
}

#apod-date-picker:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.2);
}

#apod-date-picker::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
  cursor: pointer;
}

#apod-title {
  font-family: "Inter";
  padding: 15px;
  color: var(--white);
}

#apod-copyright {
  font-size: 12px;
  color: var(--grey);
}

#navbar ul li #explorenav {
  color: var(--purple);
  font-weight: bold;
}

.page-title {
  color: rgba(var(--purple-rgb));
}
nav {
  background: var(--black);
  opacity: 0.8;
}

.skeleton-img {
  width: 100%;
  height: 40vh;
  border-radius: 10px;
  background: rgba(var(--purple-rgb), 0.15);
  animation: shimmer 1.5s infinite;
}

.skeleton-text {
  height: 24px;
  width: 60%;
  border-radius: 6px;
  background: rgba(var(--purple-rgb), 0.15);
  animation: shimmer 1.5s infinite;
  margin-bottom: 16px;
}

.skeleton-text-long {
  height: 300px;
  width: 100%;
  border-radius: 6px;
  background: rgba(var(--purple-rgb), 0.15);
  animation: shimmer 1.5s infinite;
}

#apod-img-error {
  width: 100%;
  height: 40vh;
  border-radius: 10px;
  border: 1px solid rgba(var(--purple-rgb), 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--grey);
  font-family: "Share Tech Mono";
  font-size: 14px;
}

#apod-img-error p:first-child {
  font-size: 3rem;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
}

/* ***************** STAR BG ***************** */

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

#stars-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}
