/* Gamification Styles - Level Rewards System */

/* Avatar Frames */
.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-frame-basic {
    border: 3px solid #4A90E2;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.avatar-frame-frame-basic-1 {
    border: 3px solid #4A90E2;
    border-radius: 50%;
}

.avatar-frame-frame-basic-2 {
    border: 3px solid #50C878;
    border-radius: 50%;
}

.avatar-frame-frame-basic-3 {
    border: 3px solid #FFB347;
    border-radius: 50%;
}

.avatar-frame-frame-basic-4 {
    border: 3px solid #FF6B6B;
    border-radius: 50%;
}

.avatar-frame-frame-basic-5 {
    border: 3px solid #BB8FCE;
    border-radius: 50%;
}

/* Profile Frames */
.profile-frame-unique {
    border: 3px solid linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

/* Animated Avatars */
.avatar-animated {
    animation: avatar-pulse 2s ease-in-out infinite;
}

@keyframes avatar-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Avatar Particles */
.avatar-particles {
    position: relative;
}

.avatar-particles::before,
.avatar-particles::after {
    content: '✨';
    position: absolute;
    font-size: 20px;
    animation: particle-float 3s ease-in-out infinite;
}

.avatar-particles::before {
    top: -10px;
    left: -10px;
    animation-delay: 0s;
}

.avatar-particles::after {
    top: -10px;
    right: -10px;
    animation-delay: 1.5s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.5;
    }
}

/* Nickname Effects */
.nickname-golden {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: golden-shimmer 2s ease-in-out infinite;
}

@keyframes golden-shimmer {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.nickname-effects-custom {
    position: relative;
    display: inline-block;
}

.nickname-effects-custom::before {
    content: '✨';
    position: absolute;
    left: -25px;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Nickname Badge Styles */
.nickname-badge {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.9em;
    vertical-align: middle;
}

/* Prestige Stars */
.prestige-stars {
    display: inline-block;
    margin-left: 8px;
    color: #FFD700;
    font-size: 1.1em;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    animation: prestige-glow 2s ease-in-out infinite;
}

@keyframes prestige-glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }
}

/* Level-based nickname colors */
.nickname-level-5 { color: #4A90E2; }
.nickname-level-10 { color: #50C878; }
.nickname-level-15 { color: #FFB347; }
.nickname-level-20 { color: #FF6B6B; }
.nickname-level-25 { color: #4ECDC4; }
.nickname-level-30 { color: #45B7D1; }
.nickname-level-40 { color: #FFA07A; }
.nickname-level-50 { color: #98D8C8; font-weight: 600; }
.nickname-level-60 { color: #F7DC6F; font-weight: 600; }
.nickname-level-70 { 
    color: #FFD700;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.nickname-level-80 { 
    background: linear-gradient(45deg, #FFD700, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}
.nickname-level-90 { 
    background: linear-gradient(45deg, #FF1493, #FFD700, #00CED1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    animation: rainbow-shift 3s ease infinite;
}

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

/* XP Progress Bar Enhancements */
.xp-progress-bar {
    height: 8px;
    background: linear-gradient(90deg, #4A90E2, #50C878);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.xp-progress-container {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Level Badge */
.level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.level-badge-legendary {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    animation: legendary-pulse 2s ease-in-out infinite;
}

@keyframes legendary-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .avatar-particles::before,
    .avatar-particles::after {
        font-size: 16px;
    }
    
    .prestige-stars {
        font-size: 1em;
    }
}

/* Small utility classes */
.thumbnail-28 { width: 28px; height: 28px; object-fit: contain; margin-right: 8px; border-radius: 4px; }
.contrib-progress { width: 100px; height: 20px; }
.contrib-progress .progress-bar small { line-height: 20px; }
.notification-badge { display: none; }

/* Explicit nickname color classes (used by templates via class names) */
.nickname-color-gold { color: #D4AF37; }
.nickname-color-silver { color: #C0C0C0; }
.nickname-color-bronze { color: #CD7F32; }
.nickname-color-red { color: #FF6B6B; }
.nickname-color-blue { color: #4A90E2; }
.nickname-color-green { color: #50C878; }
.nickname-color-purple { color: #9B59B6; }
.nickname-color-pink { color: #FF1493; }
.nickname-color-orange { color: #FFA500; }
.nickname-color-rainbow { background: linear-gradient(90deg, #FF0080, #FF8C00, #40E0D0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Avatar frames for named frame choices */
.avatar-frame-frame-gold { border: 3px solid #D4AF37; border-radius: 50%; box-shadow: 0 0 10px rgba(212, 175, 55, 0.35); }
.avatar-frame-frame-silver { border: 3px solid #C0C0C0; border-radius: 50%; box-shadow: 0 0 8px rgba(192, 192, 192, 0.25); }
.avatar-frame-frame-bronze { border: 3px solid #CD7F32; border-radius: 50%; box-shadow: 0 0 8px rgba(205, 127, 50, 0.25); }
.avatar-frame-frame-diamond { border: 3px solid #9BE3FF; border-radius: 50%; box-shadow: 0 0 14px rgba(155, 227, 255, 0.25); }
.avatar-frame-frame-rainbow { border: 3px solid transparent; border-radius: 50%; background: linear-gradient(90deg, #FF0080, #FF8C00, #40E0D0); padding: 3px; }

