/* ================================================================
   DREAMWAVE FM — Home Feed CSS (Phase 2)
   Design tokens: neon pink #ff71ce, blue #01cdfe, purple #b967ff
   Dark bg: #0d0221 | Fonts: Press Start 2P + VT323
   ================================================================ */

/* ---- Home Feed Container ---- */
#homeFeed,
#home-view,
.home-feed {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-sizing: border-box;
}

/* ---- Hero Section ---- */
.home-hero {
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(135deg, rgba(185, 103, 255, 0.15) 0%, rgba(1, 205, 254, 0.1) 50%, rgba(255, 113, 206, 0.12) 100%);
  border: 1px solid rgba(185, 103, 255, 0.3);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(1, 205, 254, 0.03) 2px,
    rgba(1, 205, 254, 0.03) 4px
  );
  pointer-events: none;
}

.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: var(--neon-pink, #ff71ce);
  text-shadow:
    0 0 10px rgba(255, 113, 206, 0.8),
    0 0 30px rgba(255, 113, 206, 0.4);
  margin: 0 0 8px;
  letter-spacing: 2px;
  animation: glow-pulse 3s ease-in-out infinite;
}

.hero-sub {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--neon-blue, #01cdfe);
  text-shadow: 0 0 12px rgba(1, 205, 254, 0.6);
  margin: 0;
  letter-spacing: 3px;
}

.hero-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 32px;
  margin-top: 16px;
}

.wave-bar {
  width: 6px;
  background: linear-gradient(to top, var(--neon-purple, #b967ff), var(--neon-blue, #01cdfe));
  border-radius: 3px;
  animation: wave-bounce 1.2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(185, 103, 255, 0.5);
}

.wave-bar:nth-child(1) { animation-delay: 0.0s; height: 16px; }
.wave-bar:nth-child(2) { animation-delay: 0.15s; height: 28px; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; height: 20px; }
.wave-bar:nth-child(4) { animation-delay: 0.1s; height: 36px; }
.wave-bar:nth-child(5) { animation-delay: 0.25s; height: 22px; }
.wave-bar:nth-child(6) { animation-delay: 0.05s; height: 30px; }

@keyframes wave-bounce {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1.2); }
}

@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 113, 206, 0.8), 0 0 30px rgba(255, 113, 206, 0.4); }
  50% { text-shadow: 0 0 20px rgba(255, 113, 206, 1), 0 0 50px rgba(255, 113, 206, 0.6), 0 0 80px rgba(255, 113, 206, 0.3); }
}

/* ---- Sections ---- */
.home-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--neon-blue, #01cdfe);
  text-shadow: 0 0 10px rgba(1, 205, 254, 0.5);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-count {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--neon-pink, #ff71ce);
}

/* ---- Mood Grid ---- */
.mood-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'VT323', monospace;
}

.mood-card:hover {
  transform: scale(1.04);
  filter: brightness(1.15);
}

.mood-name {
  font-size: 15px;
  font-weight: bold;
}

.mood-count {
  font-size: 13px;
}

