/* ===============================
   GLOBAL / BASE STYLES
   =============================== */

body {
  background-color: black;
  color: white;
  font-family: "Archivo Black", sans-serif;
  margin: 0;
  padding: 70px 20px 40px; /* slightly more top padding for navbar */
  text-align: center;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}

h1 {
  font-size: 2.2em;      /* slightly bigger title */
  margin-bottom: 20px;
}

p {
  font-size: 1.2em;
  color: #ddd;
  max-width: 750px;
  margin: 0 auto 10px;
  text-align: left !important;
}

a {
  color: #c783ff;
  text-decoration: none;
}

/* ===============================
   NAVBAR
   =============================== */

.navbar {
  width: 100%;
  background-color: #111;
  padding: 12px 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid #333;

  display: flex;
  justify-content: center;
  flex-wrap: nowrap; /* no wrap by default on desktop */
  gap: 36px;         /* generous spacing for desktop */
}

.navbar a {
  color: #ccc;
  text-decoration: none;
  font-size: 1.05em;
  font-weight: bold;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.navbar a:hover {
  color: white;
}

.navbar a.active {
  color: #c783ff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;  /* allow wrapping on smaller screens */
    gap: 16px;        /* tighter spacing for mobile */
    padding: 10px 0;
  }

  .navbar a {
    font-size: 0.95em; /* slightly smaller text for mobile */
  }
}

/* ===============================
   HOMEPAGE ALBUM CARD
   =============================== */

.title {
  font-size: 2.2em;      /* slightly bigger */
  margin-bottom: 20px;
  color: #f5f5f5;
  text-shadow: 0 0 10px rgba(255,255,255,0.12);
  animation: fadeIn 1s ease-out;
}

.album-card {
  max-width: 420px;       /* slightly wider */
  padding: 25px;          /* slightly more padding */
  margin: 0 auto 20px;
  background-color: #111;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(255,255,255,0.12);
  animation: slideUp 0.7s ease-out;
}

.now-listening {
  font-size: 1.15em;      /* slightly bigger */
  letter-spacing: 1px;
  color: #aaa;
  margin-bottom: 6px;
}

.album-name {
  font-size: 1.85em;      /* bigger */
  font-weight: bold;
  margin-bottom: 4px;
}

.album-artist {
  font-size: 1.45em;      /* bigger */
  margin-bottom: 8px;
  color: #ccc;
}

.album-meta {
  font-size: 1.15em;      /* slightly bigger */
  margin-bottom: 4px;
  color: #bbb;
}

.album-art {
  margin-top: 15px;
  max-width: 280px;       /* bigger */
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255,255,255,0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.album-art:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px rgba(255,255,255,0.25);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pulse-emoji {
  display: inline-block;
  animation: pulse 2.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.9; }
  50%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

/* ===============================
   PROGRESS BAR
   =============================== */

.progress-label {
  font-size: 1.18em;      /* slightly bigger */
  margin-top: 15px;
  margin-bottom: 6px;
  color: #ccc;
}

.progress-bar {
  width: 90%;
  max-width: 420px;
  height: 14px;            /* thicker */
  margin: 0 auto 20px;
  background-color: #221733;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(185,145,255,0.3);
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: linear-gradient(90deg, #8e44ff, #c783ff);
  box-shadow: 0 0 18px rgba(180,120,255,0.6);
  transition: width 1s ease-in-out;
}

/* ===============================
   REVIEWS TABLE
   =============================== */

/* Default desktop/table visible */
#desktop-table {
  display: block;
}
#mobile-cards {
  display: none;
}

/* Mobile cards visible on small screens */
@media (max-width: 600px) {
  #desktop-table {
    display: none;
  }
  #mobile-cards {
    display: block;
  }
}

/* Mobile card styling */
.review-card {
  background-color: #111;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 15px;
  box-shadow: 0 0 15px rgba(255,255,255,0.05);
}

.review-card .row-number {
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
}

.review-card .album {
  font-weight: bold;
  color: #fff;
}

.review-card .artist {
  color: #ccc;
  margin-bottom: 6px;
}

.review-card .emoji {
  font-size: 1.7em;
  display: inline-block;
  margin-bottom: 6px;
}

.review-card .haiku {
  font-style: italic;
  color: #ccc;
  white-space: pre-line;
  font-size: 1em;
}


/* Desktop table (unchanged) */
table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

th, td {
  padding: 14px;
  border-bottom: 1px solid #333;
}

th {
  background-color: #222;
  font-size: 1.15em;
  font-weight: bold;
}

tr:hover {
  background-color: #1a1a1a;
}

.emoji {
  font-size: 1.7em;
}

.haiku {
  font-style: italic;
  color: #ccc;
  white-space: pre-line;
  font-size: 1.05em;
}

table th:nth-child(2),
table td:nth-child(2) {
  width: 200px;          /* adjust as needed */
  text-align: center;
}
table th:nth-child(3),
table td:nth-child(3) {
  width: 120px;          /* adjust as needed */
  text-align: center;
}


/* ===============================
   RESPONSIVE DESIGN
   =============================== */

@media (max-width: 600px) {
  .navbar a {
    margin: 0 10px;
    font-size: 1em;
  }

  table {
    font-size: 0.95em;
  }

  .emoji {
    font-size: 1.5em;
  }

  .album-art {
    max-width: 230px;
  }

  .album-card {
    padding: 20px;
  }

  .album-name {
    font-size: 1.65em;
  }

  .album-artist {
    font-size: 1.25em;
  }
}

/* ================================
   UP NEXT STYLES
================================ */
#upnext {
  margin-top: 25px;
  margin-bottom: 20px;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

.upnext-label {
  font-size: 1.1em;
  color: #aaa;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.upnext-name {
  font-size: 1.45em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 2px;
}

.upnext-artist {
  font-size: 1.2em;
  color: #ccc;
}