/* 
  RivuletHub & Layerer Official Site - Custom Styles
  Complementing Tailwind CSS
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Outfit', var(--font-sans);
}

body {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glassmorphism Components */
.glass-panel {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Glass Input Elements */
.glass-input {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(209, 213, 219, 0.5);
  transition: all 0.2s ease;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.dark .glass-input {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass-input:focus {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3);
}

/* Custom Gradients for Glowing Orbs */
.glow-orb {
  opacity: 0.35;
  transition: opacity 0.5s ease;
}

.dark .glow-orb {
  opacity: 0.48;
}

/* Pulse animation for playing indicators (scaleY prevents layouts from shifting) */
@keyframes audio-pulse {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1.3); }
}

.audio-bar {
  display: inline-block;
  width: 3px;
  height: 16px;
  background-color: rgb(104, 214, 216);
  border-radius: 2px;
  margin: 0 1px;
  transform: scaleY(0.3); /* Static default scale when paused */
  transition: transform 0.3s ease; /* Smooth transition when starting/stopping */
}

.playing .audio-bar {
  transform-origin: bottom;
}

.playing .audio-bar:nth-child(1) { animation: audio-pulse 1.2s ease infinite; }
.playing .audio-bar:nth-child(2) { animation: audio-pulse 0.8s ease infinite 0.2s; }
.playing .audio-bar:nth-child(3) { animation: audio-pulse 1.5s ease infinite 0.4s; }
.playing .audio-bar:nth-child(4) { animation: audio-pulse 1.0s ease infinite 0.1s; }
.playing .audio-bar:nth-child(5) { animation: audio-pulse 1.3s ease infinite 0.3s; }

/* Custom Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
