/* HELP PET: NEW FILE — save as wwwroot/css/help-pet.css */
#help-pet {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1080;
    font-family: Arial, sans-serif;
}

#help-pet-toggle {
    width: 82px;
    height: 82px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .32));
    animation: help-pet-breathe 3s ease-in-out infinite;
}

#help-pet-toggle:focus {
    outline: 3px solid #f4cd66;
    outline-offset: 3px;
}

#help-pet-toggle svg {
    width: 74px;
    height: 74px;
}

.help-pet-eye {
    transform-origin: center;
    animation: help-pet-blink 5s infinite;
}

.help-pet-wave {
    transform-origin: 49px 38px;
}

#help-pet.is-open .help-pet-wave {
    animation: help-pet-wave .7s ease-in-out 2;
}

#help-pet-panel {
    display: none;
    position: absolute;
    bottom: 94px;
    left: 0;
    width: min(340px, calc(100vw - 36px));
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

#help-pet.is-open #help-pet-panel {
    display: block;
    animation: help-pet-show .18s ease-out;
}

.help-pet-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    color: #fff;
    background: #2e7d72;
}

.help-pet-heading strong { font-size: 15px; }
.help-pet-heading button { color: #fff; background: transparent; border: 0; font-size: 23px; line-height: 1; }
.help-pet-status { margin: 0; padding: 7px 14px; color: #667; font-size: 12px; background: #f5f7f8; }
.help-pet-messages { min-height: 140px; max-height: 270px; padding: 12px; overflow-y: auto; color: #334; font-size: 13px; }
.help-pet-message { margin-bottom: 9px; padding: 8px 10px; border-radius: 10px; background: #e8f3f1; }
.help-pet-message--user { margin-left: 35px; color: #fff; background: #428bca; }
/* HELP PET THINKING: a prominent, animated temporary bubble while SignalR/Ollama prepares a reply. */
.help-pet-thinking { display: flex; align-items: center; gap: 4px; width: fit-content; color: #24635a; font-weight: 600; }
.help-pet-thinking i { width: 6px; height: 6px; border-radius: 50%; background: #2e7d72; animation: help-pet-thinking-dot 1.15s infinite ease-in-out; }
.help-pet-thinking i:nth-of-type(2) { animation-delay: .15s; }
.help-pet-thinking i:nth-of-type(3) { animation-delay: .3s; }
.help-pet.is-thinking #help-pet-toggle svg { animation: help-pet-thinking-pulse .85s infinite ease-in-out; }
@keyframes help-pet-thinking-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes help-pet-thinking-pulse { 50% { transform: scale(1.08) rotate(-3deg); } }
/* HELP PET: preserve paragraphs and line breaks entered in the Help Topics response editor. */
.help-pet-message > span { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.help-pet-read { display: block; margin: 6px 0 0; padding: 0; border: 0; color: #24635a; background: transparent; font-size: 11px; text-decoration: underline; }
.help-pet-read:focus { outline: 2px solid #24635a; outline-offset: 2px; }
.help-pet-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.help-pet-suggestions button { border: 1px solid #2e7d72; border-radius: 14px; padding: 5px 8px; color: #24635a; background: #fff; font-size: 12px; }
.help-pet-voice-controls { display: flex; align-items: center; gap: 5px; padding: 0 12px 10px; color: #667; font-size: 11px; }
.help-pet-voice-controls select { width: 115px; min-width: 0; font-size: 11px; }
.help-pet-voice-controls input { width: 55px; }
.help-pet-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #e6e8ea; }
.help-pet-form input { flex: 1; min-width: 0; padding: 7px 9px; border: 1px solid #bfc7ca; border-radius: 5px; }
.help-pet-form button { border: 0; border-radius: 5px; padding: 7px 11px; color: #fff; background: #2e7d72; }

/* HELP PET: seasonal appearances use only the inline SVG already in the layout. */
.help-pet-santa, .help-pet-ghost, .help-pet-fireworks, .help-pet-hearts, .help-pet-birthday { display: none; }
#help-pet.season-santa .help-pet-santa { display: block; }
#help-pet.season-ghost .help-pet-base { display: none; }
#help-pet.season-ghost .help-pet-ghost { display: block; }
#help-pet.season-fireworks .help-pet-fireworks { display: block; animation: help-pet-sparkle 1.2s ease-in-out infinite alternate; }
#help-pet.season-heart .help-pet-hearts { display: block; animation: help-pet-float 1.6s ease-in-out infinite alternate; }
#help-pet.season-birthday .help-pet-birthday { display: block; animation: help-pet-party 1s ease-in-out infinite alternate; }

@keyframes help-pet-breathe { 50% { transform: translateY(-4px) scale(1.03); } }
@keyframes help-pet-blink { 0%, 46%, 48%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.08); } }
@keyframes help-pet-wave { 50% { transform: rotate(22deg); } }
@keyframes help-pet-show { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes help-pet-sparkle { to { opacity: .55; transform: scale(1.08); } }
@keyframes help-pet-float { to { transform: translateY(-3px); } }
@keyframes help-pet-party { to { transform: rotate(4deg); } }

@media (prefers-reduced-motion: reduce) {
    #help-pet-toggle, .help-pet-eye, #help-pet.is-open .help-pet-wave, .help-pet-fireworks, .help-pet-hearts, .help-pet-birthday { animation: none; }
}
