/* ===== ORIGINEEL THEMA ===== */
:root,
body[data-theme="origineel"] {
  --bg: #f7f1e4;
  --bg-2: #efe1cc;
  --ink: #1a1a1a;
  --ink-soft: #4b3f36;
  --card: #fffaf1;
  --card-2: #fff1dc;
  --accent: #f26a2e;
  --accent-2: #2a9d8f;
  --accent-3: #d1495b;
  --muted: #cbb8a2;
  --shadow: 0 24px 60px rgba(40, 30, 20, 0.15);
  --radius: 26px;
}

body[data-theme="origineel"] {
  background: radial-gradient(circle at top left, #fff7e6 0%, #f7efe1 45%, #efe1cc 100%);
  animation: none;
}

body[data-theme="origineel"]::before {
  background: radial-gradient(circle, rgba(242, 106, 46, 0.4), rgba(242, 106, 46, 0));
  filter: blur(0px);
  opacity: 0.7;
  animation: drift-calm 18s ease-in-out infinite;
}

body[data-theme="origineel"]::after {
  background: radial-gradient(circle, rgba(42, 157, 143, 0.35), rgba(42, 157, 143, 0));
  filter: blur(0px);
  opacity: 0.7;
  animation: drift-calm 18s ease-in-out infinite;
  animation-delay: -8s;
}

body[data-theme="origineel"] .hero h1 {
  text-shadow: none;
  animation: none;
}

body[data-theme="origineel"] .deck {
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid rgba(203, 184, 162, 0.4);
  animation: float-in 800ms ease-out both;
}

body[data-theme="origineel"] .deck:nth-child(2) {
  animation-delay: 120ms;
  background: linear-gradient(160deg, #fff4e6 0%, #ffe7d1 60%, #ffe0cf 100%);
  border-color: rgba(242, 106, 46, 0.3);
}

body[data-theme="origineel"] .btn {
  background: rgba(26, 26, 26, 0.08);
  border: none;
  animation: none;
}

body[data-theme="origineel"] .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(26, 26, 26, 0.12);
  animation: none;
}

body[data-theme="origineel"] .btn--primary {
  background: var(--accent-2);
  color: #fff;
}

body[data-theme="origineel"] .btn--accent {
  background: var(--accent);
  color: #fff;
}

body[data-theme="origineel"] .record-lamp {
  background: rgba(209, 73, 91, 0.2);
  box-shadow: inset 0 0 0 6px rgba(209, 73, 91, 0.18);
  animation: none;
}

body[data-theme="origineel"] .record-lamp.is-on {
  background: var(--accent-3);
  box-shadow: 0 0 12px rgba(209, 73, 91, 0.6);
  animation: pulse 1.2s ease-in-out infinite;
}

body[data-theme="origineel"] .meter span {
  background: linear-gradient(180deg, rgba(242, 106, 46, 0.2), rgba(242, 106, 46, 0.6));
  opacity: 0.5;
  animation: none;
  box-shadow: none;
}

body[data-theme="origineel"] .meter.is-recording span {
  animation: bounce 0.9s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.12s);
  opacity: 0.9;
}

/* ===== PSYCHEDELISCH THEMA ===== */
body[data-theme="psychedelisch"] {
  --bg: #ff00ff;
  --bg-2: #00ffff;
  --ink: #ff0080;
  --ink-soft: #00ff80;
  --card: #ffff00;
  --card-2: #ff80ff;
  --accent: #00ff00;
  --accent-2: #ff00ff;
  --accent-3: #00ffff;
  --muted: #ff8000;
  --shadow: 0 24px 60px rgba(255, 0, 255, 0.8), 0 0 100px rgba(0, 255, 255, 0.5);
  --radius: 50px;

  background: repeating-linear-gradient(
    45deg,
    #ff00ff 0%,
    #00ffff 10%,
    #ffff00 20%,
    #00ff00 30%,
    #ff00ff 40%
  );
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
}

body[data-theme="psychedelisch"]::before {
  background: radial-gradient(circle, rgba(0, 255, 0, 0.9), rgba(255, 0, 255, 0.8));
  filter: blur(80px);
  opacity: 0.9;
  animation: crazy-spin 5s linear infinite;
}

