/* =======================================================
   Encounters Dating — Home (Logged-in member dashboard)
   ======================================================= */


.home-page {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 32px var(--container-pad) 64px;
}


/* ---------- Greeting strip ---------- */
.home-greet {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}
.home-greet h1 {
  font-size: 40px;
  letter-spacing: var(--ls-tight);
  margin-bottom: 8px;
  color: var(--text);
}
.home-greet h1 .name {
  color: var(--rose);
  font-style: italic;
}
.home-greet-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.55;
}

.home-greet-date {
  text-align: right;
  font-size: 13px;
  color: var(--text-light);
  padding-bottom: 4px;
}
.home-greet-date .day {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--plum-deep);
  display: block;
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}


/* ============================================
   PROFILE PROGRESS CARD (for incomplete profile)
   ============================================ */
.profile-progress {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: linear-gradient(135deg, var(--plum-deep) 0%, var(--plum) 100%);
  color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 40px;
  position: relative;
}

.profile-progress-text {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.profile-progress-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--rose-light);
  margin-bottom: 14px;
  font-weight: 600;
}
.profile-progress-text h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: white;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.profile-progress-text p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  margin-bottom: 24px;
}

.progress-bar-wrap {
  margin-bottom: 24px;
}
.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose-light) 0%, white 100%);
  border-radius: 999px;
}
.progress-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--sans);
}
.progress-bar-meta strong {
  color: white;
  font-weight: 500;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: -0.005em;
}

.profile-progress-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-progress-actions .btn {
  background: white;
  color: var(--plum-deep);
  font-weight: 500;
  font-size: 14px;
  padding: 11px 22px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.profile-progress-actions .btn:hover { background: var(--bg); text-decoration: none; }
.profile-progress-actions .btn.ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.profile-progress-actions .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Right side: next-step list */
.profile-progress-todos {
  background: rgba(255, 255, 255, 0.08);
  padding: 32px 36px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.profile-progress-todos-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--rose-light);
  margin-bottom: 16px;
  font-weight: 600;
}
.todo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.todo-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: white;
}
.todo-list li:last-child { border-bottom: none; }
.todo-list li .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.todo-list li.done .check {
  background: var(--rose-light);
  border-color: var(--rose-light);
}
.todo-list li.done .check svg {
  width: 10px;
  height: 10px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.todo-list li.done .label {
  text-decoration: line-through;
  opacity: 0.55;
}
.todo-list li .label {
  flex: 1;
}
.todo-list li .gain {
  font-size: 11px;
  font-weight: 600;
  color: var(--rose-light);
}


/* ============================================
   AT A GLANCE STATS
   ============================================ */
.home-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all var(--t-base);
  position: relative;
}
.stat-card:hover {
  border-color: var(--rule);
  text-decoration: none;
  box-shadow: 0 4px 16px -6px rgba(60, 40, 60, 0.08);
}
.stat-card-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-card-eyebrow svg {
  width: 12px;
  height: 12px;
  stroke: var(--text-light);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-card-number {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--plum-deep);
  letter-spacing: -0.015em;
  line-height: 1;
  margin-bottom: 4px;
  font-weight: 400;
}
.stat-card-number .new {
  font-size: 11px;
  color: var(--rose);
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  margin-left: 4px;
  vertical-align: middle;
}
.stat-card-label {
  font-size: 12px;
  color: var(--text-mid);
}


/* ============================================
   "TODAY'S MATCHES" — three-up
   ============================================ */
.home-section {
  margin-bottom: 56px;
}
.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}
.home-section-head h2 {
  font-size: 28px;
  letter-spacing: var(--ls-tight);
  color: var(--text);
  margin: 0;
}
.home-section-head .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-mid);
  margin-top: 4px;
}
.home-section-head .more-link {
  font-size: 14px;
  color: var(--rose);
  text-decoration: none;
  font-weight: 500;
}
.home-section-head .more-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.home-section-titles {
  display: flex;
  flex-direction: column;
}


/* Today's matches grid — 3-up vertical cards */
.todays-matches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.match-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--t-base);
  cursor: pointer;
}
.match-mini:hover {
  border-color: var(--rule);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(60, 40, 60, 0.12);
  text-decoration: none;
}
.match-mini-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--plum-faint) 0%, #E8DCE9 100%);
  position: relative;
  overflow: hidden;
}
.match-mini-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.match-mini-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 56px;
  color: var(--plum);
  opacity: 0.8;
}
.match-mini-match {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--plum-deep);
  letter-spacing: -0.01em;
}
.match-mini-match small {
  font-size: 9px;
  color: var(--rose);
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 4px;
}
.match-mini-online {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: white;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.match-mini-online .dot {
  width: 6px;
  height: 6px;
  background: #9BD89B;
  border-radius: 50%;
}

.match-mini-body {
  padding: 16px 18px 20px;
}
.match-mini-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.match-mini-name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--plum-deep);
  letter-spacing: -0.005em;
}
.match-mini-age {
  font-size: 13px;
  color: var(--text-mid);
}
.match-mini-location {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 10px;
}
.match-mini-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--plum);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ============================================
   ACTIVITY RECENT — two-column
   ============================================ */
.home-activity {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.activity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}
.activity-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--plum-deep);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.activity-card-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 22px;
}

.activity-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity var(--t-base);
}
.activity-row:hover { text-decoration: none; opacity: 0.8; }
.activity-row:last-child { border-bottom: none; padding-bottom: 0; }
.activity-row:first-of-type { padding-top: 0; }

.activity-row-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--plum-faint) 0%, #E8DCE9 100%);
  overflow: hidden;
  flex-shrink: 0;
}
.activity-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.activity-row-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--plum);
}

.activity-row-info {
  min-width: 0;
}
.activity-row-name {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--plum-deep);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.activity-row-action {
  font-size: 12px;
  color: var(--text-mid);
}
.activity-row-action .accent { color: var(--rose); }
.activity-row-time {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
}


/* Tips & nudges sidebar */
.tips-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}
.tips-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--plum-deep);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.tips-card-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 22px;
}
.tip-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.tip-item:last-child { border-bottom: none; }
.tip-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rose-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tip-item-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--rose);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tip-item-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.tip-item-text strong {
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
  color: var(--plum-deep);
}
.tip-item-text .sub {
  font-size: 12px;
  color: var(--text-mid);
}


/* ============================================
   Sign-off
   ============================================ */
.home-signoff {
  margin-top: 64px;
  padding: 48px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--text-light);
  letter-spacing: -0.005em;
}


/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .profile-progress {
    grid-template-columns: 1fr;
  }
  .profile-progress-todos {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .home-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .todays-matches {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-activity {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .home-greet {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .home-greet-date { text-align: left; }
  .home-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .todays-matches {
    grid-template-columns: 1fr;
  }
  .profile-progress-text,
  .profile-progress-todos {
    padding: 24px;
  }
  .profile-progress-text h2 { font-size: 24px; }
  .home-section-head h2 { font-size: 24px; }
}
