@import url(../style/global.css);

/* estrelas no fundo */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: radial-gradient(white 1px, transparent 1px),
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(white 2px, transparent 2px);

  background-size: 120px 120px, 200px 200px, 350px 350px;
  opacity: 0.2;

  pointer-events: none;
}

/* layout principal */
main {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* header */
header {
  background-color: black;
  font-size: 150%;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  font-size: 2.3rem;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;

  /* glow espacial */
  text-shadow: 0 0 10px #4aa3ff, 0 0 20px #4aa3ff, 0 0 40px #1e40ff;
}

p {
  display: flex;
  justify-content: center;
}

/* titulo da imagem */

.apod-title {
  color: #ffd700;
  text-align: center;
  font-size: 1.8rem;
  margin-top: 20px;

  text-shadow: 0 0 10px #ffd700;
}

/* data */

.apod-date {
  text-align: center;
  opacity: 0.8;
  margin-bottom: 10px;
}

/* imagem */

.apod-img {
  display: block;
  margin: 20px auto;
  border-radius: 14px;

  max-width: 800px;
  width: 100%;

  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(50, 120, 255, 0.4);

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* efeito hover */

.apod-img:hover {
  transform: scale(1.03);

  box-shadow: 0 0 40px rgba(80, 150, 255, 0.7), 0 0 60px rgba(80, 150, 255, 0.4);
}

/* label */

.apod-explain-label {
  text-align: center;
  font-size: 1.3rem;
  margin-top: 10px;
  color: #7fc8ff;
}

/* explicação */

.apod-explain {
  margin-top: 10px;
  line-height: 1.7;

  padding: 15px 20px;

  text-align: center;

  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;

  backdrop-filter: blur(6px);
}

/* loading */

.loading {
  text-align: center;
  margin-top: 80px;
  font-size: 1.2rem;
  opacity: 0.7;
}

.site-footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.github-link {
  margin: 15px 0;
}

.github-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 8px 14px;

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.08);

  transition: 0.3s;
}

.github-link a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.authors {
  font-size: 0.9rem;
  opacity: 0.8;
}