/* ═══════════════════════════════════════════════════════════════
   nn-home-dashboard.css
   Logged-in home dashboard — [nn_home] shortcode (authenticated view).
   Guest view uses the individual section stylesheets already loaded
   by each section's own shortcode function.
   ═══════════════════════════════════════════════════════════════ */

/* ── Welcome Banner ───────────────────────────────────────────── */
.nn-welcome {
  background: linear-gradient(135deg, var(--mob-primary) 0%, var(--mob-primary-dark) 100%);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  color: #fff;
}

.nn-welcome__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.nn-welcome__label {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-xs);
  font-weight: var(--mob-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin: 0 0 0.3rem;
}

.nn-welcome__name {
  font-family: var(--mob-font-sans);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: var(--mob-weight-extrabold);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: #fff;
}

.nn-welcome__sub {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-base);
  opacity: 0.75;
  margin: 0;
}

.nn-welcome__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Buttons (white / outline-white / text-white) for dark bg ── */
.nn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-sm);
  font-weight: var(--mob-weight-semibold);
  padding: 12px 22px;
  border-radius: var(--mob-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--mob-transition),
    color var(--mob-transition),
    border-color var(--mob-transition),
    transform var(--mob-transition);
  white-space: nowrap;
}

.nn-btn--white {
  background: #fff;
  color: var(--mob-primary);
  border-color: #fff;
}
.nn-btn--white:hover {
  background: var(--mob-primary-light);
  border-color: var(--mob-primary-light);
  color: var(--mob-primary);
  transform: translateY(-1px);
  text-decoration: none;
}

.nn-btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.nn-btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.nn-btn--text-white {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border-color: transparent;
  padding-inline: 4px;
}
.nn-btn--text-white:hover {
  color: #fff;
  text-decoration: none;
}

/* ── Section Layout ───────────────────────────────────────────── */
.nn-home-section {
  padding: 4rem 0;
}

.nn-home-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.nn-home-section__title {
  font-family: var(--mob-font-sans);
  font-size: clamp(var(--mob-text-lg), 3vw, var(--mob-text-xl));
  font-weight: var(--mob-weight-bold);
  color: var(--mob-text);
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.nn-home-section__sub {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-sm);
  color: var(--mob-text-muted);
  margin: 0;
}

.nn-home-section__see-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-sm);
  font-weight: var(--mob-weight-semibold);
  color: var(--mob-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: gap var(--mob-transition), color var(--mob-transition);
}
.nn-home-section__see-all:hover {
  gap: 0.55rem;
  color: var(--mob-primary-dark);
  text-decoration: none;
}

/* ── Events Grid ──────────────────────────────────────────────── */
.nn-home-events__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.nn-home-event-card {
  border-radius: var(--mob-radius-lg);
  overflow: hidden;
  background: var(--mob-surface);
  border: 1px solid var(--mob-border);
  box-shadow: var(--mob-shadow-sm);
  transition:
    box-shadow var(--mob-transition),
    transform var(--mob-transition),
    border-color var(--mob-transition);
}
.nn-home-event-card:hover {
  box-shadow: var(--mob-shadow-md);
  transform: translateY(-3px);
  border-color: var(--mob-primary-mid);
}

.nn-home-event-card__img-wrap {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.nn-home-event-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--mob-transition);
}
.nn-home-event-card:hover .nn-home-event-card__img-wrap img {
  transform: scale(1.04);
}

.nn-home-event-card__body {
  padding: 1rem 1.1rem 1.25rem;
}

.nn-home-event-card__date {
  display: block;
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-xs);
  font-weight: var(--mob-weight-semibold);
  color: var(--mob-primary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.35rem;
}

.nn-home-event-card__title {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-sm);
  font-weight: var(--mob-weight-semibold);
  margin: 0;
  line-height: 1.4;
}
.nn-home-event-card__title a {
  color: var(--mob-text);
  text-decoration: none;
}
.nn-home-event-card__title a:hover {
  color: var(--mob-primary);
}

