/* ===========================
   General Body & Layout
   =========================== */
body {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0;
  margin: 0;
  padding: 0;
  text-align: center;

  /* Page background image repeated */
  background: url('https://i.pinimg.com/736x/d8/33/36/d83336fe20bc367afa73f15f112ef356.jpg') repeat;
  background-position: top left;
  background-attachment: scroll;
}

a {
  color: #9500FF;
  text-decoration: none;
}

h1, h3 {
  margin: 0.75em 0;
  text-align: center;
}

/* Neon glow headers */
.glow {
  color: #9500FF;
  text-shadow: 0 0 5px #9500FF, 0 0 10px #9500FF, 0 0 20px #9500FF, 0 0 40px #9500FF;
}

.neon-header {
  color: #FFFFFF;
  font-family: 'Courier New', Courier, monospace;
  text-shadow: 0 0 5px #9500FF, 0 0 10px #9500FF, 0 0 20px #9500FF, 0 0 40px #9500FF;
  font-size: 3rem;
  margin: 20px 0;
}

/* ===========================
   Header Box
   =========================== */
header {
  background: url('https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExcmE5aDNvaGJ4YXoxdDE0dm1udWd2dHppeWQ3enRpN2tvdnlkZXp0OCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/FlodpfQUBSp20/giphy.gif') repeat;
  background-position: top left;
  background-size: auto;
  background-attachment: scroll;

  border: 2px solid #9500FF;
  border-radius: 12px;
  padding: 1em 2em;
  margin: 20px auto;
  max-width: 1200px;
  text-align: center;

  box-shadow: 0 0 10px #9500FF, 0 0 20px #9500FF, 0 0 40px #9500FF, 0 0 60px #9500FF;
  animation: neonPulse 2s infinite alternate;
}

/* ===========================
   Jump Navigation (minimal)
   =========================== */
.jump-to {
  margin-top: 0.5em;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
}

.jump-to a {
  color: #FFFFFF;
  opacity: 0.75;
  transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.jump-to a:hover {
  opacity: 1;
  text-shadow: 0 0 6px #9500FF;
}

/* ===========================
   Spotify Grid & Playlist Cards
   =========================== */
.spotify-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  padding: 1em;
  max-width: 1200px;
  margin: 0 auto;
}

@media screen and (max-width: 1024px) {
  .spotify-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .spotify-grid {
    grid-template-columns: 1fr;
  }
}

.playlist-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #000000;
  border: 2px solid #9500FF;
  border-radius: 12px;
  padding: 1em;
  text-align: center;
  box-shadow: 0 0 10px #9500FF;
  height: 230px;
}

.playlist-text {
  font-weight: bold;
  font-size: 0.95em;
  color: #FFFFFF;
  margin-bottom: 0;
}

.playlist-card iframe {
  width: 100%;
  height: 170px;
  border-radius: 8px;
  border: none;
  margin-top: 0;
  flex-shrink: 0;
}

/* ===========================
   Section Titles
   =========================== */
h3 {
  color: #FFFFFF;
  text-shadow: 0 0 5px #9500FF, 0 0 10px #9500FF;
  margin-top: 1em;
}

/* Anchor offset for jump links */
#genres,
#vibes,
#lofi-ambient {
  scroll-margin-top: 120px;
}

hr {
  border: none;
  border-top: 2px solid #9500FF;
  margin: 1.5em 0;
}

/* ===========================
   Playlist Frame
   =========================== */
.playlist-frame {
  position: relative;
  margin: 30px auto;
  padding: 25px;
  max-width: 1300px;
  background: url('https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExcmE5aDNvaGJ4YXoxdDE0dm1udWd2dHppeWQ3enRpN2tvdnlkZXp0OCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/FlodpfQUBSp20/giphy.gif') repeat;
  background-position: top left;
  background-attachment: scroll;
  box-sizing: border-box;
  border: 2px solid #9500FF;
  border-radius: 12px;
  box-shadow: 0 0 10px #9500FF, 0 0 20px #9500FF, 0 0 40px #9500FF, 0 0 60px #9500FF;
}

/* ===========================
   Smooth scroll
   =========================== */
html {
  scroll-behavior: smooth;
}

/* ===========================
   Return Home Link
   =========================== */

.return-home {
  position: fixed;
  top: 16px;
  left: 18px;

  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;

  color: #FFFFFF;
  opacity: 0.7;
  text-decoration: none;
  z-index: 999;

  transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.return-home:hover {
  opacity: 1;
  text-shadow: 0 0 6px #9500FF;
}
/* ===========================
   Return Home Link (top-left)
   =========================== */
.return-home {
  position: fixed;
  top: 16px;
  left: 18px;

  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  letter-spacing: 0.12em;

  color: #9500FF;
  opacity: 1;
  text-decoration: none;
  z-index: 999;

  transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.return-home:hover {
  opacity: 1;
  text-shadow: 0 0 6px #f0f0f0;
}

/* ===========================
   Back to Top Link (top-right)
   =========================== */
.back-to-top {
  position: fixed;
  top: 16px;
  right: 18px;

  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  letter-spacing: 0.12em;

  color: #9500FF;
  opacity: 1;
  text-decoration: none;
  z-index: 999;

  transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.back-to-top:hover {
  opacity: 1;
  text-shadow: 0 0 6px #f0f0f0;
}
