/* ============================================
   LISTN2ME Studio Theme — Bootstrap 5 Override
   ============================================ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-body:   #0d0d14;
  --bg-card:   #16161f;
  --bg-input:  #111118;
  --border:    rgba(255,255,255,.07);
  --gold:      #F4B41A;
  --red:       #E63946;
  --emerald:   #10b981;
  --slate:     #8b95a8;
  --white:     #f1f3f5;
}

/* ── Global reset over Bootstrap ── */
html, body {
  background: var(--bg-body) !important;
  color: var(--white) !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* ── Ambient glow (subtle, behind everything) ── */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
}
body::before { top: -15%; left: -10%; background: rgba(230,57,70,.10); }
body::after  { bottom: -15%; right: -10%; background: rgba(244,180,26,.08); }

/* ── Utility: max-widths ── */
.mw-1280 { max-width: 1280px; }
.mw-440  { max-width: 440px; }
.mw-720  { max-width: 720px; }

/* ── Cards / Panels ── */
.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}

/* ── Text helpers ── */
.text-gold   { color: var(--gold) !important; }
.text-red    { color: var(--red) !important; }
.text-em     { color: var(--emerald) !important; }
.text-slate  { color: var(--slate) !important; }
.bg-body-alt { background: var(--bg-body) !important; }
.bg-card     { background: var(--bg-card) !important; }
.bg-input    { background: var(--bg-input) !important; }
.fw-800      { font-weight: 800 !important; }
.fw-900      { font-weight: 900 !important; }
.ls-wide     { letter-spacing: .06em; }

/* ── Sticky header glass ── */
.navbar-studio {
  background: rgba(13,13,20,.92) !important;
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-bar-secondary {
  background: rgba(8,8,12,.85);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Role pill group ── */
.role-group {
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.role-group .role-btn {
  border: none;
  background: transparent;
  color: var(--slate);
  font-weight: 700;
  font-size: .75rem;
  padding: 5px 14px;
  border-radius: 999px;
  transition: .2s;
  cursor: pointer;
}
.role-group .role-btn:hover { color: #fff; }
.role-group .role-btn.active {
  background: var(--gold);
  color: #000;
  box-shadow: 0 2px 12px rgba(244,180,26,.35);
}

/* ── Language pill ── */
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 5px 14px 5px 12px;
  transition: .2s;
}
.lang-pill:hover {
  border-color: var(--gold);
  background: rgba(255,255,255,.08);
}
.lang-pill .fa-globe { color: var(--gold); font-size: .9rem; }
.lang-pill select {
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23F4B41A'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 10px;
}
.lang-pill select option { background: #1a1a24; color: #fff; }

/* ── Nav tabs (secondary bar) ── */
.nav-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--slate);
  font-weight: 800;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  transition: .15s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.nav-tab-item:hover { color: #fff; }
.nav-tab-item.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── Swipe Card ── */
.swipe-deck {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 480px;
  margin: 0 auto;
}
.swipe-deck .card-back {
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  transform: scale(.94) translateY(12px);
  opacity: .4;
  pointer-events: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.swipe-deck .card-back img { width: 100%; height: 100%; object-fit: cover; filter: blur(4px); opacity: .5; }

.swipe-deck .card-front {
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  cursor: grab;
  user-select: none;
  transition: transform .15s;
}
.swipe-deck .card-front:active { cursor: grabbing; }

.card-front .card-img-wrap {
  position: relative;
  height: 260px;
  flex-shrink: 0;
  overflow: hidden;
}
.card-front .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.card-front:hover .card-img-wrap img { transform: scale(1.04); }
.card-front .card-img-wrap .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 60%);
}

.card-front .card-body-custom {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ── Pill badges on card ── */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
}

/* ── Progress bar ── */
.progress-studio {
  height: 8px;
  background: var(--bg-body);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-studio .bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #f59e0b, var(--red));
  transition: width .5s;
}

/* ── Action Buttons (Swipe) ── */
.swipe-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 0;
}
.swipe-actions .act-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.swipe-actions .act-btn:hover  { transform: scale(1.15); }
.swipe-actions .act-btn:active { transform: scale(.92); }

.act-btn.skip {
  background: transparent;
  border: 2px solid rgba(230,57,70,.5);
  color: var(--red);
}
.act-btn.skip:hover { background: var(--red); color: #fff; box-shadow: 0 0 20px rgba(230,57,70,.5); }

.act-btn.super {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--gold), var(--red));
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(244,180,26,.4);
}
.act-btn.super:hover { box-shadow: 0 0 34px rgba(244,180,26,.6); }

.act-btn.like {
  background: transparent;
  border: 2px solid rgba(16,185,129,.5);
  color: var(--emerald);
}
.act-btn.like:hover { background: var(--emerald); color: #000; box-shadow: 0 0 20px rgba(16,185,129,.5); }

/* ── Swipe overlays ── */
.swipe-overlay {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  font-weight: 900;
  font-size: 1.4rem;
  padding: 10px 22px;
  border-radius: 1rem;
  border: 2px solid #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  transition: opacity .15s;
}

/* ── Vinyl spinner ── */
@keyframes vinyl { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.vinyl-spin { animation: vinyl 14s linear infinite; }

/* ── Mini player ── */
.mini-player-bar {
  background: rgba(13,13,20,.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}

/* ── Footer ── */
footer { background: var(--bg-body); border-top: 1px solid var(--border); }
footer a, footer button { text-decoration: none !important; }
footer a:hover, footer button:hover { color: var(--gold) !important; }

/* ── Form overrides ── */
.form-control, .form-select {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: #fff !important;
  border-radius: .75rem !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(244,180,26,.2) !important;
}
.form-range::-webkit-slider-thumb { background: var(--gold) !important; }
.form-check-input:checked { background-color: var(--gold) !important; border-color: var(--gold) !important; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Bounce Animation ── */
@keyframes bounce-sm {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.bounce-sm { animation: bounce-sm 1.5s infinite; }

/* ── Selection ── */
::selection { background: var(--gold); color: #000; }
