/* Soul & Savings Member Hub — front-end styles.
   Matches the site: white background, black text, red #E50023 accent,
   pale panels #F2F5F9 / #F7FAFC, Poppins. Mobile-first; no horizontal
   scroll at 360px. */

.ssmh-wrap {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #111;
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 4px 32px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.ssmh-wrap * { box-sizing: border-box; }

.ssmh-intro { font-size: 16px; line-height: 1.6; color: #333; }

.ssmh-small { font-size: 13px; line-height: 1.5; color: #4A5568; }

.ssmh-empty { color: #4A5568; background: #F7FAFC; border: 1px dashed #CBD5E0; border-radius: 10px; padding: 16px; }

.ssmh-alert { border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.ssmh-alert-error { background: #FBECEC; color: #8C4A4A; border: 1px solid #E8B4B4; }
.ssmh-alert-ok { background: #EAF6EC; color: #276738; border: 1px solid #B7DFC0; }

/* Buttons — explicit dark text so Kadence never renders white-on-light. */
.ssmh-btn {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  background: #F2F5F9;
  border: 1px solid #CBD5E0;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  margin: 4px 6px 4px 0;
}
.ssmh-btn:hover, .ssmh-btn:focus { background: #E2E8F0; color: #111; outline: 2px solid #E50023; outline-offset: 1px; }
.ssmh-btn-primary { background: #E50023; border-color: #E50023; color: #fff; }
.ssmh-btn-primary:hover, .ssmh-btn-primary:focus { background: #C4001E; border-color: #C4001E; color: #fff; }
.ssmh-btn-danger { background: #fff; border-color: #E50023; color: #C4001E; }
.ssmh-btn-danger:hover, .ssmh-btn-danger:focus { background: #FBECEC; color: #C4001E; }
.ssmh-btn-quiet { background: transparent; border-color: transparent; color: #4A5568; }
.ssmh-btn-small { font-size: 13px; padding: 7px 12px; }

/* Cards and forms. */
.ssmh-card {
  background: #F7FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px;
  margin: 0 0 16px;
}
.ssmh-card h2 { font-size: 19px; margin: 0 0 12px; }
.ssmh-card h3 { font-size: 16px; margin: 12px 0 6px; }

.ssmh-form label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.ssmh-form input[type="text"],
.ssmh-form input[type="email"],
.ssmh-form input[type="password"],
.ssmh-form textarea,
.ssmh-form select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: #111;
  background: #fff;
  border: 1px solid #CBD5E0;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.ssmh-form input:focus, .ssmh-form textarea:focus, .ssmh-form select:focus { outline: 2px solid #E50023; outline-offset: 1px; border-color: #E50023; }
.ssmh-form textarea { resize: vertical; min-height: 56px; }

.ssmh-auth-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ssmh-forgot { margin-top: 8px; }
.ssmh-forgot summary { cursor: pointer; color: #E50023; font-weight: 600; }
.ssmh-guest-note { text-align: center; }

/* Dashboard tabs. */
.ssmh-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; border-bottom: 2px solid #E2E8F0; padding-bottom: 0; }
.ssmh-tab {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #4A5568;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 12px;
  cursor: pointer;
}
.ssmh-tab:hover, .ssmh-tab:focus { color: #111; outline: none; }
.ssmh-tab.is-active { color: #E50023; border-bottom-color: #E50023; }

.ssmh-panel { padding: 8px 0; }
.ssmh-panel h2 { font-size: 19px; margin: 20px 0 10px; }

/* Overview stats. */
.ssmh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 16px; }
.ssmh-stat { background: #F2F5F9; border-radius: 10px; padding: 14px 10px; text-align: center; }
.ssmh-stat-num { display: block; font-size: 26px; color: #E50023; }
.ssmh-stat-label { font-size: 12px; color: #4A5568; }

.ssmh-list { list-style: none; margin: 0; padding: 0; }
.ssmh-list li { padding: 8px 0; border-bottom: 1px solid #EDF2F7; font-size: 15px; }
.ssmh-list li:last-child { border-bottom: none; }
.ssmh-list a { color: #E50023; }

/* Freebies + projects. */
.ssmh-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.ssmh-filter { font-size: 14px; font-weight: 600; }
.ssmh-filter select { font-family: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #CBD5E0; border-radius: 8px; background: #fff; color: #111; }

.ssmh-freebie-img { width: 100%; max-width: 320px; height: auto; border-radius: 8px; margin-bottom: 8px; }
.ssmh-freebie-title { font-size: 17px; margin: 0 0 6px; }
.ssmh-meta { font-size: 13px; color: #4A5568; }
/* Stage 2: live directory status line on a saved freebie card. The
 * expired state is prominent — it must win over the save-time snapshot. */
.ssmh-live-status { font-size: 13px; font-weight: 600; color: #137333; margin: 4px 0; }
.ssmh-live-expired { color: #8C4A4A; background: #FBECEC; border: 1px solid #E8B4B4; border-radius: 8px; padding: 6px 8px; }
.ssmh-links a { color: #E50023; font-weight: 600; }
.ssmh-actions { margin-top: 10px; }

.ssmh-tool-group { margin-bottom: 24px; }
.ssmh-tool-group > h2 { border-bottom: 2px solid #F2F5F9; padding-bottom: 6px; }

/* Migration prompt. */
.ssmh-migration { background: #FFF7ED; border: 1px solid #FBD38D; border-radius: 12px; padding: 18px; margin: 20px 0; }
.ssmh-migration h2 { font-size: 18px; margin: 0 0 8px; }
.ssmh-migration ul { margin: 8px 0; padding-left: 20px; font-size: 14px; }
.ssmh-migration-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ssmh-migration-status { font-weight: 600; }

/* Wider screens. */
@media (min-width: 720px) {
  .ssmh-auth-grid { grid-template-columns: 1fr 1fr; }
  .ssmh-wrap { padding: 16px 8px 40px; }
}
