/* Edit profile — matches Browse / reference aesthetic */

/* Forms stay visible — no scroll-reveal hide on this page */
.page-profile-edit main.motion-reveal-opt-out > .panel {
  opacity: 1;
  transform: none;
}

.page-profile-edit main {
  padding: 26px 0 36px;
}

.page-profile-edit .container {
  width: min(920px, 92vw);
}

.page-profile-edit .panel {
  margin-bottom: 16px;
}

.page-profile-edit .panel--intro {
  padding: clamp(20px, 3vw, 28px);
}

.page-profile-edit .panel--intro h1 {
  font-size: clamp(32px, 6vw, 48px);
  text-shadow:
    0 0 32px var(--glow-violet),
    0 0 48px var(--glow-pink);
}

.page-profile-edit .sub {
  margin-top: 10px;
  max-width: 42rem;
}

.page-profile-edit .panel--form {
  padding: clamp(20px, 3vw, 28px);
}

.page-profile-edit .form-grid {
  display: grid;
  gap: 20px 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.page-profile-edit .field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.page-profile-edit .field--stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Inputs — readable text + comfortable padding */
.page-profile-edit input[type="text"],
.page-profile-edit input[type="url"],
.page-profile-edit input[type="email"],
.page-profile-edit textarea,
.page-profile-edit select {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
  padding: 12px 16px !important;
  line-height: 1.45;
  min-height: 46px;
  border: 1px solid var(--field-line) !important;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-profile-edit input[type="text"]:hover:not(:disabled),
.page-profile-edit input[type="url"]:hover:not(:disabled),
.page-profile-edit input[type="email"]:hover:not(:disabled),
.page-profile-edit textarea:hover:not(:disabled),
.page-profile-edit select:hover:not(:disabled) {
  border-color: rgba(155, 140, 255, 0.55) !important;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 8px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(155, 140, 255, 0.22),
    0 0 20px var(--glow-violet),
    0 0 32px var(--glow-lime) !important;
}

.page-profile-edit input[type="text"]:focus-visible,
.page-profile-edit input[type="url"]:focus-visible,
.page-profile-edit input[type="email"]:focus-visible,
.page-profile-edit textarea:focus-visible,
.page-profile-edit select:focus-visible {
  outline: none;
  border-color: rgba(212, 255, 122, 0.55) !important;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 8px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(212, 255, 122, 0.28),
    0 0 26px var(--glow-violet),
    0 0 42px var(--glow-lime),
    0 0 56px var(--glow-pink) !important;
}

html[data-theme="light"] .page-profile-edit input[type="text"]:hover:not(:disabled),
html[data-theme="light"] .page-profile-edit input[type="url"]:hover:not(:disabled),
html[data-theme="light"] .page-profile-edit input[type="email"]:hover:not(:disabled),
html[data-theme="light"] .page-profile-edit textarea:hover:not(:disabled),
html[data-theme="light"] .page-profile-edit select:hover:not(:disabled) {
  border-color: rgba(117, 96, 255, 0.45) !important;
  box-shadow:
    inset 0 1px 6px rgba(90, 60, 160, 0.08),
    0 0 0 1px rgba(117, 96, 255, 0.18),
    0 0 18px var(--glow-violet),
    0 0 28px var(--glow-lime) !important;
}

html[data-theme="light"] .page-profile-edit input[type="text"]:focus-visible,
html[data-theme="light"] .page-profile-edit input[type="url"]:focus-visible,
html[data-theme="light"] .page-profile-edit input[type="email"]:focus-visible,
html[data-theme="light"] .page-profile-edit textarea:focus-visible,
html[data-theme="light"] .page-profile-edit select:focus-visible {
  border-color: rgba(127, 200, 0, 0.55) !important;
  box-shadow:
    inset 0 1px 6px rgba(90, 60, 160, 0.1),
    0 0 0 1px rgba(127, 200, 0, 0.22),
    0 0 22px var(--glow-violet),
    0 0 34px var(--glow-lime) !important;
}

@media (prefers-reduced-motion: reduce) {
  .page-profile-edit input[type="text"],
  .page-profile-edit input[type="url"],
  .page-profile-edit input[type="email"],
  .page-profile-edit textarea,
  .page-profile-edit select {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }

  .page-profile-edit input:hover:not(:disabled),
  .page-profile-edit textarea:hover:not(:disabled),
  .page-profile-edit select:hover:not(:disabled),
  .page-profile-edit input:focus-visible,
  .page-profile-edit textarea:focus-visible,
  .page-profile-edit select:focus-visible {
    transform: none;
  }
}

.page-profile-edit textarea {
  min-height: 96px;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

html:not([data-theme="light"]) .page-profile-edit input,
html:not([data-theme="light"]) .page-profile-edit textarea,
html:not([data-theme="light"]) .page-profile-edit select {
  color: #f6f7ff !important;
  -webkit-text-fill-color: #f6f7ff;
  background: rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="light"] .page-profile-edit input,
html[data-theme="light"] .page-profile-edit textarea,
html[data-theme="light"] .page-profile-edit select {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
}

.page-profile-edit ::placeholder {
  color: var(--muted);
  opacity: 0.9;
}

html:not([data-theme="light"]) .page-profile-edit select option {
  background: #2a1a52;
  color: #f6f7ff;
}

.page-profile-edit input:-webkit-autofill,
.page-profile-edit textarea:-webkit-autofill,
.page-profile-edit select:-webkit-autofill {
  -webkit-text-fill-color: #f6f7ff !important;
  caret-color: #f6f7ff;
  transition: background-color 99999s ease-out 0s;
}

.page-profile-edit .field.full {
  grid-column: 1 / -1;
}

.page-profile-edit .field > label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.page-profile-edit .hint {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.5;
}

.page-profile-edit .badge-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
  padding: 4px 0 6px;
}

.page-profile-edit .badge-picks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 700;
  color: var(--ink);
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

html[data-theme="light"] .page-profile-edit .badge-picks label {
  background: rgba(117, 96, 255, 0.08);
}

.page-profile-edit .badge-picks label:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--glow-violet);
}

