/* ====== ESTILOS DO MASCOTE DE NOTIFICAÇÕES ====== */

/* Regras específicas para garantir visibilidade */
.mascote-notification-container {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    right: auto !important;
    z-index: 1000000 !important; /* Z-index muito alto */
    pointer-events: none;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    clip: auto !important;
    transform: none !important;
}

/* Ocultar qualquer mascote antigo */
.mascote-container,
.hero-section .mascote-hero,
.section-mascote {
    display: none !important;
}

.mascote-image {
    width: 120px !important;
    height: auto !important;
    cursor: pointer !important;
    pointer-events: all !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    filter: drop-shadow(0 10px 20px rgba(136, 29, 219, 0.2)) !important;
    animation: mascoteFloat 4s ease-in-out infinite !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    position: relative !important;
    z-index: 1000001 !important;
}

/* Ocultar mascote antigo se existir */
.mascote-container {
    display: none !important;
}

.mascote-image {
    width: 120px;
    height: auto;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 20px rgba(136, 29, 219, 0.2));
    animation: mascoteFloat 4s ease-in-out infinite;
}

.mascote-image:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 15px 30px rgba(136, 29, 219, 0.3));
}

.mascote-image.mascote-animate {
    animation: mascoteExcitement 0.8s ease-in-out;
}

/* Animações do mascote */
@keyframes mascoteFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes mascoteExcitement {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.15) rotate(-5deg); }
    50% { transform: scale(1.2) rotate(5deg); }
    75% { transform: scale(1.15) rotate(-3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes mascoteBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
}

/* Balão de fala do mascote - Versão melhorada */
.mascote-speech-bubble {
    position: absolute !important;
    bottom: 140px !important;
    left: 0 !important;
    background: #17a2b8 !important; /* Cor padrão azul info */
    color: white !important;
    padding: 15px 20px !important;
    border-radius: 20px !important;
    max-width: 250px !important;
    min-width: 150px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) scale(0.9) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: all !important;
    z-index: 1000002 !important;
    display: block !important;
    word-wrap: break-word !important;
    white-space: normal !important;
}

.mascote-speech-bubble.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

/* Texto dentro do balão */
.mascote-speech-bubble .speech-text {
    display: block !important;
    color: white !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    word-wrap: break-word !important;
    white-space: normal !important;
}

/* Botão de fechar */
.mascote-speech-bubble .close-bubble {
    position: absolute !important;
    top: 5px !important;
    right: 8px !important;
    background: none !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: block !important;
    z-index: 1000003 !important;
}

.mascote-speech-bubble .close-bubble:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
}

/* Seta do balão */
.mascote-speech-bubble:after {
    content: '' !important;
    position: absolute !important;
    bottom: -10px !important;
    left: 30px !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 10px solid transparent !important;
    border-right: 10px solid transparent !important;
    border-top: 10px solid #17a2b8 !important;
    z-index: 1000001 !important;
}

/* Estilos de tipos de notificação */
.mascote-speech-bubble.type-success {
    background: #28a745 !important;
}

.mascote-speech-bubble.type-success:after {
    border-top-color: #28a745 !important;
}

.mascote-speech-bubble.type-error {
    background: #dc3545 !important;
}

.mascote-speech-bubble.type-error:after {
    border-top-color: #dc3545 !important;
}

.mascote-speech-bubble.type-warning {
    background: #ffc107 !important;
    color: #212529 !important;
}

.mascote-speech-bubble.type-warning .speech-text {
    color: #212529 !important;
}

.mascote-speech-bubble.type-warning .close-bubble {
    color: #212529 !important;
}

.mascote-speech-bubble.type-warning:after {
    border-top-color: #ffc107 !important;
}
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.mascote-speech-bubble .close-bubble:hover {
    opacity: 1;
}

/* Mascote na hero section */
.hero-section .mascote-hero {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: auto;
    opacity: 0.8;
    animation: mascoteWave 6s ease-in-out infinite;
    z-index: 10;
    display:none
}

@keyframes mascoteWave {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Mascote nas seções de conteúdo */
.section-mascote {
    position: absolute;
    width: 60px;
    height: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.section-mascote.games-section-mascote {
    top: 50px;
    left: -30px;
    animation: mascotePeek 8s ease-in-out infinite;
}

.section-mascote.about-section-mascote {
    bottom: 30px;
    right: -25px;
    animation: mascoteNod 5s ease-in-out infinite;
}

@keyframes mascotePeek {
    0%, 90%, 100% { transform: translateX(0); }
    45% { transform: translateX(20px); }
}

@keyframes mascoteNod {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(2deg); }
    75% { transform: translateY(5px) rotate(-2deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .mascote-notification-container {
        bottom: 20px;
        left: 20px;
    }
    
    .mascote-image {
        width: 90px;
    }
    
    .mascote-speech-bubble {
        max-width: 200px;
        font-size: 13px;
        bottom: 110px;
    }
    
    .hero-section .mascote-hero {
        width: 60px;
        top: 15px;
        right: 15px;
    }
    
    .section-mascote {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .mascote-notification-container {
        bottom: 15px;
        left: 15px;
    }
    
    .mascote-image {
        width: 70px;
    }
    
    .mascote-speech-bubble {
        max-width: 180px;
        font-size: 12px;
        bottom: 90px;
    }
}

/* Efeitos especiais quando o usuário interage com elementos da página */
.hero-section:hover .mascote-hero {
    animation-duration: 2s;
    opacity: 1;
}

.btn-playludico:hover ~ .mascote-container .mascote-image {
    animation: mascoteBounce 1s ease-in-out;
}

/* Estados do mascote baseados em scroll */
.mascote-container.scroll-active .mascote-image {
    transform: scale(0.9);
    opacity: 0.7;
}

.mascote-container.section-active .mascote-image {
    animation: mascoteExcitement 0.5s ease-in-out;
}
