/* -----------------------------
   BuzzBlaster Vibe Machine
   Bold/Wild/Crazy/Fun Theme
------------------------------ */

:root {
  /* Light mode base */
  --bg: #fff7ee;            /* Sunburst party background */
  --card-bg: #ffffff;
  --text: #111111;
  --muted-text: #555555;

  --primary: #ff2e63;       /* Electric Watermelon */
  --primary-text: #ffffff;

  --accent: #3a7bff;        /* Sonic Rave Blue */
  --accent-soft: #ff8a3d;   /* Lava Pop Orange */

  --secondary-bg: #ffe2ea;
  --secondary-text: #1a1a1a;

  --lime-pop: #c3ff1a;      /* Neon Lime Burst */

  --border-subtle: rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.09);
}

body.theme-dark {
  --bg: #0c0d0f;            /* Galaxy Rave */
  --card-bg: #181a1f;
  --text: #f8f8f8;
  --muted-text: #a0a0a0;

  --primary: #ff2e63;
  --primary-text: #ffffff;

  --accent: #a259ff;        /* Neon Rave Purple */
  --accent-soft: #3c4a62;

  --secondary-bg: #3c4a62;
  --secondary-text: #ffffff;

  --lime-pop: #c3ff1a;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Global reset-ish */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, rgba(255, 46, 99, 0.2), transparent),
              radial-gradient(circle at bottom, rgba(58, 123, 255, 0.18), transparent),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* App shell */

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 24px;
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.title-block h1 {
  font-size: 1.4rem;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted-text);
}

.icon-button {
  border: none;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

body.theme-dark .icon-button {
  background: rgba(255, 255, 255, 0.05);
}

/* Main */

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Action card */

.card {
  background-color: var(--card-bg);
  border-radius: 18px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0.16;
  background:
    radial-gradient(circle at 0 0, rgba(255, 46, 99, 0.7), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(58, 123, 255, 0.7), transparent 60%);
  pointer-events: none;
}

.action-text {
  position: relative;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  z-index: 1;
}

.action-meta {
  position: relative;
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--muted-text);
  z-index: 1;
}

/* Buttons */

.primary-actions,
.secondary-actions,
.progress-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.1s ease;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--primary-text);
  box-shadow: 0 10px 30px rgba(255, 46, 99, 0.45);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 8px 20px rgba(255, 46, 99, 0.35);
}

.btn-secondary {
  flex: 1;
  background: var(--secondary-bg);
  color: var(--secondary-text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.theme-dark .btn-secondary {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-secondary:active {
  transform: translateY(1px) scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px dashed rgba(0, 0, 0, 0.12);
}

body.theme-dark .btn-ghost {
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-ghost:active {
  transform: translateY(1px) scale(0.98);
}

/* Progress row */

.progress-row {
  margin-top: 4px;
  justify-content: space-between;
}

.done-counter {
  font-size: 0.85rem;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(195, 255, 26, 0.14);
  color: var(--lime-pop);
  border: 1px solid rgba(195, 255, 26, 0.4);
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(120%);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 999;
}

body.theme-dark .toast {
  background: rgba(255, 255, 255, 0.88);
  color: #111111;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0%);
}

/* Footer */

.app-footer {
  margin-top: 16px;
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted-text);
  opacity: 0.9;
}

/* Mobile-first tweaks */

@media (min-width: 520px) {
  .app {
    padding: 20px 20px 30px;
  }

  .card {
    padding: 20px 18px 18px;
  }
}
