/* ============================================
   VotaBanda — Custom CSS (Neon Millennium Theme)
   ============================================ */

:root {
  --pink:    #ff1493;
  --yellow:  #ffd700;
  --cyan:    #00e5ff;
  --purple:  #9c27b0;
  --dark:    #0a0a1a;
  --card:    #12122a;
  --border:  #2a2a4a;
  --text:    #ffffff;
  --muted:   #8888aa;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  background: var(--dark);
  font-family: 'Rajdhani', sans-serif;
  color: var(--text);
  overscroll-behavior: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 2px; }

/* ── Typography ── */
.font-orbitron { font-family: 'Orbitron', sans-serif; }

/* ── Neon glow texts ── */
.neon-text-pink   { color: var(--pink);   text-shadow: 0 0 10px var(--pink),   0 0 30px var(--pink); }
.neon-text-yellow { color: var(--yellow); text-shadow: 0 0 10px var(--yellow), 0 0 30px var(--yellow); }
.neon-text-cyan   { color: var(--cyan);   text-shadow: 0 0 10px var(--cyan),   0 0 30px var(--cyan); }

/* ── Cards ── */
.glass-card {
  background: rgba(18, 18, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 20, 147, 0.25);
  border-radius: 20px;
}

.neon-card {
  background: rgba(18, 18, 42, 0.9);
  border: 1px solid rgba(255, 20, 147, 0.3);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.1), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.neon-card:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255, 20, 147, 0.2); }

/* ── Buttons ── */
.btn-neon-pink {
  background: linear-gradient(135deg, #ff1493, #c2185b);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255,20,147,0.4), 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-neon-pink:hover { transform: translateY(-2px); box-shadow: 0 0 35px rgba(255,20,147,0.6), 0 6px 20px rgba(0,0,0,0.4); }
.btn-neon-pink:active { transform: translateY(0); }

.btn-neon-cyan {
  background: linear-gradient(135deg, #00e5ff, #0097a7);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,229,255,0.4), 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-neon-cyan:hover { transform: translateY(-2px); box-shadow: 0 0 35px rgba(0,229,255,0.6); }

.btn-neon-yellow {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255,215,0,0.4);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 24px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 20, 147, 0.2);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-item svg { width: 22px; height: 22px; transition: filter 0.2s; }
.nav-item.active { color: var(--pink); }
.nav-item.active svg { filter: drop-shadow(0 0 6px var(--pink)); }
.nav-item:hover { color: var(--cyan); }

/* ── Page Header ── */
.page-header {
  padding: 20px 20px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pink);
  text-shadow: 0 0 15px rgba(255,20,147,0.5);
  margin: 0;
}

/* ── Category Cards (Home) ── */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 8px 16px 16px;
}
.category-card {
  border-radius: 18px;
  padding: 18px 14px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.category-card:hover { transform: scale(1.03); }
.category-card:active { transform: scale(0.97); }
.category-icon { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.category-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  display: block;
}
.category-stats { font-size: 0.75rem; color: rgba(255,255,255,0.65); margin-top: 4px; }
.category-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.4);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}