/* ── Action Cards ─────────────────────────────────────────────── */
.nn-action-cards {
  padding: 1.75rem 0 0;
}

.nn-action-cards__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.nn-action-card {
  background: var(--mob-surface);
  border: 1px solid var(--mob-border);
  border-radius: var(--mob-radius-md);
  padding: 1.25rem 1.4rem 1.3rem;
  box-shadow: var(--mob-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition:
    box-shadow var(--mob-transition),
    border-color var(--mob-transition);
}
.nn-action-card:hover {
  box-shadow: var(--mob-shadow-md);
  border-color: var(--mob-primary-mid);
}

.nn-action-card__label {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-xs);
  font-weight: var(--mob-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mob-text-muted);
  margin: 0;
}

.nn-action-card__body {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.nn-action-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--mob-radius-sm);
  background: var(--mob-primary-light);
  color: var(--mob-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nn-action-card__icon--accent {
  background: var(--mob-accent-light);
  color: var(--mob-accent);
}

.nn-action-card__text {
  flex: 1;
  min-width: 0;
}

.nn-action-card__title {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-sm);
  font-weight: var(--mob-weight-bold);
  color: var(--mob-text);
  margin: 0 0 0.3rem;
  line-height: 1.35;
}

.nn-action-card__desc {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-xs);
  color: var(--mob-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Progress bar */
.nn-action-card__progress-wrap {
  padding: 0 0 0.1rem;
}
.nn-action-card__progress-bar {
  height: 6px;
  border-radius: 100px;
  background: var(--mob-border);
  overflow: hidden;
}
.nn-action-card__progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--mob-primary-mid), var(--mob-primary));
  transition: width 0.6s ease;
}

/* CTA link */
.nn-action-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-sm);
  font-weight: var(--mob-weight-semibold);
  color: var(--mob-primary);
  text-decoration: none;
  border: 1.5px solid var(--mob-border);
  border-radius: var(--mob-radius-sm);
  padding: 9px 18px;
  align-self: flex-start;
  transition:
    background var(--mob-transition),
    border-color var(--mob-transition),
    color var(--mob-transition);
}
.nn-action-card__btn:hover {
  background: var(--mob-primary);
  border-color: var(--mob-primary);
  color: #fff;
  text-decoration: none;
}

/* ── Inbox Messages ───────────────────────────────────────────── */
.nn-inbox {
  padding: 2.5rem 0 0;
}

.nn-inbox__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.nn-inbox__title {
  font-family: var(--mob-font-sans);
  font-size: clamp(var(--mob-text-lg), 3vw, var(--mob-text-xl));
  font-weight: var(--mob-weight-bold);
  color: var(--mob-text);
  margin: 0 0 0.2rem;
  line-height: 1.2;
}

.nn-inbox__sub {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-sm);
  color: var(--mob-text-muted);
  margin: 0;
}

/* Card wrapper */
.nn-inbox__list {
  background: var(--mob-surface);
  border: 1px solid var(--mob-border);
  border-radius: var(--mob-radius-md);
  box-shadow: var(--mob-shadow-sm);
  overflow: hidden;
}

/* Individual row */
.nn-inbox__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--mob-border);
  text-decoration: none;
  background: transparent;
  transition: background var(--mob-transition);
  position: relative;
}
.nn-inbox__row:last-child {
  border-bottom: none;
}
.nn-inbox__row:hover {
  background: var(--mob-primary-light);
  text-decoration: none;
}
.nn-inbox__row--unread {
  background: color-mix(in srgb, var(--mob-primary-light) 60%, transparent);
}
.nn-inbox__row--unread:hover {
  background: var(--mob-primary-light);
}

/* Avatar */
.nn-inbox__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mob-primary-light);
  color: var(--mob-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-base);
  font-weight: var(--mob-weight-bold);
}
.nn-inbox__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content */
.nn-inbox__content {
  flex: 1;
  min-width: 0;
}

