/* ═══════════════════════════════════════════════════════════════════
   Battle Pass — Styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── Header Button ─────────────────────────────────────────────── */

.btn-battlepass-header {
  position: relative;
  background: linear-gradient(135deg, #6b4226, #8b6340);
  color: #f5deb3;
  border: 1px solid #c6a84b;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-battlepass-header:hover {
  background: linear-gradient(135deg, #8b6340, #a67c52);
  box-shadow: 0 0 8px rgba(198, 168, 75, 0.4);
}

.btn-battlepass-header.bp-pulse {
  animation: bpPulse 0.6s ease-in-out 5;
}

@keyframes bpPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(198, 168, 75, 0); }
  50%      { transform: scale(1.08); box-shadow: 0 0 16px rgba(198, 168, 75, 0.6); }
}

.bp-notif-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #d4382c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  padding: 0 3px;
  border: 2px solid #2b1810;
}

.bp-notif-dot.hidden {
  display: none;
}

/* ── Overlay / Modal ───────────────────────────────────────────── */

.bp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bp-modal {
  background: linear-gradient(180deg, #1a120b 0%, #2b1810 40%, #1a120b 100%);
  border: 2px solid #c6a84b;
  border-radius: 12px;
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  overflow-y: auto;
  color: #f5deb3;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(198, 168, 75, 0.15);
}

/* ── Header ────────────────────────────────────────────────────── */

.bp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px 12px;
  border-bottom: 1px solid rgba(198, 168, 75, 0.2);
}

.bp-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #c6a84b;
}

.bp-close-btn {
  background: none;
  border: none;
  color: #f5deb3;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.bp-close-btn:hover {
  opacity: 1;
}

/* ── XP Progress Bar ───────────────────────────────────────────── */

.bp-xp-bar-wrap {
  padding: 14px 24px 10px;
}

.bp-xp-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.bp-xp-current {
  font-weight: 700;
  color: #c6a84b;
}

.bp-xp-next {
  opacity: 0.7;
}

.bp-xp-bar {
  height: 12px;
  background: #3a2a1a;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(198, 168, 75, 0.3);
}

.bp-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b6340, #c6a84b, #daa520);
  border-radius: 6px;
  transition: width 0.5s ease;
  min-width: 0;
}

.bp-login-streak {
  margin-top: 6px;
  font-size: 0.8rem;
  opacity: 0.65;
}

.bp-login-icon {
  margin-right: 4px;
}

/* ── Actions ───────────────────────────────────────────────────── */

.bp-actions {
  padding: 0 24px 12px;
  text-align: right;
}

