/* Profile page — parchment manuscript style */

/* ── Parchment body ── */
body:has(.profile-screen) {
  background:
    repeating-conic-gradient(
      rgba(120, 90, 50, 0.03) 0% 25%,
      transparent 0% 50%
    ) 0 0 / 4px 4px,
    radial-gradient(ellipse at 0% 0%, rgba(90, 60, 30, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(100, 65, 25, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 0% 100%, rgba(95, 60, 30, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(90, 55, 25, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 40%, #efe3cd 0%, #e2d3b8 40%, #d4c4a4 80%);
  color: #3a2a14;
}
body:has(.profile-screen)::before { display: none; }

/* ── Nav overrides ── */
body:has(.profile-screen) .app-nav { border-bottom: 1px solid rgba(138, 115, 84, 0.3); }
body:has(.profile-screen) .app-nav-home { color: #7a6548; }
body:has(.profile-screen) .app-nav-home:hover { color: #3a2a14; }
body:has(.profile-screen) .app-nav-user { color: #7a6548; }
body:has(.profile-screen) .app-nav-tokens { color: #9a8568; }
body:has(.profile-screen) .app-nav-signout { border-color: #b5a382; color: #7a6548; }
body:has(.profile-screen) .app-nav-signout:hover { color: #3a2a14; border-color: #8a7354; }
body:has(.profile-screen) .app-nav-locale { border-color: #b5a382; color: #7a6548; }
body:has(.profile-screen) .app-nav-locale:hover { color: #3a2a14; border-color: #8a7354; }

/* ── Layout ── */
.profile-screen {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.profile-box {
  border: 1px solid rgba(138, 115, 84, 0.3);
  background: rgba(239, 227, 205, 0.35);
  padding: 2.5rem 3rem;
  max-width: 420px;
  width: 100%;
  animation: profileReveal 0.8s ease-out both;
}

@keyframes profileReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Heading ── */
.profile-heading {
  font-family: 'Cinzel', 'Palatino Linotype', serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #3a2a14;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 0 rgba(255, 245, 220, 0.5);
}

/* ── Fields ── */
.profile-field {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(138, 115, 84, 0.2);
}
.profile-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #9a8568;
  text-transform: uppercase;
}
.profile-value {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.85rem;
  color: #3a2a14;
}
.profile-hint {
  width: 100%;
  text-align: right;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.7rem;
  color: #9a8568;
  font-style: italic;
}

/* ── Divider ── */
.profile-divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    #a0895e 20%,
    #8a7354 50%,
    #a0895e 80%,
    transparent 100%
  );
  margin: 1.75rem 0 1.25rem;
  opacity: 0.5;
}

/* ── Out of tokens ── */
.oot-message {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.85rem;
  color: #5a4a30;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.oot-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.oot-option {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(138, 115, 84, 0.2);
}
.oot-back {
  text-align: center;
}

/* ── Actions ── */
.profile-actions {
  text-align: center;
  margin-bottom: 0;
}

/* ── Danger zone ── */
.profile-danger-zone {
  text-align: center;
}

/* ── Button overrides ── */
body:has(.profile-screen) .btn {
  border-color: #b5a382;
  color: #5a4a30;
  background: transparent;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.45rem 1rem;
  transition: all 0.3s ease;
}
body:has(.profile-screen) .btn:hover {
  background: rgba(138, 115, 84, 0.12);
  border-color: #8a7354;
  color: #3a2a14;
}
body:has(.profile-screen) .btn-danger {
  border-color: rgba(138, 74, 58, 0.3);
  color: #9a5a4a;
  font-size: 0.65rem;
  padding: 0.35rem 0.8rem;
}
body:has(.profile-screen) .btn-danger:hover {
  background: rgba(138, 64, 58, 0.1);
  color: #7a3a2a;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .profile-box {
    padding: 2rem 1.5rem;
  }
}
