/* Modern Profile Header Layout */

.es-profile-cover {
  position: relative;
  aspect-ratio: 16 / 5;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.es-profile-cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
}

.es-profile-cover__edit {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 0.5rem;
  backdrop-filter: blur(8px);
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms;
}

.es-profile-cover__edit:hover {
  background: rgba(0, 0, 0, 0.85);
}

.es-profile-info {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  margin-top: -3rem;
  position: relative;
}

.es-profile-info__avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 9999px;
  border: 4px solid white;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  overflow: hidden;
}

.es-profile-info__avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #4f46e5;
  color: white;
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms;
}

.es-profile-info__avatar-edit:hover {
  background: #4338ca;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .es-profile-cover {
    aspect-ratio: 16 / 9;
    border-radius: 0;
    margin-bottom: 0.5rem;
  }
  
  .es-profile-info {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: -2rem;
  }
  
  .es-profile-info__avatar {
    width: 80px;
    height: 80px;
  }
}
