/**
 * Candy Theme - Suess und verspielt
 * Pastellfarben fuer kleine Kinder
 * Extra kindgerechter Stil mit grossen, weichen Elementen
 */

[data-theme="candy"] {
  /* Hauptfarben - Bonbon-Toene */
  --color-primary: #f472b6;
  --color-secondary: #67e8f9;
  --color-background: #fdf2f8;
  --color-surface: rgba(244, 114, 182, 0.15);
  --color-surface-hover: rgba(244, 114, 182, 0.25);
  --color-text: #831843;
  --color-text-muted: rgba(131, 24, 67, 0.7);
  --color-panel-header: #831843;

  /* Akzentfarben - Suessigkeiten */
  --color-accent-1: #a78bfa;
  --color-accent-2: #fcd34d;
  --color-accent-3: #6ee7b7;
  --color-success: #34d399;
  --color-danger: #fb7185;

  /* Grid/Sequencer */
  --color-grid-line: rgba(131, 24, 67, 0.35);
  --color-playhead: rgba(244, 114, 182, 0.35);
  --color-cell-occupied: rgba(103, 232, 249, 0.6);
  --color-cell-active: rgba(52, 211, 153, 0.65);
  --color-marker: #34d399;
  --color-marker-corner: #fcd34d;

  /* Extra grosse Border-Radius fuer Kinder */
  --radius-panel: 28px;
  --radius-button: 18px;
  --radius-card: 24px;

  /* Weiche Schatten */
  --shadow-glow: 0 0 30px rgba(244, 114, 182, 0.3);
  --shadow-button: 0 6px 20px rgba(244, 114, 182, 0.25);
}

[data-theme="candy"] body {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #f5d0fe 100%);
}

/* Suesse Wolken im Hintergrund */
[data-theme="candy"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80px 50px at 10% 20%, rgba(244, 114, 182, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60px 40px at 80% 30%, rgba(103, 232, 249, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 70px 45px at 30% 70%, rgba(167, 139, 250, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 90px 55px at 70% 80%, rgba(252, 211, 77, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

[data-theme="candy"] .btn-play {
  background: linear-gradient(145deg, #f472b6 0%, #67e8f9 100%);
  border-radius: 50%;
  box-shadow:
    0 8px 30px rgba(244, 114, 182, 0.4),
    inset 0 3px 0 rgba(255, 255, 255, 0.4);
}

[data-theme="candy"] .btn-play:hover {
  transform: scale(1.1);
  box-shadow:
    0 12px 40px rgba(244, 114, 182, 0.5),
    inset 0 3px 0 rgba(255, 255, 255, 0.4);
}

[data-theme="candy"] .btn-play.playing {
  background: linear-gradient(145deg, #34d399 0%, #6ee7b7 100%);
  box-shadow: 0 8px 35px rgba(52, 211, 153, 0.5);
  animation: candy-bounce 0.8s ease-in-out infinite;
}

@keyframes candy-bounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.05) rotate(-2deg); }
  75% { transform: scale(1.05) rotate(2deg); }
}

[data-theme="candy"] .transport {
  background: rgba(255, 255, 255, 0.85);
  border: 3px solid rgba(244, 114, 182, 0.3);
  border-radius: var(--radius-panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(244, 114, 182, 0.15);
}

[data-theme="candy"] .panel {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid rgba(244, 114, 182, 0.35);
  border-radius: var(--radius-panel);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(244, 114, 182, 0.15);
}

[data-theme="candy"] .audio-init-btn {
  background: linear-gradient(145deg, #f472b6 0%, #a78bfa 50%, #67e8f9 100%);
  background-size: 200% 100%;
  border-radius: 50%;
  box-shadow:
    0 10px 40px rgba(244, 114, 182, 0.4),
    inset 0 3px 0 rgba(255, 255, 255, 0.4);
  animation: candy-bounce 2s ease-in-out infinite;
}

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

[data-theme="candy"] .btn:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(244, 114, 182, 0.3);
}

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

/* Extra grosse Touch-Targets fuer kleine Finger */
[data-theme="candy"] .btn-icon {
  min-width: 52px;
  min-height: 52px;
}

/* Freundliche Farben fuer Buttons */
[data-theme="candy"] .btn-primary {
  background: linear-gradient(145deg, #f472b6, #a78bfa);
  color: white;
  box-shadow: 0 4px 15px rgba(244, 114, 182, 0.3);
}

[data-theme="candy"] .btn-secondary {
  background: rgba(244, 114, 182, 0.1);
  color: #831843;
}

[data-theme="candy"] .btn-success {
  background: linear-gradient(145deg, #34d399, #6ee7b7);
  color: white;
}
