/* ============================================================
 * mascot.css — Stili per la mascotte "L'Esperto" (il Genio)
 * Niente più avatar fluttuante: resta solo come logo (header/splash) e come
 * icona del bottone "Chiedi al Genio" nella schermata domanda.
 * ============================================================ */

/* Versione inline della mascotte (dentro contenuti, non floating) */
.mascot-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
}

.mascot-inline img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-green);
}

/* Animazione ricerca (usata dalla mascotte nello schermo di loading) */
@keyframes mascotSearch {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-3deg); }
    50% { transform: translateY(-2px) rotate(2deg); }
    75% { transform: translateY(-8px) rotate(-2deg); }
}

/* Mascotte nella splash screen */
.splash-mascot {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-green);
    margin-bottom: 12px;
    animation: mascotPulse 2s ease-in-out infinite;
    object-fit: cover;
}

@keyframes mascotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(113, 171, 35, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(113, 171, 35, 0); }
}

/* Il Genio come logo grande in home: il "compagno" del sito, ben visibile
   invece che una piccola icona astratta. Respira dolcemente per sembrare vivo. */
.hero-logo-symbol {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, rgba(0,0,0,0) 75%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-green);
    box-shadow: 0 0 30px var(--accent-green-glow);
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: heroLogoBreathe 4s ease-in-out infinite;
}

.hero-logo-symbol:hover {
    animation-play-state: paused;
}

@keyframes heroLogoBreathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
}

.hero-mascot {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

/* Mascotte nella schermata loading */
.loading-mascot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    animation: mascotSearch 1.5s ease-in-out infinite;
    margin: 0 auto 10px;
    object-fit: cover;
}

/* UX final polish: home mascot must support app-first layout, especially mobile */
#engine-start .hero-logo-symbol {
    width: 118px !important;
    height: 118px !important;
    margin-bottom: 14px !important;
}

#engine-start .hero-mascot {
    width: 92px !important;
    height: 92px !important;
}

@media (max-width: 640px) {
    #engine-start .hero-logo-symbol {
        width: 84px !important;
        height: 84px !important;
        margin-bottom: 8px !important;
    }

    #engine-start .hero-mascot {
        width: 66px !important;
        height: 66px !important;
    }
}
