/*
 * wal-profile.css — Win-a-Lotto public user profile styles
 *
 * Full port of commonsense-health.com ch-profile.css adapted to WAL colour tokens.
 * Covers: banner, avatar, tier badge, joined date, Play Now CTA, tab bar,
 * Personal Details (photo row + read-only fields), entry list, empty state.
 *
 * Token map (CH -> WAL):
 *   --ch-secondary (#163060 navy)  -> #1B2A4A  (WAL dark navy)
 *   --ch-primary   (green)         -> #2563EB  (WAL blue)
 *   --ch-accent    (amber)         -> #F5A800  (WAL gold — kept for CTA/logout)
 *   --ch-text-muted                -> #94A3B8
 *   --ch-border                    -> #CBD5E1
 *   --ch-bg                        -> #F8FAFC
 *
 * Rewritten by Webb, 2026-07-27.
 */

.wal-profile-page { min-height: 70vh; }

.wal-profile-header {
  background: linear-gradient(135deg, #1B2A4A 0%, #0d1e36 100%);
  color: #fff;
  padding: 2.5rem 0;
}
.wal-profile-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wal-profile-avatar {
  width: 96px !important;
  height: 96px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.3);
  display: block;
}
.wal-profile-avatar-wrap img {
  width: 96px !important;
  height: 96px !important;
  border-radius: 50% !important;
  border: 3px solid rgba(255,255,255,.3);
  object-fit: cover;
  display: block;
}
.wal-profile-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.3);
}

.wal-profile-header-info { flex: 1; min-width: 0; }

.wal-profile-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 .25rem;
  color: #fff;
}
.wal-profile-email {
  font-size: .875rem;
  opacity: .75;
  margin: 0 0 .5rem;
  color: #fff;
}

.wal-profile-meta-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.wal-profile-joined {
  font-size: .78rem;
  opacity: .6;
  color: #fff;
}

.wal-profile-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}

.wal-profile-cta-wrap {
  margin-top: .75rem;
}
.wal-profile-play-btn {
  display: inline-block;
  padding: .4rem 1.1rem;
  background: #F5A800;
  color: #1B2A4A;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  transition: background .18s;
}
.wal-profile-play-btn:hover {
  background: #e09500;
  color: #1B2A4A;
  text-decoration: none;
}

.wal-profile-tabs-bar {
  background: #fff;
  border-bottom: 1px solid #CBD5E1;
  position: sticky;
  top: 52px;
  z-index: 100;
}
.wal-profile-tabs-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.wal-profile-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.wal-profile-tabs::-webkit-scrollbar { display: none; }

.wal-profile-tab {
  display: block;
  padding: .85rem 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  color: #94A3B8;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.wal-profile-tab:hover         { color: #1B2A4A; text-decoration: none; }
.wal-profile-tab.active        { color: #2563EB; border-bottom-color: #2563EB; }
.wal-profile-tab-logout        { margin-left: auto; color: #F5A800; }
.wal-profile-tab-logout:hover  { color: #c07800; text-decoration: none; }

.wal-profile-content {
  padding: 2rem 1.25rem;
  max-width: 860px;
  margin: 0 auto;
}

.wal-profile-card {
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 1.75rem;
}
.wal-profile-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1B2A4A;
  margin: 0 0 1.25rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid #2563EB;
}

.wal-profile-photo-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #CBD5E1;
}
.wal-profile-photo-preview { flex-shrink: 0; }
.wal-profile-photo-img,
.wal-profile-photo-row img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid #CBD5E1;
  display: block;
}

.wal-btn {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.wal-btn-outline {
  background: transparent;
  color: #2563EB;
  border: 1px solid #2563EB;
}
.wal-btn-outline:hover {
  background: #2563EB;
  color: #fff;
  text-decoration: none;
}
.wal-btn-sm    { padding: .35rem .8rem; font-size: .8rem; }
.wal-field-hint {
  font-size: .75rem;
  color: #94A3B8;
  margin: .3rem 0 0;
}

.wal-profile-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.wal-profile-detail-full { grid-column: 1 / -1; }
.wal-profile-detail {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.wal-detail-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94A3B8;
}
.wal-detail-value {
  font-size: .95rem;
  color: #1B2A4A;
  font-weight: 500;
}

.wal-profile-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.wal-profile-post-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid #CBD5E1;
}
.wal-profile-post-item:last-child { border-bottom: none; }
.wal-profile-post-link {
  font-size: .9rem;
  font-weight: 500;
  color: #2563EB;
  text-decoration: none;
  flex: 1;
}
.wal-profile-post-link:hover { text-decoration: underline; }
.wal-profile-post-date {
  font-size: .75rem;
  color: #94A3B8;
  white-space: nowrap;
  flex-shrink: 0;
}

.wal-profile-no-entries {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #94A3B8;
  font-size: .9rem;
}

@media (max-width: 600px) {
  .wal-profile-header-inner     { gap: 1rem; }
  .wal-profile-name             { font-size: 1.3rem; }
  .wal-profile-avatar           { width: 72px !important; height: 72px !important; }
  .wal-profile-avatar-wrap img  { width: 72px !important; height: 72px !important; }
  .wal-profile-avatar-placeholder { width: 72px; height: 72px; font-size: 1.75rem; }
  .wal-profile-post-item        { flex-direction: column; gap: .2rem; }
}
@media (max-width: 520px) {
  .wal-profile-details-grid     { grid-column: auto; }
  .wal-profile-detail-full      { grid-column: auto; }
}
