/* 👤 USER PROFILE - SKYROCKET PREMIUM STYLES */

.profile-avatar-glow {
    position: relative;
    z-index: 1;
}

.profile-avatar-glow::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    animation: avatarPulse 4s infinite alternate;
}

@keyframes avatarPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

.xp-bar-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.xp-bar-fill {
    position: relative;
    overflow: hidden;
}

.xp-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    animation: xpShimmer 3s infinite linear;
}

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

.badge-rarity-common { border-color: rgba(148, 163, 184, 0.2); color: #94a3b8; }
.badge-rarity-uncommon { border-color: rgba(16, 185, 129, 0.4); color: #10b981; text-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
.badge-rarity-rare { border-color: rgba(14, 165, 233, 0.5); color: #0ea5e9; text-shadow: 0 0 12px rgba(14, 165, 233, 0.4); }
.badge-rarity-epic { border-color: rgba(168, 85, 247, 0.6); color: #a855f7; text-shadow: 0 0 15px rgba(168, 85, 247, 0.5); }
.badge-rarity-legendary { 
    border-color: rgba(251, 191, 36, 0.8); 
    color: #fbbf24; 
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
    animation: legendaryGlow 2s infinite alternate;
}

@keyframes legendaryGlow {
    0% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.2); }
    100% { box-shadow: 0 0 30px rgba(251, 191, 36, 0.4); }
}

.skill-node {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-node:hover:not(.unlocked) {
    transform: scale(1.02) translateY(-2px);
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(14, 165, 233, 0.05);
}

.profile-card-mini {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 350px;
}

/* Tab Transitions */
#profile-viewport {
    scroll-behavior: smooth;
    transition: opacity 0.3s ease;
}

.tab-transition-enter {
    opacity: 0;
    transform: translateY(10px);
}

.tab-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}
/* Global Reset for Profile Modal (Kill all scrollbars & scrolling) */
#profile-modal, 
#profile-modal > div,
#profile-tabs-sidebar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

#profile-viewport {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* Specific viewports that MIGHT need to scroll if content too big - actually NO, they want it GONE.
   If content is cut off, we should instead shrink the content. 
*/

#profile-modal::-webkit-scrollbar, 
#profile-modal *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Scrollbar Utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none !important;
}
.no-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* Tier Glow Improvements */
.profile-avatar-glow::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, #0ea5e9, #6366f1);
    border-radius: 36px;
    z-index: -1;
    opacity: 0.4;
    filter: blur(8px);
    animation: glow-pulse 3s infinite ease-in-out;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}
