/* Современный дизайн профиля CRM */

/* Шапка профиля */
.profile-v2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.profile-v2-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-v2-avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-v2-avatar svg {
    width: 32px;
    height: 32px;
}

.profile-v2-user-info {
    flex: 1;
    min-width: 0;
}

.profile-v2-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.profile-v2-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-v2-role {
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #3b82f6;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-v2-separator {
    color: var(--text-tertiary);
}

.profile-v2-login {
    color: var(--text-secondary);
}

.profile-v2-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-v2-edit-btn svg {
    width: 18px;
    height: 18px;
}

.profile-v2-edit-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-tertiary);
    transform: translateY(-1px);
}

/* Сетка контента */
.profile-v2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Статистика */
.profile-v2-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .profile-v2-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.profile-v2-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.profile-v2-stat-card:hover {
    border-color: var(--text-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.stat-card-icon.clients {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-card-icon.tasks {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-card-icon.lots {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-card-content {
    flex: 1;
}

.stat-card-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Карточки информации */
.profile-v2-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.profile-v2-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.profile-v2-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.profile-v2-card-body {
    padding: 20px;
}

/* Информационные элементы */
.profile-v2-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
}

.profile-v2-info-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.info-icon {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

/* Активность */
.profile-v2-activity {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: var(--bg-tertiary);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(59, 130, 246, 0.1);
}

.activity-icon svg {
    width: 18px;
    height: 18px;
    color: #3b82f6;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.activity-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.activity-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: var(--text-tertiary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-v2-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-v2-edit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .profile-v2-name {
        font-size: 20px;
    }
    
    .profile-v2-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .profile-v2-avatar {
        width: 56px;
        height: 56px;
    }
    
    .profile-v2-avatar svg {
        width: 28px;
        height: 28px;
    }
    
    .profile-v2-name {
        font-size: 18px;
    }
}