.nn-inbox__row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.nn-inbox__name {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-sm);
  font-weight: var(--mob-weight-semibold);
  color: var(--mob-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nn-inbox__row--unread .nn-inbox__name {
  font-weight: var(--mob-weight-bold);
}

.nn-inbox__time {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-xs);
  color: var(--mob-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.nn-inbox__excerpt {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-xs);
  color: var(--mob-text-muted);
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.nn-inbox__row--unread .nn-inbox__excerpt {
  color: var(--mob-text-light);
}

/* Unread dot */
.nn-inbox__unread-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mob-primary);
}

/* Empty state */
.nn-inbox__empty {
  background: var(--mob-surface);
  border: 1px solid var(--mob-border);
  border-radius: var(--mob-radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--mob-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.nn-inbox__empty svg {
  opacity: 0.35;
}
.nn-inbox__empty p {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-sm);
  margin: 0;
}
.nn-inbox__empty-link {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-sm);
  font-weight: var(--mob-weight-semibold);
  color: var(--mob-primary);
  text-decoration: none;
}
.nn-inbox__empty-link:hover {
  text-decoration: underline;
}

/* ── Wellness Needs Dashboard Section ────────────────────────── */
.nn-wn-section {
  padding-bottom: 2rem;
}

.nn-wn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.nn-wn-card {
  background: var(--mob-surface);
  border: 1px solid var(--mob-border);
  border-radius: var(--mob-radius-md);
  padding: 1.1rem 1.25rem 1rem;
  box-shadow: var(--mob-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition:
    box-shadow var(--mob-transition),
    border-color var(--mob-transition),
    transform var(--mob-transition);
}
.nn-wn-card:hover {
  box-shadow: var(--mob-shadow-md);
  border-color: var(--mob-primary-mid);
  transform: translateY(-2px);
}

/* Head row: category badge + timeframe badge */
.nn-wn-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nn-wn-card__cat {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-xs);
  font-weight: var(--mob-weight-semibold);
  color: var(--mob-primary);
  background: var(--mob-primary-light);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}

.nn-wn-card__tf {
  font-family: var(--mob-font-sans);
  font-size: 10px;
  font-weight: var(--mob-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mob-text-muted);
  background: var(--mob-border);
  border-radius: 100px;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nn-wn-card__tf--soon {
  color: #b45309;
  background: #fef3c7;
}
.nn-wn-card__tf--urgent {
  color: #b91c1c;
  background: #fee2e2;
}

/* Description */
.nn-wn-card__desc {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-sm);
  color: var(--mob-text-light);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Meta row: location, responses */
.nn-wn-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nn-wn-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-xs);
  color: var(--mob-text-muted);
}

/* Footer: seeker name + CTA */
.nn-wn-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--mob-border);
}

.nn-wn-card__seeker {
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-xs);
  font-weight: var(--mob-weight-semibold);
  color: var(--mob-text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nn-wn-card__time {
  font-weight: var(--mob-weight-normal);
  color: var(--mob-text-muted);
}

.nn-wn-card__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-family: var(--mob-font-sans);
  font-size: var(--mob-text-xs);
  font-weight: var(--mob-weight-semibold);
  color: var(--mob-primary);
  background: var(--mob-primary-light);
  border-radius: var(--mob-radius-sm);
  padding: 5px 12px;
  text-decoration: none;
  transition:
    background var(--mob-transition),
    color var(--mob-transition);
}
.nn-wn-card__btn:hover {
  background: var(--mob-primary);
  color: #fff;
  text-decoration: none;
}

/* Responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nn-welcome__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .nn-home-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nn-action-cards__grid {
    grid-template-columns: 1fr;
  }

  .nn-wn-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .nn-wn-grid {
    grid-template-columns: 1fr 1fr;
  }
}
