/* ===========================
   USER PROFILE MODAL STYLES
   Стили для модального окна профиля пользователя
   =========================== */

.user-profile-modal-content {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
}

/* Шапка профиля */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}

.user-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 48px;
    font-weight: 700;
}

.user-info-large {
    flex: 1;
}

.user-info-large h2 {
    margin: 0 0 8px;
    font-size: 28px;
    color: var(--text-primary);
}

.username-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 12px;
}

.user-rating-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: var(--text-primary);
}

/* Статистика в одну строку */
.user-profile-stats {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    margin-bottom: 24px;
}

.stat-item-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.stat-item-inline i {
    font-size: 24px;
}

.stat-item-inline span {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-item-inline strong {
    font-size: 20px;
    color: var(--text-primary);
    display: block;
}

/* Детали профиля */
.user-profile-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-profile-details .profile-section {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 12px;
}

.user-profile-details .profile-section h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile-details .profile-section h3 i {
    color: var(--primary-color);
}

.user-profile-details .profile-section p {
    margin: 8px 0;
    color: var(--text-secondary);
    line-height: 1.6;
    word-wrap: break-word; /* ✅ Перенос длинных слов */
    word-break: break-word; /* ✅ Перенос если слово не помещается */
    overflow-wrap: break-word; /* ✅ Современный стандарт переноса */
}

.user-profile-details .profile-section p strong {
    color: var(--text-primary);
    margin-right: 8px;
}

/* Mobile адаптация */
@media (max-width: 768px) {
    .user-profile-modal-content {
        padding: 20px;
        max-height: 90vh;
    }
    
    .user-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .user-avatar-large {
        width: 80px;
        height: 80px;
    }
    
    .avatar-placeholder-large {
        font-size: 36px;
    }
    
    .user-info-large h2 {
        font-size: 22px;
    }
    
    .user-profile-stats {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .stat-item-inline {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
    }
    
    .stat-item-inline i {
        font-size: 20px;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .user-profile-modal-content {
    background: var(--bg-secondary);
}

[data-theme="dark"] .user-profile-stats,
[data-theme="dark"] .user-profile-details .profile-section {
    background: var(--bg-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Christmas theme adjustments */
[data-theme="christmas"] .user-avatar-large {
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

[data-theme="christmas"] .avatar-placeholder-large {
    background: linear-gradient(135deg, #c41e3a, #165b33);
}
