/* TOPO */

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 6px;
  border-radius: var(--radius-button);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  color: var(--white);
}

.user-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.user-chip strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.user-chip small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

/* FORMULÁRIO */

.pet-register-page {
  padding: 0 0 110px;
}

.pet-form {
  position: relative;
  z-index: 3;
  margin-top: -90px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: flex-start;
}

.form-card {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--white);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 32px;
  border-bottom: 1px dashed var(--line);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-100);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-title h2 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 600;
}

.card-body {
  padding: 32px;
}

/* CAMPOS */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 18px;
  outline: none;
  background-color: var(--cream);
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  transition: 0.2s ease;
}

.form-group input,
.form-group select {
  height: 54px;
  padding: 0 18px;
}

.form-group select {
  cursor: pointer;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
  padding: 16px 18px;
  line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  background-color: var(--white);
  box-shadow: 0 0 0 5px rgba(47, 123, 242, 0.15);
}

/* FOTO */

.file-area {
  position: relative;
}

.file-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 190px;
  margin-bottom: 0 !important;
  border: 2px dashed var(--blue-400);
  border-radius: 24px;
  background: var(--blue-100);
  cursor: pointer;
  transition: 0.2s ease;
}

.dropzone:hover {
  background: #d4e5ff;
  border-color: var(--blue-600);
}

.file-area input[type="file"]:focus-visible + .dropzone {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
}

.dropzone-empty[hidden] {
  display: none;
}

.dropzone-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 18px;
  background: var(--white);
}

.dropzone-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone-empty strong {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-700);
}

.dropzone-empty small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.pet-preview {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.pet-preview[hidden] {
  display: none;
}

/* CONTATO */

.contact-tip {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--yellow-100);
}

.contact-tip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-600);
}

.contact-tip p {
  font-size: 14px;
  line-height: 1.6;
  color: #6b5320;
}

.publish-button {
  width: 100%;
  min-height: 60px;
  font-size: 18px;
}

/* MODO EDIÇÃO */

.edit-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 24px;
  background: var(--yellow-100);
  border: 2px solid var(--yellow);
}

.edit-banner[hidden] {
  display: none;
}

.edit-banner strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-600);
}

.edit-banner span {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
}

/* MEUS PETS */

.my-pets {
  margin-top: 90px;
}

.my-pets-head {
  margin-bottom: 40px;
}

.my-pets-list {
  display: grid;
  gap: 16px;
}

.manage-card {
  display: flex;
  gap: 20px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--white);
}

.manage-card.is-editing {
  outline: 3px solid var(--yellow);
}

.manage-photo {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 20px;
}

.manage-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.manage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.manage-top h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 600;
}

.manage-status {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: var(--radius-button);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.manage-status.is-lost {
  background: var(--yellow);
  color: var(--navy);
}

.manage-status.is-found {
  background: #dff5e4;
  color: #1c7a35;
}

.manage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.manage-tags span {
  padding: 4px 12px;
  border-radius: var(--radius-button);
  background: var(--blue-100);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-700);
}

.manage-meta {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.manage-actions .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.my-pets-empty {
  padding: 56px 24px;
  border-radius: var(--radius-card);
  background: var(--white);
  text-align: center;
}

.my-pets-empty strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-title);
  font-size: 24px;
}

.my-pets-empty p {
  color: var(--muted);
}

.my-pets-empty[hidden] {
  display: none;
}

/* RESPONSIVO */

@media (max-width: 1024px) {
  .pet-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pet-form {
    margin-top: -70px;
  }

  .user-chip {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .card-title,
  .card-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .my-pets {
    margin-top: 64px;
  }

  .manage-card {
    flex-direction: column;
  }

  .manage-photo {
    width: 100%;
    height: 200px;
  }

  .edit-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

.user-chip[hidden] {
  display: none;
}