body[data-theme="psychedelisch"]::after {
  background: radial-gradient(circle, rgba(255, 255, 0, 0.9), rgba(0, 255, 255, 0.8));
  filter: blur(80px);
  opacity: 0.9;
  animation: crazy-spin-reverse 4s linear infinite;
}

body[data-theme="psychedelisch"] .hero h1 {
  text-shadow:
    3px 3px 0 #00ffff,
    -3px -3px 0 #ff00ff,
    6px 6px 20px rgba(255, 255, 0, 0.8);
  animation: text-dance 2s ease-in-out infinite;
}

body[data-theme="psychedelisch"] .deck {
  background: linear-gradient(135deg, #ff00ff 0%, #00ffff 50%, #ffff00 100%);
  box-shadow:
    var(--shadow),
    0 0 50px rgba(0, 255, 0, 0.6),
    inset 0 0 30px rgba(255, 255, 255, 0.3);
  border: 5px dashed #ff0080;
  animation: float-crazy 3s ease-in-out infinite;
}

body[data-theme="psychedelisch"] .deck:nth-child(2) {
  background: linear-gradient(135deg, #00ff00 0%, #ff00ff 50%, #00ffff 100%);
  border-color: #00ff00;
  animation: spin-deck 6s linear infinite;
}

body[data-theme="psychedelisch"] .btn {
  background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #00ff00);
  background-size: 400% 400%;
  color: #000;
  animation: button-pulse 3s ease-in-out infinite;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  border: 3px solid #ff0080;
}

body[data-theme="psychedelisch"] .btn:hover {
  transform: translateY(-5px) rotate(5deg) scale(1.15);
  box-shadow: 0 15px 40px rgba(255, 0, 255, 0.8), 0 0 50px rgba(0, 255, 255, 0.6);
  animation: button-crazy 0.5s ease-in-out infinite;
}

body[data-theme="psychedelisch"] .record-lamp {
  animation: rainbow-lamp 2s linear infinite;
  box-shadow:
    inset 0 0 10px rgba(255, 255, 0, 0.8),
    0 0 30px rgba(255, 0, 0, 0.9);
}

body[data-theme="psychedelisch"] .record-lamp.is-on {
  box-shadow:
    0 0 50px rgba(255, 0, 255, 0.9),
    0 0 100px rgba(0, 255, 255, 0.8),
    0 0 150px rgba(255, 255, 0, 0.7);
  animation: mega-pulse 0.5s ease-in-out infinite;
}

body[data-theme="psychedelisch"] .meter span {
  background: linear-gradient(180deg, #ff00ff, #00ffff, #ffff00, #00ff00);
  background-size: 100% 400%;
  animation: color-shift 2s linear infinite;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
  opacity: 0.9;
}

body[data-theme="psychedelisch"] .meter.is-recording span {
  animation: bounce-rainbow 0.9s ease-in-out infinite, color-shift 2s linear infinite;
  animation-delay: calc(var(--i) * -0.12s);
  opacity: 1;
}

/* ===== VERLIEFD THEMA ===== */
body[data-theme="verliefd"] {
  --bg: #ffe4e9;
  --bg-2: #ffc9d6;
  --ink: #d6006a;
  --ink-soft: #ff6ba7;
  --card: #fff0f5;
  --card-2: #ffe0ea;
  --accent: #ff1493;
  --accent-2: #ff69b4;
  --accent-3: #ff1493;
  --muted: #ffb6d1;
  --shadow: 0 24px 60px rgba(255, 105, 180, 0.35), 0 0 80px rgba(255, 20, 147, 0.2);
  --radius: 40px;

  background: radial-gradient(circle at center, #fff0f5 0%, #ffe4ec 30%, #ffd4e0 60%, #ffc9d6 100%);
  animation: heartbeat-bg 3s ease-in-out infinite;
}

body[data-theme="verliefd"]::before {
  content: "💕";
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20vw;
  color: rgba(255, 105, 180, 0.15);
  background: none;
  filter: none;
  animation: float-heart 6s ease-in-out infinite;
}

body[data-theme="verliefd"]::after {
  content: "❤️";
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15vw;
  color: rgba(255, 20, 147, 0.12);
  background: none;
  filter: none;
  animation: float-heart 5s ease-in-out infinite;
  animation-delay: -2s;
}

body[data-theme="verliefd"] .hero h1 {
  text-shadow:
    2px 2px 0 #ff69b4,
    4px 4px 10px rgba(255, 20, 147, 0.5);
  animation: romantic-pulse 2s ease-in-out infinite;
  color: #d6006a;
}

body[data-theme="verliefd"] .deck {
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 50%, #ffd4e0 100%);
  box-shadow:
    0 20px 50px rgba(255, 105, 180, 0.3),
    inset 0 0 50px rgba(255, 255, 255, 0.5);
  border: 3px solid #ff69b4;
  animation: love-float 4s ease-in-out infinite;
}

body[data-theme="verliefd"] .deck:nth-child(2) {
  background: linear-gradient(135deg, #ffe0ea 0%, #ffc9d6 50%, #ffb6d1 100%);
  border-color: #ff1493;
  animation: love-float 4s ease-in-out infinite;
  animation-delay: -2s;
}

body[data-theme="verliefd"] .btn {
  background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
  color: #fff;
  border: 2px solid #d6006a;
  animation: love-button-pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

body[data-theme="verliefd"] .btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.5);
  animation: heart-beat 0.5s ease-in-out infinite;
}

body[data-theme="verliefd"] .record-lamp {
  background: rgba(255, 105, 180, 0.5);
  box-shadow: inset 0 0 10px rgba(255, 20, 147, 0.5);
  animation: none;
}

body[data-theme="verliefd"] .record-lamp.is-on {
  background: #ff1493;
  box-shadow:
    0 0 20px rgba(255, 20, 147, 0.8),
    0 0 40px rgba(255, 105, 180, 0.6);
  animation: heart-beat 1s ease-in-out infinite;
}

body[data-theme="verliefd"] .meter span {
  background: linear-gradient(180deg, #ff69b4, #ff1493);
  opacity: 0.7;
  animation: none;
  box-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
}

body[data-theme="verliefd"] .meter.is-recording span {
  animation: bounce-love 0.9s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.12s);
  opacity: 1;
}

/* ===== BOOS THEMA ===== */
body[data-theme="boos"] {
  --bg: #1a0000;
  --bg-2: #330000;
  --ink: #ff0000;
  --ink-soft: #ff4444;
  --card: #220000;
  --card-2: #330000;
  --accent: #ff0000;
  --accent-2: #ff3333;
  --accent-3: #ff0000;
  --muted: #660000;
  --shadow: 0 24px 60px rgba(255, 0, 0, 0.8), 0 0 100px rgba(0, 0, 0, 0.9);
  --radius: 10px;

  background: radial-gradient(circle at center, #220000 0%, #1a0000 50%, #000000 100%);
  animation: rage-shake 0.3s infinite;
}

body[data-theme="boos"]::before {
  content: "💢";
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25vw;
  color: rgba(255, 0, 0, 0.15);
  background: none;
  filter: none;
  animation: angry-shake 0.5s infinite;
}

body[data-theme="boos"]::after {
  content: "😡";
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18vw;
  color: rgba(255, 0, 0, 0.12);
  background: none;
  filter: none;
  animation: angry-shake 0.4s infinite;
  animation-delay: -0.2s;
}

body[data-theme="boos"] .hero h1 {
  text-shadow:
    3px 3px 0 #000,
    -2px -2px 0 #ff0000,
    0 0 20px rgba(255, 0, 0, 0.8),
    0 0 40px rgba(255, 0, 0, 0.5);
  animation: angry-glitch 0.2s infinite;
  color: #ff0000;
}

body[data-theme="boos"] .deck {
  background: linear-gradient(135deg, #1a0000 0%, #330000 50%, #1a0000 100%);
  box-shadow:
    0 20px 50px rgba(255, 0, 0, 0.6),
    inset 0 0 30px rgba(255, 0, 0, 0.1),
    0 0 100px rgba(255, 0, 0, 0.3);
  border: 4px solid #ff0000;
  animation: angry-vibrate 0.1s infinite;
}

body[data-theme="boos"] .deck:nth-child(2) {
  background: linear-gradient(135deg, #220000 0%, #440000 50%, #220000 100%);
  border-color: #ff3333;
  animation: angry-vibrate 0.15s infinite;
}

body[data-theme="boos"] .btn {
  background: linear-gradient(135deg, #660000 0%, #ff0000 50%, #660000 100%);
  background-size: 200% 200%;
  color: #fff;
  border: 3px solid #ff0000;
  animation: rage-pulse 0.5s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

body[data-theme="boos"] .btn:hover {
  transform: scale(1.2) rotate(-5deg);
  box-shadow: 0 0 40px rgba(255, 0, 0, 1);
  animation: explode 0.3s ease-in-out infinite;
}

body[data-theme="boos"] .record-lamp {
  background: rgba(255, 0, 0, 0.5);
  box-shadow: inset 0 0 10px rgba(255, 0, 0, 0.8);
  animation: angry-blink 0.3s infinite;
}

body[data-theme="boos"] .record-lamp.is-on {
  background: #ff0000;
  box-shadow:
    0 0 30px rgba(255, 0, 0, 1),
    0 0 60px rgba(255, 0, 0, 0.8),
    0 0 90px rgba(255, 0, 0, 0.6);
  animation: rage-pulse 0.2s ease-in-out infinite;
}

body[data-theme="boos"] .meter span {
  background: linear-gradient(180deg, #ff0000, #660000);
  opacity: 0.8;
  animation: fire-flicker 0.1s infinite;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

body[data-theme="boos"] .meter.is-recording span {
  animation: bounce-angry 0.5s ease-in-out infinite, fire-flicker 0.1s infinite;
  animation-delay: calc(var(--i) * -0.05s);
  opacity: 1;
}

/* ===== ANIMATIES ===== */
@keyframes drift-calm {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30px, 20px);
  }
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes crazy-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes crazy-spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes text-dance {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@keyframes float-crazy {
  0%, 100% { transform: translateY(0px) rotateX(0deg); }
  25% { transform: translateY(-15px) rotateX(5deg); }
  50% { transform: translateY(0px) rotateX(0deg); }
  75% { transform: translateY(15px) rotateX(-5deg); }
}

@keyframes spin-deck {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes button-pulse {
  0%, 100% { background-position: 0% 50%; transform: scale(1); }
  50% { background-position: 100% 50%; transform: scale(1.05); }
}

@keyframes button-crazy {
  0%, 100% { transform: translateY(-5px) rotate(-5deg) scale(1.15); }
  50% { transform: translateY(-8px) rotate(5deg) scale(1.2); }
}

@keyframes rainbow-lamp {
  0% { background: #ff0000; }
  14% { background: #ff8800; }
  28% { background: #ffff00; }
  42% { background: #00ff00; }
  57% { background: #00ffff; }
  71% { background: #0088ff; }
  85% { background: #ff00ff; }
  100% { background: #ff0000; }
}

@keyframes mega-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(2); }
}

@keyframes color-shift {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 100%; }
}

@keyframes bounce-rainbow {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(2.5); }
}

@keyframes heartbeat-bg {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}

@keyframes float-heart {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.1); }
}

@keyframes romantic-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes love-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes love-button-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1); }
  75% { transform: scale(0.95); }
}

@keyframes bounce-love {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1.5); }
}

@keyframes rage-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

@keyframes angry-shake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-5px, 5px) rotate(-5deg); }
  50% { transform: translate(5px, -5px) rotate(5deg); }
  75% { transform: translate(-5px, -5px) rotate(-5deg); }
}

@keyframes angry-glitch {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(2px, 2px); }
}

@keyframes angry-vibrate {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-1px, 1px) rotate(-1deg); }
  50% { transform: translate(1px, -1px) rotate(1deg); }
  75% { transform: translate(-1px, -1px) rotate(-1deg); }
}

@keyframes rage-pulse {
  0%, 100% {
    transform: scale(1);
    background-position: 0% 50%;
  }
  50% {
    transform: scale(1.1);
    background-position: 100% 50%;
  }
}

@keyframes explode {
  0%, 100% { transform: scale(1.2) rotate(-5deg); }
  50% { transform: scale(1.3) rotate(5deg); }
}

@keyframes angry-blink {
  0%, 49%, 100% { opacity: 1; }
  50%, 99% { opacity: 0.5; }
}

@keyframes fire-flicker {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes bounce-angry {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(2); }
}

@keyframes bounce {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1.1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes float-in {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
