/**
 * AutoFlow Studio MUSIC - Color Theme & Audio Extension
 * Overrides base design system tokens with Google Flow Music Electric Cyan & Audio DAW Accents
 */

:root {
  --bg-primary: #0e1017;
  --bg-surface: #131722;
  --bg-surface-elevated: #1a1f2e;
  --bg-card: rgba(19, 23, 34, 0.88);
  --bg-card-hover: rgba(26, 31, 46, 0.95);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(26, 155, 182, 0.22);
  --border-glow: rgba(26, 155, 182, 0.45);
  
  --accent-color: #1A9BB6;
  --accent-hover: #15849b;
  --accent-dim: rgba(26, 155, 182, 0.14);
  --accent-glow: rgba(26, 155, 182, 0.35);

  --accent-amber: #38bdf8;
  --accent-amber-glow: rgba(56, 189, 248, 0.25);

  --accent-lime: #1A9BB6;
  --accent-lime-hover: #15849b;
  --accent-lime-dim: rgba(26, 155, 182, 0.14);
  --accent-lime-glow: rgba(26, 155, 182, 0.35);

  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.35);
  --accent-purple: #c084fc;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(26, 155, 182, 0.18) 0%, transparent 50%),
    radial-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 0);
  background-size: 100% 100%, 28px 28px;
}

.ambient-glow {
  background: radial-gradient(circle, rgba(26, 155, 182, 0.25) 0%, rgba(56, 189, 248, 0.12) 45%, transparent 75%) !important;
}

.ambient-glow-secondary {
  background: radial-gradient(circle, rgba(192, 132, 252, 0.12) 0%, transparent 70%) !important;
}

.gradient-text {
  background: linear-gradient(135deg, #1A9BB6 0%, #38bdf8 50%, #c084fc 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.badge-music {
  background: rgba(26, 155, 182, 0.18) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(26, 155, 182, 0.4) !important;
}

/* Music Hero Visualizer Mockup */
.music-hero-mockup {
  margin-top: 40px;
  background: linear-gradient(180deg, rgba(20, 25, 38, 0.95) 0%, rgba(14, 16, 24, 0.98) 100%);
  border: 1px solid rgba(26, 155, 182, 0.35);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(26, 155, 182, 0.15);
  text-align: left;
}

.mockup-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.mockup-dots {
  display: flex;
  gap: 8px;
}

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #38bdf8;
  letter-spacing: 1px;
  font-weight: 700;
}

.spectrum-bars {
  display: flex;
  align-items: flex-end;
  height: 80px;
  gap: 4px;
  margin-bottom: 24px;
  padding: 8px 0;
}

.s-bar {
  flex: 1;
  background: linear-gradient(180deg, #38bdf8 0%, #1A9BB6 70%, rgba(26, 155, 182, 0.2) 100%);
  border-radius: 2px 2px 0 0;
  transition: height 0.12s ease;
  min-height: 6px;
}

/* Stems Control Grid inside Mockup */
.mockup-stems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .mockup-stems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stem-card-mini {
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px;
}

.stem-name-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.vu-meter-row {
  display: flex;
  gap: 3px;
  height: 12px;
  margin-bottom: 12px;
}

.vu-led {
  flex: 1;
  background: #181d2a;
  border-radius: 1px;
  transition: background 0.1s;
}
.vu-led.lit-green { background: #10b981; box-shadow: 0 0 5px #10b981; }
.vu-led.lit-yellow { background: #f59e0b; box-shadow: 0 0 5px #f59e0b; }
.vu-led.lit-red { background: #ef4444; box-shadow: 0 0 5px #ef4444; }

.stem-actions-mini {
  display: flex;
  gap: 6px;
}

.btn-pill-sm {
  flex: 1;
  padding: 4px 0;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
}
.btn-pill-sm.active-mute { background: #dc2626; color: #fff; border-color: #ef4444; }
.btn-pill-sm.active-solo { background: #f59e0b; color: #000; border-color: #fbbf24; }

/* Interactive Studio Simulator Card */
.studio-simulator-box {
  background: linear-gradient(180deg, rgba(20, 25, 38, 0.9) 0%, rgba(13, 16, 24, 0.95) 100%);
  border: 1px solid rgba(26, 155, 182, 0.35);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
}
