/* UniAcademy mascot - small decorative image/video snippets + speech bubble */

.mascot-image {
    display: inline-block;
    object-fit: contain;
    animation: mascot-float 3.5s ease-in-out infinite;
}

.mascot-video-wrapper {
    position: relative;
    display: inline-block;
    animation: mascot-float 3.5s ease-in-out infinite;
}

.mascot-video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@keyframes mascot-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.mascot-speech-bubble {
    position: absolute;
    left: 0;
    background: #fff;
    color: #34395e;
    border: 1px solid #eff0f2;
    border-radius: 14px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    z-index: 5;
    animation: mascot-bubble-in 0.35s ease-out;
}

.mascot-speech-bubble::after {
    content: '';
    position: absolute;
    left: 20px;
    border: 7px solid transparent;
}

.mascot-speech-bubble-top {
    bottom: calc(100% + 10px);
}

.mascot-speech-bubble-top::after {
    top: 100%;
    border-top-color: #fff;
}

.mascot-speech-bubble-bottom {
    top: calc(100% + 10px);
}

.mascot-speech-bubble-bottom::after {
    bottom: 100%;
    border-bottom-color: #fff;
}

@keyframes mascot-bubble-in {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Sidebar mascot sits quietly at the bottom, above the menu edge */
.mascot-sidebar-footer {
    display: flex;
    justify-content: center;
    padding: 10px 0 14px;
    opacity: 0.9;
}

/* On dark/glass error pages, keep the drop shadow soft rather than harsh black */
.mascot-on-dark {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

@media (max-width: 575.98px) {
    .mascot-speech-bubble {
        white-space: normal;
        max-width: 200px;
        text-align: center;
    }
}
