/* 
   Level Tag Styling
   Synchronized with SVG Avatar Frame Designs
*/

.lvl-tag {
    position: absolute;
    bottom: -10px;
    right: -10px;
    z-index: 10;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--bg-card);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

/* Level 1: Bronze */
.lvl-tag--1,
.lvl-tag-1 {
    background: linear-gradient(135deg, #dfa168 0%, #b86b25 50%, #693a10 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Level 2: Silver */
.lvl-tag--2,
.lvl-tag-2 {
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 50%, #475569 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #1e293b;
    text-shadow: none;
}

/* Level 3: Gold */
.lvl-tag--3,
.lvl-tag-3 {
    background: linear-gradient(135deg, #fef08a 0%, #eab308 50%, #713f12 100%);
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.3);
    color: #422006;
    text-shadow: none;
}

/* Level 4: Platinum (Tech) */
.lvl-tag--4,
.lvl-tag-4 {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #64748b 100%);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.4);
    position: relative;
    overflow: hidden;
}

.lvl-tag--4::after,
.lvl-tag-4::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: lvl-shine 3s infinite;
}

/* Level 5: Emerald (Special Shape) */
.lvl-tag--5,
.lvl-tag-5 {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #064e3b 100%);
    clip-path: polygon(10% 0%, 100% 0%, 100% 70%, 90% 100%, 0% 100%, 0% 30%);
    padding: 2px 12px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

/* Level 6: Ruby (Mecha) */
.lvl-tag--6,
.lvl-tag-6 {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 50%, #7f1d1d 100%);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
    border: 2px solid #fee2e2;
}

/* Level 7: Emerald Magical */
.lvl-tag--7,
.lvl-tag-7 {
    background: linear-gradient(135deg, #a7f3d0 0%, #10b981 50%, #064e3b 100%);
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    animation: lvl-pulse 2s infinite ease-in-out;
}

/* Level 8: Sapphire Plasma */
.lvl-tag--8,
.lvl-tag-8 {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.7);
    border: 2px solid #dbeafe;
}

/* Level 9: Purple Winged Legend */
.lvl-tag--9,
.lvl-tag-9 {
    background: linear-gradient(135deg, #d946ef 0%, #a855f7 50%, #7e22ce 100%);
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.8), 0 0 10px rgba(217, 70, 239, 0.4);
    border: 2px solid #f5d0fe;
}

/* Level 10: Cosmic Ascendant */
.lvl-tag--10,
.lvl-tag-10 {
    background: linear-gradient(45deg, #c084fc, #e879f9, #2dd4bf, #1e1b4b);
    background-size: 300% 300%;
    animation: cosmic-bg 5s infinite linear, lvl-pulse-glow 3s infinite alternate;
    box-shadow: 0 0 25px rgba(192, 132, 252, 0.8);
    border: 2px solid #fff;
}

/* Animations */
@keyframes lvl-shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes lvl-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes lvl-pulse-glow {
    0% {
        box-shadow: 0 0 15px rgba(192, 132, 252, 0.6);
    }

    100% {
        box-shadow: 0 0 30px rgba(45, 212, 191, 0.9);
    }
}

@keyframes cosmic-bg {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}