/* ========== AVATAR AURAS SYSTEM ========== */
/* Sistema completo de auras para avatares de perfil */

/* Container do Avatar com Aura */
.profile-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: inline-block;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #ff4655, #0f1923);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
}

/* Aura Base */
.avatar-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* ========== AURAS BÁSICAS (Uncommon) ========== */

/* Aura Azul Neon */
.avatar-aura-blue {
    box-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
    border: 3px solid #00f0ff;
    animation: aura-pulse-soft 2s infinite;
}

@keyframes aura-pulse-soft {
    0%, 100% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 15px #00f0ff, 0 0 30px #00f0ff;
    }
}

/* Aura Verde */
.avatar-aura-green {
    box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    border: 3px solid #00ff88;
    animation: aura-pulse-soft-green 2s infinite;
}

@keyframes aura-pulse-soft-green {
    0%, 100% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 15px #00ff88, 0 0 30px #00ff88;
    }
}

/* Aura Rosa */
.avatar-aura-pink {
    box-shadow: 0 0 10px #ff69b4, 0 0 20px #ff69b4;
    border: 3px solid #ff69b4;
    animation: aura-pulse-soft-pink 2s infinite;
}

@keyframes aura-pulse-soft-pink {
    0%, 100% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px #ff69b4, 0 0 20px #ff69b4;
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 15px #ff69b4, 0 0 30px #ff69b4;
    }
}

/* ========== AURAS RARAS (Rare) ========== */

/* Aura Dourada */
.avatar-aura-gold {
    box-shadow: 0 0 15px #ffd700, 0 0 30px #ffd700;
    border: 4px solid #ffd700;
    animation: aura-pulse-medium 1.5s infinite;
}

@keyframes aura-pulse-medium {
    0%, 100% { 
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px #ffd700, 0 0 30px #ffd700;
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 25px #ffd700, 0 0 50px #ffd700;
    }
}

/* Aura Roxa */
.avatar-aura-purple {
    box-shadow: 0 0 15px #8800ff, 0 0 30px #8800ff;
    border: 4px solid #8800ff;
    animation: aura-pulse-medium-purple 1.5s infinite;
}

@keyframes aura-pulse-medium-purple {
    0%, 100% { 
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px #8800ff, 0 0 30px #8800ff;
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 25px #8800ff, 0 0 50px #8800ff;
    }
}

/* ========== AURAS ÉPICAS (Epic) ========== */

/* Aura Rainbow */
.avatar-aura-rainbow {
    border: 5px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff, #ff0000) border-box;
    animation: aura-rotate-rainbow 3s linear infinite;
}

@keyframes aura-rotate-rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Aura Plasma */
.avatar-aura-plasma {
    background: linear-gradient(45deg, #ff00ff, #8800ff, #ff0088, #ff00ff);
    background-size: 200% 200%;
    filter: blur(20px);
    opacity: 0.8;
    animation: aura-wave 3s ease infinite;
    border: 5px solid #ff00ff;
}

@keyframes aura-wave {
    0% { 
        background-position: 0% 50%;
        opacity: 0.7;
    }
    50% { 
        background-position: 100% 50%;
        opacity: 1;
    }
    100% { 
        background-position: 0% 50%;
        opacity: 0.7;
    }
}

/* ========== AURAS LENDÁRIAS (Legendary) ========== */

/* Aura Radiante */
.avatar-aura-radiant {
    box-shadow: 
        0 0 20px #ffeb3b,
        0 0 40px #ffd700,
        0 0 60px #ffeb3b;
    border: 6px solid #ffd700;
    animation: aura-sparkle 1s infinite;
}

@keyframes aura-sparkle {
    0%, 100% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 
            0 0 20px #ffeb3b,
            0 0 40px #ffd700,
            0 0 60px #ffeb3b;
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
        box-shadow: 
            0 0 30px #ffeb3b,
            0 0 60px #ffd700,
            0 0 90px #ffeb3b,
            0 0 120px #fff;
    }
}

