/* ================================== */
/* ПРОФИЛЬ: ВКЛАДКИ И КОНТЕНТ         */
/* ================================== */

/* Вкладки */
.user-profile-tabs {
    display: flex;
    gap: 12px;
    margin: 12px 0 0;
    border-bottom: 1px solid var(--border);
}
.user-profile-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.user-profile-tab.active {
    color: var(--primary);
}
.user-profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.user-profile-tab:hover:not(.active) {
    color: var(--text);
}

/* Контент вкладок */
.user-profile-tab-content {
    margin-top: 16px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Сетка медиа (изображения, видео) */
.user-profile-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.user-profile-media-item {
    aspect-ratio: 1 / 1;
    background: var(--bg-elevated);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-profile-media-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.user-profile-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-profile-media-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    text-align: center;
    padding: 8px;
}
.user-profile-media-video i {
    font-size: 32px;
    color: var(--primary);
}
.user-profile-media-video span {
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Сетка файлов */
.user-profile-files-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.user-profile-file-item {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    overflow: hidden;
}
.user-profile-file-item:hover {
    background: var(--bg-surface);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.user-profile-file-item i {
    font-size: 28px;
    color: var(--primary);
}
.user-profile-file-name {
    font-size: 11px;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-profile-file-caption {
    font-size: 10px;
    color: var(--text-secondary);
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Голосовые сообщения */
.user-profile-voice-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.user-profile-voice-item {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.voice-date {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 6px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}