/* theme.css
   Defines the three switchable pastel themes (neutral / girl / boy).
   All themes expose the same variable names used throughout style.css
   and login.css, so no other CSS needs to change when the theme swaps.
   Target audience: kids ~4-10, so palettes stay soft/pastel and high-contrast
   text is kept dark regardless of theme.
*/

/* =========================
   Neutral (default) — sunshine, mint & lavender, apricot accent
========================= */
:root,
:root[data-theme="neutral"] {
    --pink: #ffedd1;
    --blue: #dcf5f0;
    --yellow: #fff7cc;
    --green: #e2f7d9;
    --purple: #ece3ff;

    --accent: #ffb454;
    --accent-dark: #ff9d29;

    --text: #4d4d4d;
    --shadow: rgba(0, 0, 0, 0.08);

    --radius: 20px;
    --font-body: 'Nunito', sans-serif;
    --font-heading: 'Fredoka', sans-serif;
}

/* =========================
   Girl — pink, rose & lavender pastels
========================= */
:root[data-theme="girl"] {
    --pink: #ffd6e7;
    --blue: #f6e6ff;
    --yellow: #fff0f5;
    --green: #ffe4ec;
    --purple: #f3e0ff;

    --accent: #ff8fb1;
    --accent-dark: #ff6d98;
}

/* =========================
   Boy — sky blue, mint & teal pastels
========================= */
:root[data-theme="boy"] {
    --pink: #dff1ff;
    --blue: #dff6ff;
    --yellow: #eafbea;
    --green: #d7f5e3;
    --purple: #e0eaff;

    --accent: #5aa9e6;
    --accent-dark: #3d8bd1;
}

/* =========================
   Theme Switcher Widget
========================= */
.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    box-shadow: 0 3px 10px var(--shadow);
}

.theme-switcher-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border: none;
    border-radius: 999px;
    padding: 8px 14px;

    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;

    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-switcher-btn .theme-switcher-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.theme-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.theme-switcher-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 3px 8px var(--shadow);
}

@media (max-width: 768px) {
    .theme-switcher-btn span.theme-switcher-label {
        display: none;
    }
}
