/* Guitar Pedals - Boss DS-1 Styling */

:root {
  --ds1-orange: #e85c2a;
  --ds1-orange-dark: #c94a1f;
  --ds1-orange-light: #f07a50;
  --pedal-silver: #c0c0c0;
  --pedal-silver-dark: #8a8a8a;
  --pedal-black: #1a1a1a;
  --knob-gray: #4a4a4a;
  --knob-indicator: #ff4444;
  --led-on: #00ff00;
  --led-off: #333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  color: #e0e0e0;
  padding: 2rem;
}

.app {
  max-width: 640px;
  margin: 0 auto;
}

.app-header {
  text-align: center;
  margin-bottom: 2rem;
}

.app-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
}

.subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

/* Input connection */
.input-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
  transition: background 0.3s;
}

.input-status.connected .status-dot {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.status-text {
  font-size: 0.8rem;
}

.connect-btn {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, var(--ds1-orange-light), var(--ds1-orange));
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 2rem;
  transition: transform 0.1s, box-shadow 0.2s;
}

.connect-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 92, 42, 0.4);
}

.connect-btn:active {
  transform: translateY(0);
}

.connect-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Pedal board */
.pedal-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Boss DS-1 Pedal */
.pedal {
  width: 100%;
  max-width: 360px;
}

.pedal.bigsky {
  max-width: 420px;
}

.pedal-body {
  background: linear-gradient(180deg, var(--ds1-orange-light) 0%, var(--ds1-orange) 30%, var(--ds1-orange-dark) 100%);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow:
    0 8px 0 #a63914,
    0 12px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid var(--ds1-orange-dark);
}

.pedal-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Brand styling - Boss aesthetic */
.pedal-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.brand-boss {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.brand-model {
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.95);
}

.brand-type {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.8);
}

/* Knobs */
.pedal-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.knob-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.knob {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--pedal-silver) 0%, var(--pedal-silver-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  cursor: grab;
  position: relative;
  touch-action: none;
}

.knob:active {
  cursor: grabbing;
}

.knob-cap {
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 30% 30%, #e0e0e0, #808080);
  border-radius: 50%;
  position: relative;
  transform-origin: center center;
  transform: rotate(0deg); /* 12 o'clock at 50% */
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
}

.knob-indicator {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--knob-indicator);
  border-radius: 2px;
  transform-origin: center 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.knob-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
}

/* Footswitch */
.footswitch {
  width: 56px;
  height: 56px;
  background: linear-gradient(180deg, var(--pedal-black) 0%, #0a0a0a 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 0 #000,
    0 6px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 #333;
  cursor: pointer;
  transition: transform 0.05s;
}

.footswitch:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #000, 0 4px 8px rgba(0, 0, 0, 0.5);
}

.footswitch-cap {
  width: 44px;
  height: 44px;
  background: #1a1a1a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #333;
}

.led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--led-off);
  transition: background 0.2s;
}

.footswitch.active .led {
  background: var(--led-on);
  box-shadow: 0 0 8px var(--led-on), 0 0 16px var(--led-on);
}

/* Pedal values display */
.pedal-values {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.app-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* Bypass state - muted appearance */
.pedal.bypassed .pedal-body {
  opacity: 0.7;
  filter: grayscale(0.3);
}

/* Strymon BigSky - dark slate/blue aesthetic */
.pedal.bigsky .pedal-body {
  background: linear-gradient(180deg, #4a5568 0%, #2d3748 40%, #1a202c 100%);
  padding: 1.75rem 1.25rem;
  box-shadow:
    0 6px 0 #0d1117,
    0 10px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid #1a202c;
}

.bigsky-brand .brand-strymon {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #e2e8f0;
}

.bigsky-brand .brand-model {
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: #a0aec0;
}

.bigsky-brand .brand-type {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: #718096;
}

.pedal.bigsky .knob {
  width: 38px;
  height: 38px;
}

.pedal.bigsky .knob-cap {
  width: 30px;
  height: 30px;
}

.pedal.bigsky .knob-indicator {
  height: 6px;
  background: #38bdf8;
  box-shadow: 0 0 4px #38bdf8;
}

.pedal.bigsky .knob-label {
  font-size: 0.55rem;
}

.bigsky-controls {
  gap: 0.75rem;
}
