/* =========================================================
   DRIVE ZERNYX · MI PERFIL
   ========================================================= */

.profile {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;

  width: 100%;
  max-width: 1100px;
  padding: 24px 20px;
}

.profile__column {
  display: grid;
  gap: 20px;
}

.profile__card {
  background: var(--surface);
  border: 1px solid var(--line);
}

.profile__card > header {
  padding: 18px 22px 0;
}

.profile__card > header h3 {
  margin: 0;

  font-size: 15px;
}

.profile__card > header p {
  margin: 4px 0 0;

  color: var(--text-soft);
  font-size: 12px;
}

.profile__identity {
  display: grid;
  justify-items: center;
  gap: 18px;

  padding: 28px 22px 22px;

  text-align: center;
}

.profile__avatar {
  display: grid;
  place-items: center;

  width: 112px;
  height: 112px;

  font-size: 34px;
  font-weight: 600;

  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-strong);
  background-position: center;
  background-size: cover;
}

.profile__who h2 {
  margin: 0;

  font-size: 18px;
}

.profile__who p {
  margin: 4px 0 10px;

  color: var(--text-muted);
  font-size: 13px;
}

.profile__role {
  display: inline-block;

  padding: 3px 10px;

  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.04em;

  border: 1px solid var(--line-strong);
}

.profile__photo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.profile__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  height: 36px;
  padding: 0 14px;

  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;

  cursor: pointer;

  border: 1px solid var(--line-strong);
  background: transparent;
}

.profile__btn[hidden] {
  display: none;
}

.profile__btn:hover {
  background: var(--surface-hover);
}

.profile__btn svg {
  width: 14px;
  height: 14px;
}

.profile__meta {
  display: grid;
  gap: 12px;

  width: 100%;
  margin: 0;
  padding-top: 18px;

  text-align: left;

  border-top: 1px solid var(--line);
}

.profile__meta dt {
  color: var(--text-soft);
  font-size: 11px;
}

.profile__meta dd {
  margin: 3px 0 0;

  font-size: 13px;
}

.profile__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.profile__stats article {
  display: grid;
  gap: 6px;

  padding: 16px 18px;

  background: var(--surface);
  border: 1px solid var(--line);
}

.profile__stats span {
  color: var(--text-soft);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile__stats strong {
  font-size: 22px;
  font-weight: 600;
}

.profile__form {
  display: grid;
  gap: 16px;

  padding: 18px 22px 22px;
}

.profile__form label {
  display: grid;
  gap: 6px;
}

.profile__form label span {
  color: var(--text-muted);
  font-size: 12px;
}

.profile__form input {
  height: 40px;
  padding: 0 12px;

  color: var(--text);
  font: inherit;
  font-size: 14px;

  border: 1px solid var(--line-strong);
  outline: 0;
  background: var(--surface-soft);
}

.profile__form input:focus {
  border-color: var(--text-muted);
}

.profile__form input:disabled {
  color: var(--text-soft);
}

.profile__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile__actions {
  display: flex;
  justify-content: flex-end;
}

.profile__error {
  padding: 24px;

  color: var(--danger);
}

@media (max-width: 900px) {
  .profile {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .profile__stats {
    grid-template-columns: 1fr;
  }

  .profile__row {
    grid-template-columns: 1fr;
  }
}
