/* ACHIEVEMENT STYLES */

.achievement-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: white;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 300px;
}

.achievement-popup.show {
    transform: translateX(0);
}

.ach-icon {
    font-size: 32px;
}

.ach-title {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: 1px;
}

.ach-name {
    font-size: 16px;
    font-weight: 700;
}

/* Achievement List in Analytics */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.ach-badge {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: help;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ach-badge.locked {
    opacity: 0.3;
    filter: grayscale(100%);
}

.ach-badge.unlocked {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.1);
}

.ach-badge-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.ach-badge:hover {
    transform: scale(1.1);
    z-index: 10;
}

@media (max-width: 768px) {
    .achievement-popup {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
        transform: translateY(150%);
    }

    .achievement-popup.show {
        transform: translateY(0);
    }
}