/* ============================================
   ViralClips AI — Season Pass / Battle Pass CSS
   Dark Mode Gaming-Inspired Aesthetics
   ============================================ */

/* ============ SEASON HEADER ============ */
.bp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.bp-season-info h1 {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}
.bp-season-info h1 span { color: var(--primary-400); }
.bp-season-sub {
  font-size: 14px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bp-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 15, 0.1);
  border: 1px solid rgba(245, 158, 15, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #f59e0b;
}
.bp-xp-badge {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #c4b5fd;
}

/* ============ XP PROGRESS BAR ============ */
.bp-progress-section {
  background: var(--card-bg, #1e1e2d);
  border-radius: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border-light, rgba(255,255,255,0.06));
  margin-bottom: 28px;
}
.bp-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.bp-progress-label span:first-child {
  font-size: 15px;
  font-weight: 700;
  color: #e0e0f0;
}
.bp-progress-label span:last-child {
  font-size: 22px;
  font-weight: 900;
  color: #c4b5fd;
}
.bp-progress-track {
  width: 100%;
  height: 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.bp-progress-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa, #38bdf8);
  background-size: 200% 100%;
  animation: bpShimmer 3s ease infinite;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}
@keyframes bpShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============ TIER TRACK (HORIZONTAL SCROLL) ============ */
.bp-track-wrapper {
  background: var(--card-bg, #1e1e2d);
  border-radius: 16px;
  padding: 24px 0 24px 24px;
  border: 1px solid var(--border-light, rgba(255,255,255,0.06));
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.bp-track-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  padding-right: 24px;
}
.bp-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  padding-right: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,58,237,0.3) transparent;
}
.bp-track::-webkit-scrollbar { height: 6px; }
.bp-track::-webkit-scrollbar-track { background: transparent; }
.bp-track::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 10px; }

/* ============ TIER CARDS ============ */
.bp-tier-card {
  flex: 0 0 110px;
  min-height: 140px;
  scroll-snap-align: start;
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  border: 2px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
}
.bp-tier-card .tier-num {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.bp-tier-card .tier-emoji {
  font-size: 28px;
  margin-bottom: 6px;
}
.bp-tier-card .tier-reward {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* States */
.bp-tier-card.unlocked {
  border-color: rgba(166, 227, 161, 0.3);
  background: rgba(166, 227, 161, 0.05);
}
.bp-tier-card.unlocked .tier-num { color: #a6e3a1; }

.bp-tier-card.claimed {
  border-color: rgba(166, 227, 161, 0.15);
  background: rgba(166, 227, 161, 0.03);
  opacity: 0.55;
}
.bp-tier-card.claimed::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 14px;
  color: #a6e3a1;
  font-weight: 900;
}

.bp-tier-card.active {
  border-color: var(--primary-400);
  background: rgba(124, 58, 237, 0.1);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
  transform: scale(1.05);
}
.bp-tier-card.active .tier-num { color: #c4b5fd; }

.bp-tier-card.locked {
  opacity: 0.35;
  border-color: rgba(255,255,255,0.03);
}
.bp-tier-card.locked .tier-emoji { filter: grayscale(1); }

.bp-tier-card.milestone {
  border-width: 2px;
}
.bp-tier-card.milestone.unlocked { border-color: #f59e0b; background: rgba(245, 158, 15, 0.06); }
.bp-tier-card.milestone .tier-num { color: #f59e0b; }

/* Claim Button inside card */
.bp-claim-btn {
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  background: var(--primary-500);
  color: white;
  animation: bpPulse 1.5s ease infinite;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@keyframes bpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(124, 58, 237, 0); }
}

/* ============ CONNECTOR LINE ============ */
.bp-connector {
  position: absolute;
  bottom: 55px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}
.bp-connector-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #a6e3a1, #7c3aed);
  transition: width 0.6s ease;
}

/* ============ MISSIONS SECTION ============ */
.bp-missions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .bp-missions { grid-template-columns: 1fr; }
}
.bp-missions-card {
  background: var(--card-bg, #1e1e2d);
  border-radius: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border-light, rgba(255,255,255,0.06));
}
.bp-missions-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mission Row */
.bp-mission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.bp-mission-row:hover {
  background: rgba(255,255,255,0.04);
}
.bp-mission-row.completed {
  border-color: rgba(166, 227, 161, 0.2);
  background: rgba(166, 227, 161, 0.04);
}
.mission-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mission-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #4a4a5a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.mission-check.done {
  background: #a6e3a1;
  border-color: #a6e3a1;
  color: #0f0f1a;
}
.mission-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.mission-progress-text {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.mission-xp {
  font-size: 14px;
  font-weight: 800;
  color: #c4b5fd;
  white-space: nowrap;
}
.mission-xp.done-xp {
  color: #a6e3a1;
  text-decoration: line-through;
  opacity: 0.6;
}

/* ============ CONFETTI OVERLAY ============ */
.bp-confetti {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .bp-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bp-tier-card { flex: 0 0 90px; min-height: 120px; }
  .bp-tier-card .tier-emoji { font-size: 22px; }
}
