/* ========== PROFILE CUSTOMIZATION SYSTEM ========== */
/* Banners, Bordas, Avatares e Efeitos de Hover */

/* ========== PROFILE CONTAINER ========== */

.profile-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(15, 25, 35, 0.95);
    border-radius: 15px;
    overflow: hidden;
}

/* ========== BANNERS DE PERFIL ========== */

.profile-banner {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

/* Banner Valorant Red */
.profile-banner-valorant-red {
    background: linear-gradient(135deg, #ff4655 0%, #0f1923 100%);
    animation: banner-pulse 3s ease-in-out infinite;
}

@keyframes banner-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

/* Banner Cyberpunk */
.profile-banner-cyberpunk {
    background: linear-gradient(135deg, #00ffff 0%, #ff00ff 50%, #ffff00 100%);
    background-size: 200% 200%;
    animation: banner-cyberpunk 5s ease infinite;
}

@keyframes banner-cyberpunk {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Banner Galaxy */
.profile-banner-galaxy {
    background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #6600cc 100%);
    position: relative;
}

.profile-banner-galaxy::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: stars-move 20s linear infinite;
}

@keyframes stars-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

/* Banner Radiant */
.profile-banner-radiant {
    background: linear-gradient(135deg, #ffd700 0%, #ffeb3b 50%, #ffd700 100%);
    background-size: 200% 200%;
    animation: banner-radiant 3s ease-in-out infinite;
    box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.5);
}

@keyframes banner-radiant {
    0%, 100% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
    50% { 
        background-position: 100% 50%;
        filter: brightness(1.3);
    }
}

/* ========== BORDAS DE PERFIL ========== */

.profile-with-border {
    position: relative;
    padding: 5px;
}

/* Borda Azul */
.profile-border-blue {
    border: 3px solid #00f0ff;
    box-shadow: 
        0 0 10px rgba(0, 240, 255, 0.5),
        inset 0 0 10px rgba(0, 240, 255, 0.2);
    animation: border-glow-blue 2s ease-in-out infinite;
}

@keyframes border-glow-blue {
    0%, 100% { 
        box-shadow: 
            0 0 10px rgba(0, 240, 255, 0.5),
            inset 0 0 10px rgba(0, 240, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 20px rgba(0, 240, 255, 0.8),
            inset 0 0 20px rgba(0, 240, 255, 0.4);
    }
}

/* Borda Dourada */
.profile-border-gold {
    border: 4px solid #ffd700;
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.7),
        inset 0 0 15px rgba(255, 215, 0, 0.3);
    animation: border-pulse-gold 1.5s ease-in-out infinite;
}

@keyframes border-pulse-gold {
    0%, 100% { 
        box-shadow: 
            0 0 15px rgba(255, 215, 0, 0.7),
            inset 0 0 15px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 1),
            inset 0 0 30px rgba(255, 215, 0, 0.5);
        transform: scale(1.02);
    }
}

/* Borda Rainbow */
.profile-border-rainbow {
    border: 5px solid transparent;
    background: 
        linear-gradient(rgba(15, 25, 35, 0.95), rgba(15, 25, 35, 0.95)) padding-box,
        linear-gradient(45deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff, #ff0000) border-box;
    animation: border-rainbow-rotate 3s linear infinite;
}

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

/* Borda de Fogo */
.profile-border-fire {
    border: 6px solid #ff4400;
    box-shadow: 
        0 0 20px rgba(255, 68, 0, 0.8),
        inset 0 0 20px rgba(255, 68, 0, 0.4);
    animation: border-fire-flicker 0.3s infinite;
}

@keyframes border-fire-flicker {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(255, 68, 0, 0.8),
            inset 0 0 20px rgba(255, 68, 0, 0.4);
        border-color: #ff4400;
    }
    25% { 
        box-shadow: 
            0 0 30px rgba(255, 136, 0, 1),
            inset 0 0 30px rgba(255, 136, 0, 0.6);
        border-color: #ff8800;
    }
    50% { 
        box-shadow: 
            0 0 25px rgba(255, 0, 0, 0.9),
            inset 0 0 25px rgba(255, 0, 0, 0.5);
        border-color: #ff0000;
    }
    75% { 
        box-shadow: 
            0 0 30px rgba(255, 136, 0, 1),
            inset 0 0 30px rgba(255, 136, 0, 0.6);
        border-color: #ff8800;
    }
}

/* ========== AVATARES PERSONALIZADOS ========== */

.profile-avatar-custom {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4655, #0f1923);
}

/* Avatar com imagem */
.profile-avatar-custom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ========== BEST RANK SHOWCASE ========== */

.profile-best-rank-showcase {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.1), rgba(255, 215, 0, 0.1));
    border: 4px solid #ffd700;
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
    animation: rank-showcase-glow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes rank-showcase-glow {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.3),
            inset 0 0 30px rgba(255, 215, 0, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 50px rgba(255, 215, 0, 0.6),
            inset 0 0 50px rgba(255, 215, 0, 0.2);
    }
}

/* Efeito de brilho de fundo */
.profile-best-rank-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: rank-shine 3s linear infinite;
}

@keyframes rank-shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rank-showcase-icon {
    width: 150px;
    height: 150px;
    position: relative;
    z-index: 2;
}

.rank-icon-large {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px #ffd700);
    animation: rank-float 3s ease-in-out infinite;
}

@keyframes rank-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.rank-showcase-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.rank-label {
    font-size: 14px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: 600;
}

.rank-name {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(90deg, #ffd700, #ffeb3b, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: rank-text-glow 2s ease-in-out infinite;
}

@keyframes rank-text-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.rank-subtitle {
    font-size: 16px;
    color: #888;
    margin-top: 10px;
    font-weight: 500;
}

.rank-percentile {
    font-size: 18px;
    color: #ffd700;
    font-weight: bold;
    margin-top: 5px;
}

/* ========== EFEITOS DE HOVER ========== */

/* Hover no perfil inteiro */
.profile-container:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Hover no avatar */
.profile-avatar-container:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

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

/* Hover no banner */
.profile-banner:hover {
    filter: brightness(1.2);
    transition: filter 0.3s ease;
}

/* Hover no best rank */
.profile-best-rank-showcase:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.profile-best-rank-showcase:hover .rank-icon-large {
    transform: translateY(-15px) scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

/* Partículas de hover */
.profile-container:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    animation: hover-particles 0.5s ease forwards;
}

@keyframes hover-particles {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Efeito de brilho ao passar o mouse */
.profile-stats-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 70, 85, 0.3);
    transition: all 0.3s ease;
}

.profile-stats-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: card-shine 0.6s ease;
}

@keyframes card-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .profile-banner {
        height: 120px;
    }
    
    .profile-best-rank-showcase {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    
    .rank-showcase-icon {
        width: 100px;
        height: 100px;
    }
    
    .rank-name {
        font-size: 36px;
    }
    
    .rank-label {
        font-size: 12px;
    }
}

/* ========== ANIMAÇÕES EXTRAS ========== */

/* Entrada suave */
@keyframes profile-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-container {
    animation: profile-fade-in 0.5s ease;
}

/* Brilho de conquista */
@keyframes achievement-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 1); }
}

.profile-achievement-highlight {
    animation: achievement-glow 1s ease-in-out infinite;
}