/* ── Vote / Swipe Card ── */
.vote-container {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.song-card-wrapper {
  position: relative;
  width: 100%;
}

.song-card {
  background: rgba(18, 18, 42, 0.95);
  border: 1px solid rgba(255, 20, 147, 0.35);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(255,20,147,0.15), 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.4s;
}

.song-card.exit-left {
  animation: exitLeft 0.45s cubic-bezier(0.55,0,1,0.45) forwards;
}
.song-card.enter-right {
  animation: enterRight 0.45s cubic-bezier(0,0,0.25,1) forwards;
}

@keyframes exitLeft {
  0%   { transform: translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translateX(-110%) rotate(-8deg); opacity: 0; }
}
@keyframes enterRight {
  0%   { transform: translateX(110%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.song-info { padding: 16px 18px 12px; }
.song-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.3;
}
.song-artist {
  font-size: 0.9rem;
  color: var(--cyan);
  font-weight: 600;
}
.song-suggester { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

/* ── Star Rating ── */
.stars-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px 18px;
  background: rgba(0,0,0,0.3);
}
.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.star-btn:active { transform: scale(0.88); }
.star-btn svg {
  width: 40px;
  height: 40px;
  transition: fill 0.15s, filter 0.15s, transform 0.15s;
  fill: var(--border);
}
.star-btn.hovered svg,
.star-btn.selected svg {
  fill: var(--yellow);
  filter: drop-shadow(0 0 8px var(--yellow));
  transform: scale(1.15);
}
.star-vote-label {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0 18px 14px;
  letter-spacing: 1px;
}

/* ── Completion Card ── */
.completion-card {
  text-align: center;
  padding: 40px 24px;
}
.completion-emoji { font-size: 4rem; margin-bottom: 16px; display: block; }
.completion-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(255,215,0,0.6);
  margin-bottom: 8px;
}
.completion-subtitle { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }

/* ── Ranking ── */
.tab-bar {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 0 16px 12px;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab-btn.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 0 15px rgba(255,20,147,0.4);
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.rank-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  min-width: 36px;
  text-align: center;
}
.rank-1 { color: #ffd700; text-shadow: 0 0 12px #ffd700; }
.rank-2 { color: #c0c0c0; text-shadow: 0 0 12px #c0c0c0; }
.rank-3 { color: #cd7f32; text-shadow: 0 0 12px #cd7f32; }
.rank-other { color: var(--muted); }

.ranking-stars {
  display: flex;
  gap: 2px;
  align-items: center;
}
.ranking-stars svg { width: 14px; height: 14px; }
.star-full { fill: var(--yellow); }
.star-empty { fill: var(--border); }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,20,147,0.15);
}
.form-input::placeholder { color: var(--muted); }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff1493'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  padding-right: 40px;
}

/* ── Flash Toast ── */
.flash-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  max-width: 90vw;
  text-align: center;
  transition: opacity 0.6s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.flash-success { background: linear-gradient(135deg, #00c853, #1b5e20); color: #fff; }
.flash-error   { background: linear-gradient(135deg, #ff1744, #b71c1c); color: #fff; }

/* ── Animated background decorations ── */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-pink   { background: var(--pink);   width: 350px; height: 350px; top: -100px; right: -80px; }
.bg-glow-cyan   { background: var(--cyan);   width: 280px; height: 280px; bottom: 100px; left: -80px; }
.bg-glow-yellow { background: var(--yellow); width: 200px; height: 200px; bottom: 200px; right: -50px; }

/* ── User Avatar Header ── */
.user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
}
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  object-fit: cover;
}
.user-avatar-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 700;
}
.logo-small {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--yellow);
  text-shadow: 0 0 12px rgba(255,215,0,0.5);
}

/* ── My Songs ── */
.my-song-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.my-song-thumb {
  width: 52px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--card);
  flex-shrink: 0;
  overflow: hidden;
}
.my-song-thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-song-info { flex: 1; min-width: 0; }
.my-song-title { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-song-artist { font-size: 0.8rem; color: var(--muted); }
.my-song-stats { font-size: 0.75rem; color: var(--cyan); margin-top: 2px; }

/* ── Limit indicator ── */
.limit-bar {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 4px;
}
.limit-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  transition: background 0.2s;
}
.limit-dot.filled { background: var(--pink); box-shadow: 0 0 6px var(--pink); }

/* ── Progress bar votes ── */
.progress-container { padding: 0 16px 16px; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--pink), var(--yellow)); border-radius: 2px; transition: width 0.5s; }

/* ── No content ── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}
.empty-state .emoji { font-size: 3rem; display: block; margin-bottom: 12px; }
.empty-state .message { font-size: 1rem; }

/* ── Animations ── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(255,20,147,0.3); }
  50%       { box-shadow: 0 0 30px rgba(255,20,147,0.7); }
}
.pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.float-anim { animation: float 3s ease-in-out infinite; }

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
