
/* ========================================
   PÁGINA DE PERFIL ARTÍSTICO — REFUGIART
======================================== */

.perfil-pagina {
  width: min(100% - 32px, 760px);
  margin: 36px auto 48px;
}

.perfil-intro {
  text-align: center;
  margin-bottom: 28px;
}

.perfil-selo {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 30px;
  background: #dce8dc;
  color: #243e35;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.perfil-intro h2 {
  margin: 16px 0 10px;
  color: #243e35;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
}

.perfil-intro p {
  max-width: 560px;
  margin: 0 auto;
  color: #626b60;
  line-height: 1.7;
}

/* Cartão principal */

.perfil-cartao {
  padding: clamp(20px, 5vw, 36px);
  background: #fffdf6;
  border: 1px solid #ded6c5;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(36, 62, 53, 0.08);
}

.perfil-cartao-cabecalho {
  padding-bottom: 20px;
  border-bottom: 1px solid #e9e2d5;
}

.perfil-cartao-cabecalho h2 {
  margin: 0 0 8px;
  color: #243e35;
  font-size: 1.3rem;
}

.perfil-cartao-cabecalho p {
  margin: 0;
  color: #697166;
  line-height: 1.6;
}

/* ========================================
   SELETOR DE FOTO CLICÁVEL
======================================== */

.seletor-foto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 0 26px;
  text-align: center;
}

.botao-foto {
  position: relative;
  display: block;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
  border: 4px solid #d6a45d;
  border-radius: 50%;
  background: #e8dfca;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(36, 62, 53, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.botao-foto:hover {
  transform: scale(1.03);
  border-color: #243e35;
  box-shadow: 0 8px 22px rgba(36, 62, 53, 0.18);
}

.botao-foto:focus-visible {
  outline: 3px solid #52765f;
  outline-offset: 5px;
}

.perfil-foto {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  border: 0;
  outline: none;
  border-radius: 50%;
  background: #eee7d8;
}

/* Ícone da câmera sobre a foto */

.foto-editar {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid #fffdf6;
  border-radius: 50%;
  background: #243e35;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.seletor-foto p {
  margin: 4px 0 0;
  color: #435447;
  font-size: 0.95rem;
  font-weight: 600;
}

.seletor-foto small {
  color: #74796f;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Formulário */

#profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.perfil-campo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perfil-campo label {
  color: #243e35;
  font-weight: 700;
}

.perfil-campo input,
.perfil-campo textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d6d0c3;
  border-radius: 11px;
  background: #fff;
  color: #243e35;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.perfil-campo input {
  min-height: 50px;
}

.perfil-campo textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.perfil-campo input::placeholder,
.perfil-campo textarea::placeholder {
  color: #92958b;
}

.perfil-campo input:focus,
.perfil-campo textarea:focus {
  outline: none;
  border-color: #52765f;
  box-shadow: 0 0 0 3px rgba(82, 118, 95, 0.14);
}

.perfil-campo small {
  color: #74796f;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Botão de salvar */

.perfil-botao-salvar {
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: none;
  border-radius: 11px;
  background: #243e35;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.perfil-botao-salvar:hover {
  background: #34594b;
}

.perfil-botao-salvar:active {
  transform: scale(0.99);
}

.perfil-botao-salvar:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Mensagens de status */

.perfil-status {
  margin: 0;
  padding: 12px;
  border-radius: 9px;
  background: #f4f1e9;
  color: #435447;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Rodapé da página */

.perfil-rodape {
  margin: 24px auto 0;
  color: #73796e;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ========================================
   RESPONSIVIDADE PARA CELULARES
======================================== */

@media (max-width: 480px) {
  .perfil-pagina {
    width: calc(100% - 24px);
    margin-top: 24px;
  }

  .perfil-cartao {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .perfil-foto,
  .botao-foto {
    width: 130px;
    height: 130px;
  }

  .foto-editar {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .botao-foto,
  .perfil-botao-salvar {
    transition: none;
  }
}


/* Moldura totalmente circular */
.seletor-foto .botao-foto {
  position: relative;
  display: block;
  width: 150px;
  height: 150px;
  min-width: 150px;
  min-height: 150px;
  padding: 0 !important;
  overflow: hidden;
  border: 4px solid #d6a45d !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: 0 5px 16px rgba(36, 62, 53, 0.12);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.seletor-foto .perfil-foto {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none !important;
  outline: none !important;
  border-radius: 50% !important;
  object-fit: cover;
  background: #e8dfca;
}

/* Câmera dentro da moldura */
.seletor-foto .foto-editar {
  position: absolute;
  right: 3px;
  bottom: 3px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid #fffdf6;
  border-radius: 50%;
  background: #243e35;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}


/* Esconde a câmera quando houver uma foto selecionada */
.seletor-foto.tem-foto .foto-editar {
  display: none !important;
}



/* Botão de encerramento de sessão */
.perfil-botao-sair { width:100%; min-height:48px; padding:12px 18px; border:1px solid #b85b50; border-radius:11px; background:#fff; color:#9d3f36; font:inherit; font-weight:700; cursor:pointer; }
.perfil-botao-sair:hover { background:#fff3f1; }
.perfil-botao-sair:disabled { opacity:.6; cursor:wait; }
.perfil-publico-artista { margin:4px 0 0; color:#68756b; font-size:.92rem; }