.bp-claim-all-btn {
  background: linear-gradient(135deg, #4a7a2e, #6a9b3e);
  color: #fff;
  border: 1px solid #8bc34a;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.bp-claim-all-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #5a8a3e, #7aab4e);
  box-shadow: 0 0 10px rgba(138, 195, 74, 0.3);
}

.bp-claim-all-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ── Timeline ──────────────────────────────────────────────────── */

.bp-timeline-wrap {
  padding: 0 24px 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.bp-timeline {
  display: flex;
  gap: 14px;
  padding: 10px 4px 16px;
  min-width: min-content;
}

.bp-tier-node {
  flex: 0 0 180px;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.bp-tier-node:hover {
  transform: translateY(-2px);
}

/* Locked tier */
.bp-tier-locked {
  background: #2a1f15;
  border: 1px solid #4a3828;
  opacity: 0.6;
}

/* Unlocked (claimable) tier */
.bp-tier-unlocked {
  background: linear-gradient(180deg, #3a2a1a, #4a3828);
  border: 2px solid #c6a84b;
  box-shadow: 0 0 12px rgba(198, 168, 75, 0.25);
  animation: bpGlow 2s ease-in-out infinite;
}

@keyframes bpGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(198, 168, 75, 0.25); }
  50%      { box-shadow: 0 0 20px rgba(198, 168, 75, 0.5); }
}

/* Claimed tier */
.bp-tier-claimed {
  background: linear-gradient(180deg, #2e3d20, #1f2a15);
  border: 1px solid #6b9b3a;
  opacity: 0.8;
}

.bp-tier-icon {
  font-size: 2rem;
  margin-bottom: 4px;
}

.bp-tier-num {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-bottom: 2px;
}

.bp-tier-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #c6a84b;
  margin-bottom: 6px;
}

.bp-tier-reward {
  font-size: 0.75rem;
  opacity: 0.8;
  line-height: 1.3;
  margin-bottom: 6px;
  min-height: 32px;
}

.bp-tier-status {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.bp-tier-locked .bp-tier-status {
  color: #888;
}

.bp-tier-unlocked .bp-tier-status {
  color: #c6a84b;
}

.bp-tier-claimed .bp-tier-status {
  color: #8bc34a;
}

/* Claim button */
.bp-tier-claim-btn {
  background: linear-gradient(135deg, #c6a84b, #daa520);
  color: #1a120b;
  border: none;
  border-radius: 5px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.bp-tier-claim-btn:hover {
  background: linear-gradient(135deg, #daa520, #e6c030);
  transform: scale(1.05);
}

.bp-tier-claim-btn:active {
  transform: scale(0.97);
}

/* ── Premium Reward Section ────────────────────────────────────── */

.bp-premium-reward {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  line-height: 1.3;
  border: 1px solid rgba(198, 168, 75, 0.2);
}

.bp-premium-unlocked {
  background: rgba(198, 168, 75, 0.1);
}

.bp-premium-locked {
  background: rgba(80, 80, 80, 0.2);
  opacity: 0.55;
}

.bp-premium-label {
  font-weight: 700;
  font-size: 0.68rem;
  color: #c6a84b;
  margin-bottom: 2px;
}

.bp-premium-lock {
  font-size: 0.65rem;
}

.bp-premium-desc {
  color: #a89060;
}

/* ── Premium Upgrade Button ────────────────────────────────────── */

.bp-premium-upgrade-btn {
  background: linear-gradient(135deg, #c6a84b, #daa520);
  color: #1a120b;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.bp-premium-upgrade-btn:hover {
  background: linear-gradient(135deg, #daa520, #e6c030);
  box-shadow: 0 0 12px rgba(198, 168, 75, 0.4);
}

.bp-premium-upgrade-btn.hidden {
  display: none;
}

/* ── XP Sources Section ────────────────────────────────────────── */

.bp-xp-sources {
  padding: 12px 24px 20px;
  border-top: 1px solid rgba(198, 168, 75, 0.15);
}

.bp-xp-sources h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #c6a84b;
}

.bp-sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.bp-source-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.bp-source-icon {
  font-size: 1.1rem;
}

.bp-source-label {
  flex: 1;
  opacity: 0.85;
}

.bp-source-xp {
  font-weight: 700;
  color: #c6a84b;
  white-space: nowrap;
}

/* ── Scrollbar styling ─────────────────────────────────────────── */

.bp-timeline-wrap::-webkit-scrollbar {
  height: 6px;
}

.bp-timeline-wrap::-webkit-scrollbar-track {
  background: #1a120b;
  border-radius: 3px;
}

.bp-timeline-wrap::-webkit-scrollbar-thumb {
  background: #4a3828;
  border-radius: 3px;
}

.bp-timeline-wrap::-webkit-scrollbar-thumb:hover {
  background: #6b5438;
}

.bp-modal::-webkit-scrollbar {
  width: 6px;
}

.bp-modal::-webkit-scrollbar-track {
  background: #1a120b;
}

.bp-modal::-webkit-scrollbar-thumb {
  background: #4a3828;
  border-radius: 3px;
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .bp-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .bp-modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
  }

  .bp-header {
    padding: 14px 16px 10px;
    position: sticky;
    top: 0;
    z-index: 1;
    background: inherit;
  }

  .bp-header h2 {
    font-size: 1.2rem;
  }

  .bp-close-btn {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.5rem;
  }

  .bp-xp-bar-wrap {
    padding: 10px 16px 8px;
  }

  .bp-actions {
    padding: 0 16px 10px;
  }

  .bp-claim-all-btn {
    min-height: 44px;
    width: 100%;
  }

  .bp-timeline-wrap {
    padding: 0 16px 12px;
  }

  .bp-tier-node {
    flex: 0 0 120px;
    padding: 10px 8px;
  }

  .bp-tier-icon {
    font-size: 1.5rem;
  }

  .bp-tier-name {
    font-size: 0.8rem;
  }

  .bp-tier-claim-btn {
    min-height: 44px;
    padding: 8px 12px;
  }

  .bp-btn-label {
    display: none;
  }

  .bp-xp-sources {
    padding: 10px 16px 16px;
  }

  .bp-sources-grid {
    grid-template-columns: 1fr;
  }
}
