/* Amelia's Garden theme.
 * Bright. Warm. Sky, sun-after-rain, garden. Age-8 friendly.
 * Rooted in the Isaiah 55:10 rain-does-not-return-empty aesthetic from her river baptism.
 */

body.theme-amelia {
  --bg: #fef9f3;
  --bg-raised: #ffffff;
  --surface: #fff5e8;
  --surface-soft: #ffeccc;
  --text: #3a2a1e;
  --text-muted: #7a5c44;
  --text-faint: #b59a80;
  --accent: #ff9f5c;
  --accent-glow: rgba(255, 159, 92, 0.25);
  --accent-strong: #ff7a3d;
  --ok: #6fbf5c;
  --warn: #d67555;
  --sky: #8ac6f0;
  --sun: #ffd166;
  --rain: #5aa9e6;
  --flower: #ff7aa2;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-soft: 0 10px 40px rgba(255, 159, 92, 0.15), 0 0 0 2px rgba(255, 159, 92, 0.08);
  --shadow-glow: 0 0 0 3px rgba(255, 159, 92, 0.4), 0 0 50px var(--accent-glow);
  --font-body: "Fredoka", "Comic Neue", "Nunito", "Quicksand", -apple-system, sans-serif;
  --font-ui: "Fredoka", "Nunito", -apple-system, sans-serif;
  font-size: 26px;
}

body.theme-amelia {
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(138, 198, 240, 0.25), transparent 60%),
    radial-gradient(900px 500px at 90% 100%, rgba(255, 209, 102, 0.22), transparent 60%),
    radial-gradient(600px 400px at 50% 50%, rgba(255, 122, 162, 0.08), transparent 70%),
    linear-gradient(180deg, #fef9f3 0%, #fff5e8 100%);
  background-attachment: fixed;
  color: var(--text);
}

body.theme-amelia::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 209, 102, 0.5) 0, rgba(255, 209, 102, 0) 6px),
    radial-gradient(circle at 75% 35%, rgba(255, 122, 162, 0.4) 0, rgba(255, 122, 162, 0) 5px),
    radial-gradient(circle at 45% 75%, rgba(138, 198, 240, 0.5) 0, rgba(138, 198, 240, 0) 7px),
    radial-gradient(circle at 85% 85%, rgba(111, 191, 92, 0.4) 0, rgba(111, 191, 92, 0) 5px);
  pointer-events: none;
  z-index: 0;
}

body.theme-amelia .topbar,
body.theme-amelia .chat-main,
body.theme-amelia .picker-header,
body.theme-amelia .picker-grid,
body.theme-amelia .picker-footer {
  position: relative;
  z-index: 1;
}

body.theme-amelia .topbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 4px 20px rgba(255, 159, 92, 0.12);
}

body.theme-amelia .topbar-title {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--accent-strong);
  font-size: 1.1em;
}

body.theme-amelia .topbar-title::before {
  content: "🌸 ";
}

body.theme-amelia .topbar-nav a {
  border-radius: 999px;
  padding: 0.4em 1em;
  border-bottom: none;
  background: transparent;
  transition: background 0.2s;
  font-weight: 600;
}

body.theme-amelia .topbar-nav a:hover,
body.theme-amelia .topbar-nav a.active {
  background: var(--surface-soft);
  color: var(--accent-strong);
}

body.theme-amelia h1,
body.theme-amelia h2,
body.theme-amelia h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--accent-strong);
}

body.theme-amelia .chat-input,
body.theme-amelia input,
body.theme-amelia textarea {
  background: #ffffff;
  border: 3px solid var(--surface-soft);
  color: var(--text);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 1em;
}

body.theme-amelia .chat-input:focus,
body.theme-amelia textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 159, 92, 0.2);
  outline: none;
}

body.theme-amelia .btn,
body.theme-amelia button {
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: 999px;
}

body.theme-amelia .btn.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 159, 92, 0.4);
}

body.theme-amelia .btn.primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 8px 25px rgba(255, 159, 92, 0.55);
  transform: translateY(-1px);
}

body.theme-amelia .chat-log .msg-paul {
  background: var(--surface);
  border: 2px solid var(--surface-soft);
  border-radius: var(--radius);
  padding: 0.8em 1.2em;
}

body.theme-amelia .chat-log .msg-user {
  background: var(--sky);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 0.8em 1.2em;
  box-shadow: 0 4px 15px rgba(138, 198, 240, 0.3);
}

/* Piggy bank (DVN) card specific */
body.theme-amelia .wallet-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--surface) 100%);
  border: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2em;
  box-shadow: 0 15px 45px rgba(255, 159, 92, 0.25);
  position: relative;
}

body.theme-amelia .wallet-card::before {
  content: "🐷";
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 3em;
  filter: drop-shadow(0 4px 8px rgba(255, 122, 162, 0.4));
}

body.theme-amelia .wallet-balance {
  font-family: var(--font-ui);
  font-size: 2.5em;
  color: var(--accent-strong);
  font-weight: 800;
  line-height: 1.1;
}

body.theme-amelia .wallet-address {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.6em;
  color: var(--text-muted);
  word-break: break-all;
  background: var(--surface);
  padding: 0.5em 0.8em;
  border-radius: 10px;
  border: 1px solid var(--surface-soft);
}
