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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #5865F2;
}

/* Tab Management */
.tab-content {
  display: none;
  animation: fadeIn 0.25s ease-in-out forwards;
}

.tab-content.active {
  display: block;
}

.nav-btn.active {
  background-color: #232428;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Filter Card Glow when active */
.filter-card.active {
  border-color: #5865F2;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, rgba(35, 36, 40, 1) 100%);
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.25);
}

/* Audio Wave Animation */
@keyframes soundWave {
  0% { height: 4px; }
  50% { height: 18px; }
  100% { height: 4px; }
}

.sound-bar {
  animation: soundWave 1.2s ease-in-out infinite;
}

.sound-bar:nth-child(2) { animation-delay: 0.2s; }
.sound-bar:nth-child(3) { animation-delay: 0.4s; }
.sound-bar:nth-child(4) { animation-delay: 0.1s; }

/* Mobile Adaptations */
* {
  -webkit-tap-highlight-color: transparent;
}

.safe-area-bottom {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* Momentum scrolling for iOS */
main, aside, #mobile-drawer, .overflow-x-auto, .overflow-y-auto {
  -webkit-overflow-scrolling: touch;
}

/* Touch feedback */
button:active {
  transform: scale(0.97);
}

/* Drawer open state */
body.drawer-open {
  overflow: hidden;
}

body.drawer-open #mobile-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open #mobile-drawer {
  transform: translateX(0);
}
