/* ============================================================
   myprofile.css — My Profile (view-only page)
   ============================================================ */

/* ---------- page wrapper ---------- */

.myprofile-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 8%, rgba(154,96,55,.06), transparent 30%),
    var(--cream);
  padding: 0 0 60px;
}

/* ---------- top bar ---------- */

.myprofile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5.5vw;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #ebe7e0;
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.myprofile-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.myprofile-topbar-brand .bi-arrow-left {
  color: var(--brown);
  font-size: 18px;
  margin-right: 4px;
  transition: transform .2s ease;
}

.myprofile-topbar-brand:hover .bi-arrow-left {
  transform: translateX(-3px);
}

.myprofile-topbar-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.myprofile-topbar-brand span {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
}

/* ---------- hero / header ---------- */

.myprofile-hero {
  text-align: center;
  padding: 48px 20px 36px;
}

.myprofile-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  margin: 0 0 8px;
}

.myprofile-hero h1 span {
  color: var(--brown);
}

.myprofile-hero p {
  color: var(--muted);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- profile header card ---------- */

.myprofile-header-card {
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 0 20px;
}

.myprofile-header-inner {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 0 2px 12px rgba(40,25,15,.04);
}

.myprofile-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #f0ece5;
  border: 3px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.myprofile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.myprofile-photo .mp-placeholder {
  font-size: 40px;
  color: #ccc;
}

.myprofile-header-info {
  flex: 1;
}

.myprofile-header-info h2 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 4px;
}

.myprofile-header-info .mp-email {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 4px;
}

.myprofile-header-info .mp-member {
  color: #999;
  font-size: 12px;
}

.myprofile-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brown);
  color: white;
  border: none;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
  margin-top: 14px;
}

.myprofile-edit-btn:hover {
  background: var(--brown-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(112,64,31,.15);
}

/* ---------- detail sections ---------- */

.myprofile-sections {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.myprofile-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(40,25,15,.04);
}

.myprofile-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0ece5;
}

.myprofile-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}

.myprofile-card-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

/* ---------- detail rows ---------- */

.mp-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mp-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mp-detail-item.full-width {
  grid-column: 1 / -1;
}

.mp-detail-label {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mp-detail-value {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.mp-detail-value.empty {
  color: #ccc;
  font-style: italic;
  font-weight: 400;
}

/* ---------- chip display (readonly) ---------- */

.mp-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fafaf8;
  font-size: 12px;
  font-weight: 500;
  color: #555;
}

.mp-chip i {
  font-size: 11px;
  color: var(--brown);
}

/* ---------- color display ---------- */

.mp-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.mp-color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.mp-color-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.mp-color-name {
  font-size: 11px;
  color: #777;
}

/* ---------- responsive ---------- */

@media (max-width: 767px) {
  .myprofile-hero {
    padding: 36px 20px 24px;
  }

  .myprofile-hero h1 {
    font-size: 26px;
  }

  .myprofile-header-inner {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .myprofile-card {
    padding: 22px 20px;
  }

  .mp-detail-grid {
    grid-template-columns: 1fr;
  }

  .myprofile-topbar {
    padding: 14px 20px;
  }
}

@media (max-width: 575px) {
  .myprofile-hero h1 {
    font-size: 22px;
  }

  .myprofile-hero p {
    font-size: 13px;
  }
}