.page-profile-edit .badge-picks label:has(input:checked) {
  border-style: solid;
  border-color: var(--green);
  box-shadow:
    0 0 0 1px rgba(212, 255, 122, 0.35),
    0 0 24px var(--glow-lime);
}

.page-profile-edit .badge-picks input {
  width: auto;
  padding: 0;
  margin: 0;
}

.page-profile-edit .playgrid {
  display: grid;
  gap: 12px;
}

.page-profile-edit .playgrid__table {
  display: grid;
  grid-template-columns: auto repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.page-profile-edit .playgrid__day {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.page-profile-edit .playgrid__block {
  font-size: 13px;
  font-weight: 700;
  padding-right: 6px;
}

.page-profile-edit .playgrid__block small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.page-profile-edit .playgrid__cell {
  height: 36px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.page-profile-edit .playgrid__cell[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
}

.page-profile-edit .playgrid__varies {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.page-profile-edit .playgrid__varies input {
  width: auto;
  margin: 0;
}

.page-profile-edit .playgrid__preview {
  margin: 0;
  min-height: 1.5em;
  font-weight: 700;
}

.page-profile-edit .contact-accordion {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.page-profile-edit .contact-accordion__item {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(0, 0, 0, 0.14);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

html[data-theme="light"] .page-profile-edit .contact-accordion__item {
  background: rgba(255, 255, 255, 0.45);
}

.page-profile-edit .contact-accordion__item[open] {
  border-color: rgba(212, 255, 122, 0.4);
  box-shadow:
    0 0 0 1px rgba(212, 255, 122, 0.12),
    0 0 28px var(--glow-lime);
}

.page-profile-edit .contact-accordion__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.page-profile-edit .contact-accordion__summary::-webkit-details-marker {
  display: none;
}

.page-profile-edit .contact-accordion__title {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  flex: 0 1 auto;
}

.page-profile-edit .contact-accordion__preview {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.page-profile-edit .contact-accordion__remove {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: box-shadow 0.2s ease;
}

.page-profile-edit .contact-accordion__remove:hover {
  box-shadow: 0 0 16px var(--glow-pink);
  color: var(--ink);
}

.page-profile-edit .contact-accordion__body {
  display: grid;
  gap: 14px;
  padding: 4px 18px 20px;
  border-top: 1px solid var(--line);
}

.page-profile-edit .contact-accordion__body .field {
  margin-top: 0;
}

.page-profile-edit .contact-accordion__empty {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(0, 0, 0, 0.08);
}

.page-profile-edit .form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 4px;
}

.page-profile-edit .form-status {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

.page-profile-edit .inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .page-profile-edit .form-grid {
    grid-template-columns: 1fr;
  }
}
