/* Modern Styles for Live Music Archive - Clean Dark Theme */

:root {
  /* Dark Theme Colors */
  --bg-primary: #0a0a0b;
  --bg-secondary: #18181b;
  --bg-tertiary: #27272a;

  /* Accent Colors */
  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;

  /* Text Colors */
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Border Colors */
  --border-color: #27272a;
  --border-hover: #3f3f46;

  /* Status Colors */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--border-hover);
}

/* Show Cards */
.show-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.15s ease;
}

.show-card:hover {
  border-color: var(--accent-primary);
  background: #1c1c20;
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.tag-sbd {
  background: #14532d;
  color: #86efac;
}

.tag-aud {
  background: #713f12;
  color: #fcd34d;
}

.tag-matrix {
  background: #581c87;
  color: #d8b4fe;
}

/* Filter Chips */
.filter-chip {
  transition: all 0.15s ease;
}

.filter-chip.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

/* Buttons */
.btn-primary {
  background: var(--accent-primary);
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

/* View Buttons */
.view-btn {
  transition: all 0.15s ease;
}

.view-btn.active {
  background: var(--bg-tertiary);
  color: white;
}

/* Inputs */
input, select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: border-color 0.15s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

input::placeholder {
  color: var(--text-muted);
}

/* Progress Bars */
.progress-bar {
  transition: width 0.1s linear;
}

/* Playlist */
.playlist-item {
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
  cursor: pointer;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.playlist-item.active {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: var(--accent-primary);
}

/* Player Controls */
.control-btn {
  transition: all 0.15s ease;
  cursor: pointer;
}

.control-btn:hover {
  background: var(--bg-tertiary);
}

.control-btn:active {
  transform: scale(0.95);
}

/* Loading */
.skeleton-line {
  height: 1rem;
  background: linear-gradient(90deg, #27272a 25%, #3f3f46 50%, #27272a 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.animate-fade-in {
  animation: fade-in 0.2s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.3s ease-out;
}

.animate-fade-out {
  animation: fade-out 0.2s ease-out;
}

/* Keyboard Shortcuts */
kbd {
  background: var(--bg-tertiary);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-family: ui-monospace, monospace;
  color: var(--text-secondary);
}

/* Toast Notifications */
#toast {
  animation: slide-up 0.2s ease-out;
  z-index: 9999;
}

/* Focus States */
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background-color: rgba(59, 130, 246, 0.3);
  color: white;
}

/* Print */
@media print {
  body {
    background: white;
    color: black;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .tag {
    font-size: 10px;
    padding: 2px 6px;
  }
}