/* ---- Mixes Row ---- */
.mixes-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.mix-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(13, 2, 33, 0.6);
  border: 1px solid rgba(185, 103, 255, 0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mix-card:hover {
  background: rgba(185, 103, 255, 0.12);
  border-color: rgba(185, 103, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(185, 103, 255, 0.2);
}

.mix-card:active {
  transform: translateY(0);
}

.mix-icon {
  font-size: 32px;
  flex-shrink: 0;
  line-height: 1;
}

.mix-info {
  flex: 1;
  min-width: 0;
}

.mix-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--neon-pink, #ff71ce);
  text-shadow: 0 0 8px rgba(255, 113, 206, 0.4);
  margin-bottom: 5px;
}

.mix-desc {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3px;
}

.mix-count {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: var(--neon-blue, #01cdfe);
  opacity: 0.8;
}

.mix-play {
  font-size: 20px;
  color: var(--neon-green, #05ffa1);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s ease;
}

.mix-card:hover .mix-play {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Feed Row (Compact Track Rows) ---- */
.feed-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(185, 103, 255, 0.3) transparent;
  -webkit-overflow-scrolling: touch;
}

.feed-grid::-webkit-scrollbar {
  height: 3px;
}

.feed-grid::-webkit-scrollbar-track {
  background: transparent;
}

.feed-grid::-webkit-scrollbar-thumb {
  background: rgba(185, 103, 255, 0.3);
  border-radius: 2px;
}

/* ---- Feed Card (deprecated block card, restyled as compact track row) ---- */
.feed-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(13, 2, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.feed-card:hover {
  background: rgba(185, 103, 255, 0.1);
  border-color: rgba(185, 103, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(185, 103, 255, 0.12);
}

.feed-card.playing {
  border-color: rgba(1, 205, 254, 0.4);
  background: rgba(1, 205, 254, 0.05);
  box-shadow: 0 0 16px rgba(1, 205, 254, 0.12);
}

.card-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(185, 103, 255, 0.2), rgba(1, 205, 254, 0.12));
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.feed-card.playing .card-title {
  color: var(--neon-blue, #01cdfe);
  text-shadow: 0 0 8px rgba(1, 205, 254, 0.5);
}

.card-artist {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.card-mood {
  font-family: 'VT323', monospace;
  font-size: 11px;
  color: var(--neon-purple, #b967ff);
  background: rgba(185, 103, 255, 0.12);
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(185, 103, 255, 0.25);
}

.card-album {
  font-family: 'VT323', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 88px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.card-like {
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
}

.feed-card:hover .card-like,
.feed-card.playing .card-like {
  opacity: 1;
}

.card-like:hover {
  color: var(--neon-pink, #ff71ce);
  transform: scale(1.15);
}

.card-like.liked {
  color: var(--neon-pink, #ff71ce);
  opacity: 1;
  text-shadow: 0 0 8px rgba(255, 113, 206, 0.6);
}

/* ---- Card Animated Bars ---- */
.card-bars {
  position: static;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  flex-shrink: 0;
}

.card-bars .bar {
  width: 3px;
  background: linear-gradient(to top, var(--neon-blue, #01cdfe), var(--neon-purple, #b967ff));
  border-radius: 2px;
  animation: bar-dance 0.6s ease-in-out infinite alternate;
}

.card-bars .bar:nth-child(1) { animation-delay: 0.0s; }
.card-bars .bar:nth-child(2) { animation-delay: 0.15s; }
.card-bars .bar:nth-child(3) { animation-delay: 0.3s; }

@keyframes bar-dance {
  0% { height: 4px; }
  100% { height: 12px; }
}

/* ---- Bar Animations (shared with playlist) ---- */
.visualizer .bar.animating,
.feed-card .bar.animating {
  animation: bar-dance 0.6s ease-in-out infinite alternate;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
  .hero-title { font-size: 16px; }
  .hero-sub { font-size: 18px; }
  .hero-wave { height: 30px; gap: 3px; }
  .wave-bar { width: 4px; }
  .wave-bar:nth-child(1) { height: 10px; }
  .wave-bar:nth-child(2) { height: 18px; }
  .wave-bar:nth-child(3) { height: 14px; }
  .wave-bar:nth-child(4) { height: 24px; }
  .wave-bar:nth-child(5) { height: 16px; }
  .wave-bar:nth-child(6) { height: 20px; }

  .section-title { font-size: 9px; }
  .feed-card { min-width: 200px; max-width: 200px; }
  .mixes-row { grid-template-columns: 1fr; }
  .mood-grid { gap: 8px; }
}

@media (max-width: 480px) {
  #homeFeed, #home-view, .home-feed { padding: 12px 10px 80px; }
  .home-hero { padding: 28px 14px; }
  .hero-title { font-size: 13px; }
  .feed-card { min-width: 180px; max-width: 180px; }
}

/* ===== VAPOR BOOST 2026 ===== */
.home-hero {
  background:
    radial-gradient(circle at top left, rgba(255, 113, 206, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(1, 205, 254, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(24, 7, 44, 0.96), rgba(9, 2, 26, 0.94));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(255, 113, 206, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.section-title {
  text-shadow:
    0 0 14px rgba(255, 113, 206, 0.18),
    0 0 24px rgba(1, 205, 254, 0.08);
}

.mood-card,
.mix-card,
.feed-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(185, 103, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mood-card:hover,
.mix-card:hover,
.feed-card:hover {
  border-color: rgba(255, 113, 206, 0.28);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(255, 113, 206, 0.16),
    0 0 22px rgba(1, 205, 254, 0.08);
}

.mix-title,
.mix-subtitle,
.card-title {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

