/* 3D Interactive Mascot - Premium Lookmaxxing Edition */
.mascot-container {
    position: relative;
    width: 80px;
    height: 90px;
    margin: 0 auto 0.5rem;
    perspective: 1200px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.mascot {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

/* Body - More rounded and cute */
.mascot-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 70px;
    background: linear-gradient(145deg, #2C5364 0%, #3a6d7f 50%, #4299E1 100%);
    border-radius: 30px 30px 20px 20px;
    box-shadow:
        inset 0 -8px 15px rgba(0, 0, 0, 0.1),
        inset 0 8px 15px rgba(255, 255, 255, 0.1),
        0 10px 25px rgba(0, 0, 0, 0.3);
    animation: mascotFloat 4s ease-in-out infinite;
    position: relative;
}

/* Belly highlight for 3D effect */
.mascot-body::before {
    content: "";
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 50%;
}

@keyframes mascotFloat {

    0%,
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    50% {
        transform: translateX(-50%) translateY(-5px) scale(1.01);
    }
}

/* Head - More 3D with shading */
.mascot-head {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #4299E1 0%, #63B3ED 50%, #90CDF4 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 -6px 12px rgba(0, 0, 0, 0.15),
        inset 0 6px 12px rgba(255, 255, 255, 0.2),
        0 6px 20px rgba(66, 153, 225, 0.5);
    transition: transform 0.1s ease-out;
}

/* Head highlight */
.mascot-head::before {
    content: "";
    position: absolute;
    top: 15%;
    left: 20%;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 50%;
}

/* Graduation Cap (Toga) */
.mascot-cap {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotateX(10deg);
    width: 42px;
    height: 6px;
    background: linear-gradient(145deg, #1a365d, #2C5364);
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
}

/* Cap top (board) */
.mascot-cap::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 38px;
    background: linear-gradient(145deg, #1a365d, #2C5364);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow:
        inset 0 -2px 6px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Tassel */
.mascot-tassel {
    position: absolute;
    top: -2px;
    right: -6px;
    width: 1.5px;
    height: 18px;
    background: linear-gradient(to bottom, #F2994A, #F2C94C);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mascot-tassel::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #F2C94C, #F2994A);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Eyes - More expressive with shine */
.mascot-eye {
    position: absolute;
    top: 16px;
    width: 9px;
    height: 9px;
    background: white;
    border-radius: 50%;
    z-index: 5;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 2px 5px rgba(0, 0, 0, 0.1);
}

.mascot-eye.left {
    left: 12px;
}

.mascot-eye.right {
    right: 12px;
}

.mascot-pupil {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle at 30% 30%, #1a365d, #0a1929);
    border-radius: 50%;
    transition: transform 0.1s ease-out;
}

/* Eye shine */
.mascot-pupil::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
}

/* Blush cheeks */
.mascot-cheek {
    position: absolute;
    top: 26px;
    width: 11px;
    height: 7px;
    background: radial-gradient(ellipse, rgba(242, 153, 74, 0.3), transparent);
    border-radius: 50%;
}

.mascot-cheek.left {
    left: 6px;
}

.mascot-cheek.right {
    right: 6px;
}

/* Mouth - Cute smile */
.mascot-mouth {
    position: absolute;
    bottom: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-top: none;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Greeting bubble - More premium */
.mascot-bubble {
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: linear-gradient(145deg, #ffffff, #f7fafc);
    color: #2C5364;
    padding: 0.5rem 0.8rem;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    border: 2px solid rgba(66, 153, 225, 0.2);
}

.mascot-bubble::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.mascot-bubble.show {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Hover effect on login card */
.login-card:hover .mascot-bubble {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Sparkle effect */
@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

.mascot-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #F2C94C, transparent);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

.mascot-sparkle:nth-child(1) {
    top: 10px;
    left: 10px;
    animation-delay: 0s;
}

.mascot-sparkle:nth-child(2) {
    top: 15px;
    right: 15px;
    animation-delay: 0.7s;
}

.mascot-sparkle:nth-child(3) {
    bottom: 20px;
    left: 15px;
    animation-delay: 1.4s;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .mascot-container {
        width: 100px;
        height: 120px;
    }

    .mascot-body {
        width: 70px;
        height: 82px;
    }

    .mascot-head {
        width: 54px;
        height: 54px;
    }

    .mascot-cap {
        width: 46px;
        top: -12px;
    }

    .mascot-cap::before {
        width: 42px;
        height: 42px;
    }

    .mascot-eye {
        width: 10px;
        height: 10px;
        top: 18px;
    }

    .mascot-pupil {
        width: 5px;
        height: 5px;
    }

    .mascot-cheek {
        width: 12px;
        height: 8px;
        top: 28px;
    }

    .mascot-mouth {
        width: 20px;
        height: 12px;
    }

    .mascot-bubble {
        font-size: 0.75rem;
        padding: 0.5rem 0.9rem;
        top: -48px;
    }
}