/* Стили для системы кармы и достижений */
.karma-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.rank-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.rank-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.achievement-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.achievement-card.earned {
    border-color: #FFD700;
    background: linear-gradient(135deg, #fff8e1, #ffffff);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.2);
}

.achievement-icon {
    font-size: 2rem;
    margin-right: 15px;
    min-width: 40px;
}

.achievement-details {
    flex-grow: 1;
}

.achievement-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.achievement-description {
    font-size: 0.9rem;
    color: #666;
}

/* Ранги пользователей */
.rank-novice { background: linear-gradient(135deg, #6c757d, #495057); }
.rank-traveler { background: linear-gradient(135deg, #28a745, #20c997); }
.rank-explorer { background: linear-gradient(135deg, #17a2b8, #20c997); }
.rank-expert { background: linear-gradient(135deg, #007bff, #6610f2); }
.rank-master { background: linear-gradient(135deg, #ffc107, #fd7e14); }
.rank-legend { background: linear-gradient(135deg, #dc3545, #e83e8c); }

/* Анимация нового достижения */
@keyframes achievementUnlock {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.achievement-unlock {
    animation: achievementUnlock 0.5s ease-out;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
}