/* Marvel Snap Vault Custom Styles */

:root {
  --snap-blue: #00a8ff;
  --snap-cyan: #00f0ff;
  --snap-orange: #ff6a00;
  --snap-gold: #ffb703;
  --snap-purple: #9d4edd;
  --snap-card-bg: #121429;
  --snap-border: #232750;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #080914;
}

::-webkit-scrollbar-thumb {
  background: #232750;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3b427d;
}

/* Navigation Tabs */
.nav-tab {
  color: #94a3b8;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tab:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(157, 78, 221, 0.15));
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* Marvel Snap Card Style */
.snap-card-item {
  position: relative;
  background: #0f1124;
  border: 1px solid var(--snap-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.1, 0.7, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.snap-card-item:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.25);
}

/* Holographic Glare Effect */
.snap-card-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(0, 240, 255, 0.15) 50%,
    transparent 55%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.snap-card-item:hover::after {
  transform: rotate(25deg) translateY(100%);
}

/* Snap Energy (Cost) Gem */
.cost-gem {
  width: 34px;
  height: 34px;
  background: radial-gradient(circle at 35% 35%, #60a5fa, #1d4ed8, #0f172a);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 168, 255, 0.7);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Snap Power Gem */
.power-gem {
  width: 34px;
  height: 34px;
  background: radial-gradient(circle at 35% 35%, #fbbf24, #d97706, #78350f);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.7);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.power-gem.negative {
  background: radial-gradient(circle at 35% 35%, #f87171, #dc2626, #7f1d1d);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
}

/* Keyword Highlights in Abilities */
.ability-text span[data-keyword="on-reveal"],
.ability-text span:has-text("On Reveal"),
.kw-on-reveal {
  color: #facc15;
  font-weight: 700;
}

.ability-text span[data-keyword="ongoing"],
.ability-text span:has-text("Ongoing"),
.kw-ongoing {
  color: #60a5fa;
  font-weight: 700;
}

.ability-text span[data-keyword="activate"],
.ability-text span:has-text("Activate"),
.kw-activate {
  color: #34d399;
  font-weight: 700;
}

/* Deck Slot Tile */
.deck-slot {
  position: relative;
  background: rgba(18, 20, 41, 0.7);
  border: 1.5px dashed var(--snap-border);
  border-radius: 16px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  overflow: hidden;
}

.deck-slot.filled {
  border-style: solid;
  border-color: rgba(0, 240, 255, 0.4);
  background: #0f1124;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.deck-slot.filled:hover {
  border-color: #ef4444;
}

.deck-slot-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.deck-slot:hover .deck-slot-remove {
  opacity: 1;
}

/* Filter Tag Pill */
.filter-pill {
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.filter-pill.active {
  box-shadow: 0 0 10px currentColor;
  transform: scale(1.05);
}

/* Pulse animation for sync icon when active */
.spin-anim {
  animation: spin 1s linear infinite;
}

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

/* Subtle glow badge */
.glow-cyan {
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.glow-orange {
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.4);
}

.glow-purple {
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.4);
}

/* Sticky Catalog Filter Bar */
#catalog-filter-bar {
  position: sticky;
  top: 56px;
  z-index: 30;
  background: rgba(15, 17, 36, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(35, 39, 80, 0.85);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.6);
}

@media (min-width: 640px) {
  #catalog-filter-bar {
    top: 64px;
  }
}

@media (min-width: 768px) {
  #catalog-filter-bar {
    top: 80px;
  }
}

/* Multi-select filter pill active states */
.cost-pill-active {
  border-color: #00f0ff !important;
  background: rgba(0, 168, 255, 0.25) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4) !important;
  transform: scale(1.05);
}

.power-pill-active {
  border-color: #ff6a00 !important;
  background: rgba(255, 106, 0, 0.25) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.4) !important;
  transform: scale(1.05);
}

/* Threat Cards Styling */
.threat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.threat-card:hover {
  transform: translateY(-2px);
}

.threat-card.critical {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 20px -5px rgba(239, 68, 68, 0.2);
}

.threat-card.high {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 4px 20px -5px rgba(249, 115, 22, 0.2);
}

.threat-card.moderate {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 20px -5px rgba(59, 130, 246, 0.2);
}

/* Dark Mode Form Controls & Select Popup Styling */
:root {
  color-scheme: dark;
}

html, body, select, option, input {
  color-scheme: dark;
}

#sort-select {
  color-scheme: dark;
  background-color: #0f1124 !important;
  color: #ffffff !important;
  border-radius: 8px;
}

#sort-select option {
  background-color: #0f1124 !important;
  color: #f8fafc !important;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Card In Deck Highlight (Surbrillance) */
.snap-card-item.is-in-deck {
  border: 2px solid #00f0ff !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 40px rgba(0, 240, 255, 0.25), inset 0 0 15px rgba(0, 240, 255, 0.15) !important;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.12) 0%, #0f1124 100%) !important;
}

.snap-card-item.is-in-deck:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.6) !important;
}

/* ================================================================= */
/* MOBILE BOTTOM NAVIGATION BAR & RESPONSIVE POLISH */
/* ================================================================= */
.mobile-nav-btn {
  color: #94a3b8;
  position: relative;
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.mobile-nav-btn:active {
  transform: scale(0.92);
}

.mobile-nav-btn.active {
  color: #ffffff;
  background: rgba(0, 240, 255, 0.08);
}

.mobile-nav-btn.active i {
  color: #00f0ff;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
}

.mobile-nav-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2.5px;
  background: linear-gradient(90deg, #00f0ff, #9d4edd);
  border-radius: 9999px;
  box-shadow: 0 0 8px #00f0ff;
}

/* Hide scrollbar while preserving smooth touch scrolling */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

/* Mobile Screen Specific Tweaks */
@media (max-width: 640px) {
  .cost-gem, .power-gem {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .deck-slot {
    min-height: 125px;
    border-radius: 12px;
  }
}


