/* ====== ESTILOS DO MASCOTE DE NOTIFICAÇÕES PLAYLUDICO ====== */

/* 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;
    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;
}

.mascote-image:hover {
    transform: scale(1.1) rotate(5deg) !important;
    filter: drop-shadow(0 15px 30px rgba(136, 29, 219, 0.3)) !important;
}

.mascote-image.mascote-animate {
    animation: mascoteExcitement 0.8s ease-in-out !important;
}

/* 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;
    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;
}

/* Responsividade */
@media (max-width: 768px) {
    .mascote-notification-container {
        bottom: 20px !important;
        left: 20px !important;
    }
    
    .mascote-image {
        width: 90px !important;
    }
    
    .mascote-speech-bubble {
        max-width: 200px !important;
        font-size: 13px !important;
        bottom: 110px !important;
    }
}

@media (max-width: 480px) {
    .mascote-notification-container {
        bottom: 15px !important;
        left: 15px !important;
    }
    
    .mascote-image {
        width: 70px !important;
    }
    
    .mascote-speech-bubble {
        max-width: 180px !important;
        font-size: 12px !important;
        bottom: 90px !important;
    }
}

/* Efeitos especiais quando o usuário interage com elementos da página */
.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;
}
