/**
 * Circus Theme - Zirkus & Jahrmarkt
 * Festliche Rot/Gelb/Blau Toene
 * Kindgerechter Stil mit grossen, runden Elementen
 */

[data-theme="circus"] {
  /* Hauptfarben - Festlich & Aufregend */
  --color-primary: #dc2626;
  --color-secondary: #facc15;
  --color-background: #fef3c7;
  --color-surface: rgba(220, 38, 38, 0.12);
  --color-surface-hover: rgba(220, 38, 38, 0.2);
  --color-text: #7c2d12;
  --color-text-muted: rgba(124, 45, 18, 0.7);
  --color-panel-header: #7c2d12;

  /* Akzentfarben - Zirkuslichter */
  --color-accent-1: #3b82f6;
  --color-accent-2: #f472b6;
  --color-accent-3: #22c55e;
  --color-success: #22c55e;
  --color-danger: #dc2626;

  /* Grid/Sequencer */
  --color-grid-line: rgba(220, 38, 38, 0.4);
  --color-playhead: rgba(250, 204, 21, 0.4);
  --color-cell-occupied: rgba(59, 130, 246, 0.55);
  --color-cell-active: rgba(220, 38, 38, 0.6);
  --color-marker: #dc2626;
  --color-marker-corner: #facc15;

  /* Kindgerechte Border-Radius */
  --radius-panel: 26px;
  --radius-button: 18px;
  --radius-card: 22px;

  /* Festliche Schatten */
  --shadow-glow: 0 0 30px rgba(220, 38, 38, 0.3);
  --shadow-button: 0 6px 20px rgba(220, 38, 38, 0.25);
}

[data-theme="circus"] body {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
}

/* Zirkuszelt-Streifen im Hintergrund */
[data-theme="circus"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 100px 60px at 0% 0%, rgba(220, 38, 38, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 80px 80px at 100% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 90px 70px at 0% 100%, rgba(59, 130, 246, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 70px 90px at 100% 100%, rgba(220, 38, 38, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

[data-theme="circus"] .btn-play {
  background: linear-gradient(145deg, #dc2626 0%, #b91c1c 100%);
  border-radius: 50%;
  box-shadow:
    0 8px 30px rgba(220, 38, 38, 0.4),
    inset 0 3px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="circus"] .btn-play:hover {
  transform: scale(1.1);
  box-shadow:
    0 12px 40px rgba(220, 38, 38, 0.5),
    inset 0 3px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="circus"] .btn-play.playing {
  background: linear-gradient(145deg, #facc15 0%, #eab308 100%);
  box-shadow: 0 8px 35px rgba(250, 204, 21, 0.6);
  animation: circus-spin 1s ease-in-out infinite;
}

@keyframes circus-spin {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.05) rotate(-5deg); }
  50% { transform: scale(1.02) rotate(0deg); }
  75% { transform: scale(1.05) rotate(5deg); }
}

[data-theme="circus"] .transport {
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.12);
}

[data-theme="circus"] .panel {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid rgba(220, 38, 38, 0.25);
  border-radius: var(--radius-panel);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.1);
}

[data-theme="circus"] .audio-init-btn {
  background: linear-gradient(145deg, #dc2626 0%, #facc15 50%, #3b82f6 100%);
  background-size: 200% 100%;
  border-radius: 50%;
  box-shadow:
    0 10px 40px rgba(220, 38, 38, 0.4),
    inset 0 3px 0 rgba(255, 255, 255, 0.3);
  animation: circus-spin 2s ease-in-out infinite;
}

/* Kindgerechte Button-Styles */
[data-theme="circus"] .btn {
  border-radius: var(--radius-button);
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
}

[data-theme="circus"] .btn:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(220, 38, 38, 0.3);
}

[data-theme="circus"] .btn:active {
  transform: scale(0.97);
}

/* Grosse Touch-Targets */
[data-theme="circus"] .btn-icon {
  min-width: 50px;
  min-height: 50px;
}

/* Festliche Button-Farben */
[data-theme="circus"] .btn-primary {
  background: linear-gradient(145deg, #dc2626, #b91c1c);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

[data-theme="circus"] .btn-secondary {
  background: rgba(220, 38, 38, 0.12);
  color: #7c2d12;
}

[data-theme="circus"] .btn-success {
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  color: white;
}
