/* Estilos para o sistema de conquistas */

.achievement-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 300px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.achievement {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    color: white;
    transform: translateX(120%);
    transition: transform 0.5s ease-in-out;
    opacity: 0;
    pointer-events: auto;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.achievement.show {
    transform: translateX(0);
    opacity: 1;
}

.achievement-icon {
    width: 48px;
    height: 48px;
    margin-right: 10px;
    background-color: #2a2a2a;
    border-radius: 50%;
    padding: 5px;
    border: 2px solid #FFD700;
    flex-shrink: 0;
}

.achievement-info {
    flex-grow: 1;
}

.achievement-title {
    font-weight: bold;
    font-size: 14px;
    margin: 0;
    color: #FFD700;
}

.achievement-description {
    font-size: 12px;
    margin: 2px 0 0;
    opacity: 0.8;
}

.achievement-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    justify-content: center;
}

.badge {
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

.badge-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ccc;
    background-color: #f0f0f0;
    padding: 5px;
}

.badge.unlocked .badge-icon {
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.badge-name {
    font-size: 10px;
    text-align: center;
    margin-top: 5px;
    color: #333;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge.locked .badge-icon {
    filter: grayscale(100%) brightness(30%);
}

.badge.locked .badge-name {
    color: #999;
}

/* Animações para as conquistas */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

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

@keyframes flash {
    0%, 50%, 100% {opacity: 1;}
    25%, 75% {opacity: 0.5;}
}

@keyframes rotate {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
}

@keyframes zoom {
    0% {transform: scale(0);}
    50% {transform: scale(1.2);}
    100% {transform: scale(1);}
}

.animate-bounce {
    animation: bounce 1s ease-in-out;
}

.animate-pulse {
    animation: pulse 1s infinite;
}

.animate-flash {
    animation: flash 1s linear infinite;
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

.animate-zoom {
    animation: zoom 0.5s ease-out;
}

/* Modal de detalhe da conquista */
.achievement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.achievement-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 80%;
    position: relative;
    text-align: center;
}

.achievement-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.achievement-modal-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.achievement-modal-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.achievement-modal-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.achievement-modal-date {
    font-size: 12px;
    color: #999;
}

/* Para dispositivos móveis */
@media (max-width: 768px) {
    .achievement-container {
        max-width: 250px;
    }
    
    .achievement-icon {
        width: 40px;
        height: 40px;
    }
    
    .achievement-title {
        font-size: 12px;
    }
    
    .achievement-description {
        font-size: 10px;
    }
    
    .badge {
        width: 80px;
        height: 80px;
    }
    
    .badge-icon {
        width: 60px;
        height: 60px;
    }
}