/* Aura de Fogo */
.avatar-aura-fire {
    box-shadow: 
        0 0 25px #ff4400,
        0 0 50px #ff0000;
    border: 6px solid #ff4400;
    animation: aura-flicker 0.3s infinite;
}

@keyframes aura-flicker {
    0%, 100% { 
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 25px #ff4400, 0 0 50px #ff0000;
    }
    25% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05) translateY(-2px);
        box-shadow: 0 0 30px #ff8800, 0 0 60px #ff4400;
    }
    50% { 
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1.02);
        box-shadow: 0 0 20px #ff4400, 0 0 40px #ff0000;
    }
    75% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05) translateY(-2px);
        box-shadow: 0 0 30px #ff8800, 0 0 60px #ff4400;
    }
}

/* ========== AURAS MÍTICAS (Mythic) ========== */

/* Aura Galáxia */
.avatar-aura-galaxy {
    background: radial-gradient(circle, #6600cc, #330066, #1a0033);
    box-shadow: 
        0 0 30px #6600cc,
        0 0 60px #330066;
    border: 8px solid #9933ff;
    animation: aura-cosmic 4s ease-in-out infinite;
}

@keyframes aura-cosmic {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.8;
        box-shadow: 0 0 30px #6600cc, 0 0 60px #330066;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1) rotate(180deg);
        opacity: 1;
        box-shadow: 0 0 50px #9933ff, 0 0 100px #6600cc;
    }
}

/* Aura Divina */
.avatar-aura-divine {
    box-shadow: 
        0 0 35px #ffffff,
        0 0 70px rgba(255, 255, 255, 0.8),
        0 0 105px rgba(255, 255, 255, 0.6);
    border: 8px solid #ffffff;
    animation: aura-heavenly 2s ease-in-out infinite;
}

@keyframes aura-heavenly {
    0%, 100% { 
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
        box-shadow: 
            0 0 35px #ffffff,
            0 0 70px rgba(255, 255, 255, 0.8);
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.12);
        filter: brightness(1.5);
        box-shadow: 
            0 0 50px #ffffff,
            0 0 100px rgba(255, 255, 255, 1),
            0 0 150px rgba(255, 255, 255, 0.8);
    }
}

/* ========== TAMANHOS RESPONSIVOS ========== */

/* Avatar pequeno (leaderboard) */
.profile-avatar-container.small {
    width: 40px;
    height: 40px;
}

.profile-avatar-container.small .profile-avatar {
    font-size: 18px;
}

.profile-avatar-container.small .avatar-aura {
    width: calc(100% + 8px);
    height: calc(100% + 8px);
}

/* Avatar médio (menu) */
.profile-avatar-container.medium {
    width: 60px;
    height: 60px;
}

.profile-avatar-container.medium .profile-avatar {
    font-size: 24px;
}

.profile-avatar-container.medium .avatar-aura {
    width: calc(100% + 12px);
    height: calc(100% + 12px);
}

/* Avatar grande (perfil) */
.profile-avatar-container.large {
    width: 150px;
    height: 150px;
}

.profile-avatar-container.large .profile-avatar {
    font-size: 64px;
}

.profile-avatar-container.large .avatar-aura {
    width: calc(100% + 30px);
    height: calc(100% + 30px);
}

/* ========== HOVER EFFECTS ========== */

.profile-avatar-container:hover .avatar-aura {
    animation-duration: 0.5s !important;
}

.profile-avatar-container:hover .profile-avatar {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* ========== MOBILE OPTIMIZATIONS ========== */

@media (max-width: 768px) {
    .profile-avatar-container {
        width: 80px;
        height: 80px;
    }
    
    .profile-avatar {
        font-size: 32px;
    }
    
    .avatar-aura {
        width: calc(100% + 12px);
        height: calc(100% + 12px);
    }
}
