/* ==========================================================
   Plugin UI: Dog Profile / Account Pages
   Safe presentation layer for plugin output.
   ========================================================== */

.dsr-dog-profile {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px;
  background: var(--ndl-color-bg, #f9f4e8);
  border-radius: var(--ndl-radius-lg, 22px);
  box-sizing: border-box;
}

.dsr-dog-profile h3,
.dsr-dog-profile h4 {
  color: var(--ndl-color-text, #141010);
  line-height: 1.2;
  margin: 0 0 14px;
}

.dsr-dog-profile h3 {
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.dsr-dog-profile h4 {
  font-size: clamp(1.25rem, 2.2vw, 1.375rem);
  font-weight: 700;
  margin-top: 10px;
}

.dsr-dog-profile hr {
  border: 0;
  border-top: 1px solid var(--ndl-color-border, rgba(20,16,16,.14));
  margin: 28px 0;
}

.dsr-dog-profile .dsr-notice {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 20px;
  background: var(--ndl-color-surface, #fff);
  box-shadow: var(--ndl-shadow-sm, 0 1px 2px rgba(0,0,0,.06));
}

.dsr-dog-profile .dsr-notice--success {
  border-left-color: #2e7d32 !important;
}

.dsr-dog-profile .dsr-notice--error {
  border-left-color: #c62828 !important;
}

.dsr-dog-profile .dsr-notice--warning {
  border-left-color: #b7791f !important;
}

.dsr-dog-profile .dsr-dog-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.dsr-dog-profile .dsr-dog-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 0 12px;
  background: var(--ndl-color-surface, #fff);
  border: 1px solid rgba(20,16,16,.10);
  border-radius: 14px;
  box-shadow: var(--ndl-shadow-sm, 0 1px 2px rgba(0,0,0,.06));
}

.dsr-dog-profile .dsr-dog-list__item strong {
  font-size: 1.0625rem;
}

.dsr-dog-profile .dsr-dog-list__item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px !important;
  margin-left: 0 !important;
}

.dsr-dog-profile .dsr-dog-list__item a {
  margin-left: auto !important;
  text-decoration: none;
  font-weight: 600;
  color: var(--ndl-color-primary, #f35110);
}

.dsr-dog-profile .dsr-dog-list__item a:hover {
  text-decoration: underline;
}

.dsr-dog-profile .dsr-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 6px 10px;
  border-radius: 999px;
  margin-left: 0;
}

.dsr-dog-profile .dsr-badge--approved {
  background: #e8f5e9;
  color: #256029;
}

.dsr-dog-profile .dsr-badge--pending_review {
  background: #fff4d6;
  color: #8a5a00;
}

.dsr-dog-profile .dsr-badge--rejected,
.dsr-dog-profile .dsr-badge--suspended {
  background: #fde8e8;
  color: #a12622;
}

.dsr-dog-profile form {
  background: transparent;
}

.dsr-dog-profile form > p,
.dsr-dog-profile form > fieldset {
  margin: 0 0 18px;
}

.dsr-dog-profile label {
  display: inline-block;
  font-weight: 700;
  color: var(--ndl-color-text, #141010);
  margin-bottom: 8px;
}

.dsr-dog-profile small {
  display: inline-block;
  margin-top: 6px;
  color: var(--ndl-color-muted, rgba(20,16,16,.72));
  font-size: 13px;
  line-height: 1.5;
}

.dsr-dog-profile input[type="text"],
.dsr-dog-profile input[type="email"],
.dsr-dog-profile input[type="tel"],
.dsr-dog-profile input[type="date"],
.dsr-dog-profile input[type="number"],
.dsr-dog-profile select,
.dsr-dog-profile textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(20,16,16,.14);
  border-radius: 12px;
  background: var(--ndl-color-surface, #fff);
  color: var(--ndl-color-text, #141010);
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}

.dsr-dog-profile textarea {
  min-height: 120px;
  resize: vertical;
}

.dsr-dog-profile input[type="text"]:focus,
.dsr-dog-profile input[type="email"]:focus,
.dsr-dog-profile input[type="tel"]:focus,
.dsr-dog-profile input[type="date"]:focus,
.dsr-dog-profile input[type="number"]:focus,
.dsr-dog-profile select:focus,
.dsr-dog-profile textarea:focus {
  outline: none;
  border-color: var(--ndl-color-primary, #f35110);
  box-shadow: 0 0 0 3px rgba(243,81,16,.12);
}

.dsr-dog-profile input[name="age_years"],
.dsr-dog-profile input[name="age_months"] {
  width: 110px !important;
  display: inline-block;
  margin-right: 10px;
}

.dsr-dog-profile input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed rgba(20,16,16,.18);
  border-radius: 12px;
  background: var(--ndl-color-surface, #fff);
  box-sizing: border-box;
}

.dsr-dog-profile input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--ndl-charcoal, #271e1e);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.dsr-dog-profile ul {
  padding-left: 20px;
}

.dsr-dog-profile ul li {
  margin-bottom: 6px;
}

.dsr-dog-profile fieldset {
  border: 1px solid rgba(20,16,16,.14) !important;
  border-radius: 14px;
  padding: 18px 18px 8px !important;
  background: #fffaf2;
}

.dsr-dog-profile fieldset legend {
  padding: 0 8px;
  font-weight: 800;
  color: var(--ndl-color-text, #141010);
}

.dsr-dog-profile input[type="checkbox"] {
  transform: translateY(1px);
  margin-right: 8px;
}

.dsr-dog-profile fieldset a {
  color: var(--ndl-color-primary, #f35110);
  font-weight: 600;
  text-decoration: none;
}

.dsr-dog-profile fieldset a:hover {
  text-decoration: underline;
}

.dsr-dog-profile button[type="submit"],
.dsr-dog-profile input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--ndl-color-primary, #f35110);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 14px 22px;
  cursor: pointer;
  box-shadow: none;
}

.dsr-dog-profile button[type="submit"]:hover,
.dsr-dog-profile input[type="submit"]:hover {
  background: var(--ndl-color-primary-700, #d9440d);
}

.dsr-dog-profile button[type="submit"]:focus,
.dsr-dog-profile input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(243,81,16,.16);
}

@media (max-width: 767px) {
  .dsr-dog-profile {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .dsr-dog-profile h3 {
    margin-bottom: 18px;
  }

  .dsr-dog-profile .dsr-dog-list__item {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .dsr-dog-profile .dsr-dog-list__item a {
    margin-left: 0 !important;
    width: 100%;
    margin-top: 6px;
  }

  .dsr-dog-profile input[name="age_years"],
  .dsr-dog-profile input[name="age_months"] {
    width: calc(50% - 8px) !important;
    margin-right: 8px;
  }

  .dsr-dog-profile input[name="age_months"] {
    margin-right: 0;
  }

  .dsr-dog-profile button[type="submit"],
  .dsr-dog-profile input[type="submit"] {
    width: 100%;
    justify-content: center;
  }
}
