/* ===== LEVEL BADGE PREMIUM EFFECTS ===== */

/* Level Badge Enhanced Styling */
.level-badge,
#pass-level-tag {
    position: relative;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.2) 0%,
            rgba(168, 85, 247, 0.1) 100%);
    border: 2px solid rgba(139, 92, 246, 0.4);
    padding: 6px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #A78BFA;
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: badgePulse 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.level-badge::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg,
            rgba(139, 92, 246, 0.6),
            rgba(168, 85, 247, 0.4),
            rgba(196, 181, 253, 0.2));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.level-badge:hover::before {
    opacity: 1;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(139, 92, 246, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow:
            0 0 30px rgba(139, 92, 246, 0.5),
            0 0 40px rgba(139, 92, 246, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* Hexagonal Level Badge (for special displays) */
.level-badge-hex {
    width: 80px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.level-badge-hex::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow:
        0 10px 30px rgba(139, 92, 246, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.level-badge-hex::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(10, 10, 10, 0.9);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.level-badge-hex .level-num {
    position: relative;
    z-index: 2;
    font-size: 24px;
    font-weight: 900;
    color: #A78BFA;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.level-badge-hex .level-label {
    position: relative;
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}