/* Gamification Styles for VIVA SJO */

.gamification-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.gamification-notification.show {
    transform: translateX(0);
}

.points-notification {
    border-left: 4px solid #ffc107;
}

.badge-notification {
    border-left: 4px solid #0d6efd;
}

.achievement-notification {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.user-points {
    font-weight: bold;
    color: #ffc107;
}

.achievement-item {
    background: rgba(255, 193, 7, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.achievement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.badge-item {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.badge-item:hover {
    transform: scale(1.05);
}

.gamification-stats {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .gamification-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}
