﻿.player-avatar {
    position: relative;
}

.category-progress-item {
    background: rgba(79, 70, 229, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    border-left: 4px solid var(--primary-color);
}

    .category-progress-item .progress-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

.activity-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .activity-item .activity-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--primary-color);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
    }

.achievement-badge {
    border-radius: 15px;
    padding: 15px;
    margin: 8px 0;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .achievement-badge:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .achievement-badge.achievement-unlocked {
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }

        .achievement-badge.achievement-unlocked.tier-1 {
            background: linear-gradient(135deg, #cd7f32, #b8860b);
            box-shadow: 0 4px 15px rgba(205, 127, 50, 0.3);
        }

        .achievement-badge.achievement-unlocked.tier-2 {
            background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
            box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
        }

        .achievement-badge.achievement-unlocked.tier-3 {
            background: linear-gradient(135deg, #ffd700, #ffed4e);
            color: #000;
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
        }

        .achievement-badge.achievement-unlocked.tier-4 {
            background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
            color: #1f2937;
            box-shadow: 0 4px 15px rgba(229, 231, 235, 0.4);
            border: 2px solid #9ca3af;
        }

        .achievement-badge.achievement-unlocked.tier-5 {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            color: white;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
            border: 2px solid #60a5fa;
        }

    .achievement-badge.achievement-locked {
        background: #f3f4f6;
        color: #6b7280;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 2px dashed #d1d5db;
    }

.achievement-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.achievement-badge-emoji {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

    .achievement-badge-emoji.locked {
        filter: grayscale(100%) opacity(0.5);
    }

.achievement-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.achievement-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.achievement-points {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
}

.achievement-locked .achievement-points,
.achievement-requirement {
    color: #9ca3af;
    font-size: 0.75rem;
    font-style: italic;
}

.achievement-badge.achievement-unlocked::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.achievement-badge.achievement-unlocked:hover::before {
    left: 100%;
}

/* Enhanced Category Progress Styles */
.category-progress-item.enhanced {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .category-progress-item.enhanced:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

    .category-progress-item.enhanced::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 3px;
        height: 100%;
        background: linear-gradient(to bottom, transparent, rgba(79, 70, 229, 0.3), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .category-progress-item.enhanced:hover::before {
        opacity: 1;
    }

    .category-progress-item.enhanced[data-status="completed"] {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.02));
        border-left-color: #10b981;
    }

        .category-progress-item.enhanced[data-status="completed"]::before {
            background: linear-gradient(to bottom, transparent, rgba(16, 185, 129, 0.4), transparent);
        }

.category-actions {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.category-progress-item.enhanced:hover .category-actions {
    opacity: 1;
    transform: translateY(0);
}

.category-actions .btn {
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .category-actions .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }

.progress-modern {
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-modern {
    border-radius: 10px;
    transition: width 0.8s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

@@keyframes progressLoad {
    0% {
        width: 0%;
    }

    100% {
        width: var(--target-width, 0%);
    }
}

.progress-bar-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Filter buttons animations */
[id^="filter"] {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

    [id^="filter"]:hover {
        transform: translateY(-1px);
    }

    [id^="filter"].btn-primary {
        box-shadow: 0 3px 15px rgba(79, 70, 229, 0.3);
    }

/* Summary cards enhanced */
.score-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .score-card:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .score-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    }

/* Status badges with glow effect */
.badge {
    position: relative;
    overflow: hidden;
}

    .badge::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .badge:hover::before {
        left: 100%;
    }

/* Trophy animation for completed categories */
.fa-trophy {
    animation: pulse 2s infinite;
}

@@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}
