
/* 🏆 ENHANCED RANK AVATAR SYSTEM CSS */
/* ============================================ */

.rank-avatar-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--rank-primary), var(--rank-secondary));
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.rank-avatar-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.rank-avatar-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rank-primary), var(--rank-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.rank-avatar-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.rank-details {
    flex: 1;
    color: white;
}

.rank-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.rank-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.rank-flavor-text {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.8;
    border-left: 3px solid rgba(255,255,255,0.3);
    padding-left: 10px;
}

.rank-progress {
    margin-top: 15px;
}

.rank-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.rank-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.rank-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.rank-energy-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* 🎨 RANK-SPECIFIC THEMES */
.rank-1 { --rank-primary: #8fbc8f; --rank-secondary: #98fb98; }
.rank-2 { --rank-primary: #90ee90; --rank-secondary: #98fb98; }
.rank-3 { --rank-primary: #98fb98; --rank-secondary: #ffd700; }
.rank-4 { --rank-primary: #ffd700; --rank-secondary: #ffa500; }
.rank-5 { --rank-primary: #ffa500; --rank-secondary: #ff6347; }
.rank-6 { --rank-primary: #ff6347; --rank-secondary: #9370db; }
.rank-7 { --rank-primary: #9370db; --rank-secondary: #4169e1; }
.rank-8 { --rank-primary: #4169e1; --rank-secondary: #8a2be2; }
.rank-9 { --rank-primary: #8a2be2; --rank-secondary: #ff1493; }
.rank-10 { --rank-primary: #ff1493; --rank-secondary: #8fbc8f; }

/* 📊 ENHANCED STATISTICS CARDS */
.enhanced-stat-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enhanced-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color, #00ff88), var(--accent-color-secondary, #00ccff));
}

.enhanced-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.2);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--accent-color, #00ff88);
    margin-bottom: 5px;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 8px;
}

.stat-subtitle {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

/* 🔥 STREAK INDICATORS */
.streak-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #ff6b35, #f7941d);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.streak-flame {
    animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.1); }
}

/* 🎯 INTERACTIVE ELEMENTS */
.level-progress-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--rank-primary) 0deg, var(--rank-primary) var(--progress-angle, 0deg), rgba(255,255,255,0.1) var(--progress-angle, 0deg));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.level-progress-center {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.level-number {
    font-size: 1.5rem;
    line-height: 1;
}

.level-max {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* 📱 RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .rank-avatar-container {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .rank-avatar-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .rank-name {
        font-size: 1.4rem;
    }
    
    .enhanced-stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
}
