/* Additional styles for profile page */

/* Tab styling */
.tab-button {
    position: relative;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: white;
}

.active-tab {
    color: white;
    border-bottom: 2px solid #ec4899;
}

.tab-button:not(.active-tab) {
    color: rgba(255, 255, 255, 0.6);
}

/* Card animations */
.reward-card, .powerup-card {
    transition: all 0.3s ease;
}

.reward-card:hover, .powerup-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Level progress animation */
@keyframes levelProgress {
    0% { width: 0; }
    100% { width: var(--progress-width); }
}

.level-progress-bar {
    animation: levelProgress 1s ease-out forwards;
}

/* Achievement unlock animation */
.achievement-unlocked {
    animation: achievementUnlock 0.5s ease-out forwards;
}

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

/* Locked item styling */
.locked-item {
    filter: grayscale(70%);
    opacity: 0.7;
}

/* Tooltip styling */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: rgba(30, 27, 75, 0.95);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Responsive adjustments for mobile */
@media (max-width: 640px) {
    .tab-button {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .tooltip .tooltip-text {
        width: 160px;
        margin-left: -80px;
    }
}
