/* Modern Styles for Live Music Archive - Ocean Blue Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Ocean Blue Color Palette */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  
  /* Accent Colors */
  --accent-primary: #0ea5e9;      /* sky blue */
  --accent-secondary: #06b6d4;    /* cyan */
  --accent-tertiary: #3b82f6;     /* blue */
  --accent-hover: #0284c7;        /* darker sky blue */
  
  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
}

* {
  box-sizing: border-box;
}

html {
  font-family: 'Inter', system-ui, -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.6;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Waveform Visualizer */
#waveform {
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.1) 0%, rgba(0, 0, 0, 0.8) 70%);
  position: relative;
}

#visualizerCanvas {
  filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.3));
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #1f2937;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0ea5e9, #06b6d4);
  border-radius: 5px;
  border: 2px solid #1f2937;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0284c7, #0ea5e9);
}

/* Glass Morphism Effect */
.glass-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-morphism {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button Styles */
.btn-accent {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: white;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.6);
}

.btn-accent:active {
  transform: translateY(0);
}

/* Search Input */
.search-input {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.5);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #0ea5e9;
  background: rgba(17, 24, 39, 0.8);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.search-input::placeholder {
  color: var(--text-secondary);
}

/* Filter Buttons */
.filter-button {
  background: #374151;
  color: #e5e7eb;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid #4b5563;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.filter-button:hover {
  background: #4b5563;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-button.active,
.filter-chip.active {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.5);
}

/* Show Cards */
.show-card {
  backdrop-filter: blur(10px);
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid rgba(75, 85, 99, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.show-card:hover {
  background: rgba(31, 41, 55, 0.9);
  border-color: rgba(14, 165, 233, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.2);
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: all 0.2s;
  white-space: nowrap;
}

.tag:hover {
  transform: scale(1.05);
}

/* Pagination */
.pagination button {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination button:hover:not(:disabled) {
  transform: scale(1.05);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Player Controls */
.control-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.control-btn:hover {
  transform: scale(1.1);
}

.control-btn:active {
  transform: scale(0.95);
}

/* Progress Bars */
.progress-bar {
  transition: width 0.1s linear;
}

/* Playlist Items */
.playlist-item {
  transition: all 0.2s;
  cursor: pointer;
}

.playlist-item:hover {
  background: rgba(55, 65, 81, 0.5);
}

.playlist-item.active {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.2), transparent);
  border-left: 3px solid #0ea5e9;
}

/* Loading States */
.loading-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Skeleton Loading */
.skeleton-line {
  height: 1rem;
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 0.25rem;
  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(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.4s ease-out;
}

.animate-fade-out {
  animation: fade-out 0.3s ease-out;
}

/* Keyboard Shortcut Badges */
kbd {
  background: linear-gradient(to bottom, #374151, #1f2937);
  border: 1px solid #4b5563;
  border-radius: 0.375rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.875rem;
  font-family: ui-monospace, 'SF Mono', Monaco, 'Cascadia Mono', 'Segoe UI Mono', monospace;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: inline-block;
  line-height: 1.5;
}

/* Toast Notifications */
#toast {
  animation: slide-up 0.3s ease-out;
  z-index: 9999;
}

#toast.animate-fade-out {
  animation: fade-out 0.3s ease-out;
}

/* View Buttons */
.view-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.view-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(6, 182, 212, 0.2));
  opacity: 0;
  transition: opacity 0.3s;
}

.view-btn:hover::before {
  opacity: 1;
}

/* Gradient Backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #3b82f6 100%);
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Responsive Design */
@media (max-width: 640px) {
  .filter-button,
  .filter-chip {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  kbd {
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
  }
  
  .tag {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient {
  border: 2px solid transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Focus Styles */
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

/* Selection */
::selection {
  background-color: rgba(14, 165, 233, 0.3);
  color: white;
}

/* Smooth Transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Line Clamp Utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}