/* Se2L shared components — v3, matched to reference (navy/mint/cream).
   Rounded-rectangle buttons (not pills), white cards with a colored
   status top-border, colored icon tiles, and two status pill styles
   (mint = in progress, gray = pending). Linked on every page. */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-control);
  border: 1.5px solid transparent;
  background: var(--color-surface-muted);
  color: var(--color-text);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--color-border); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }

.btn-primary {
  background: var(--color-navy);
  color: #ffffff;
}
.btn-primary:hover { background: var(--color-navy-dark); }

.btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn-secondary:hover { background: var(--color-navy-bg); }

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}
.btn-ghost:hover { background: var(--color-surface-muted); color: var(--color-text); }

.btn-sm { font-size: 0.78rem; padding: 0.55rem 1rem; }
.btn-lg { font-size: 1rem; padding: 0.95rem 1.75rem; }
.btn-block { width: 100%; }

/* --- Cards: white, generously rounded, soft shadow, optional colored
   top border indicating status --- */
.card {
  background: var(--color-surface);
  border: none;
  border-top: 3px solid transparent;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 26, 68, 0.06), 0 1px 2px rgba(15, 26, 68, 0.04);
}
.card-status-progress { border-top-color: var(--color-accent); }
.card-status-pending { border-top-color: var(--color-navy); }
.card-accent {
  background: var(--color-navy);
  color: #ffffff;
  box-shadow: none;
  border-top: none;
}

/* --- Badges: two pill styles used across the reference — mint for
   "in progress / positive", gray for "pending / neutral" --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  background: var(--color-accent-bg);
  color: var(--color-accent-dark);
}
.badge-pending {
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
}
.badge-eyebrow {
  background: var(--color-accent-bg);
  color: var(--color-accent-dark);
}

/* --- Form fields --- */
.form-field { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.4rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 0.75rem 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px var(--color-navy-bg);
}
.form-textarea { resize: vertical; min-height: 5.5rem; }

/* --- Section divider --- */
.divider-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0 1.25rem;
}
.divider-row::before,
.divider-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.divider-row-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* --- Numbered step marker (landing "how it works") --- */
.step-marker {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 1rem;
}

/* --- Icon tile: colored rounded square, alternating tint by index so a
   row of tiles doesn't read as one flat block — matches the reference's
   alternating lavender/mint/navy icon squares. --- */
.icon-tile {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  background: var(--color-navy-bg);
  color: var(--color-navy);
}
.icon-tile svg { width: 1.4rem; height: 1.4rem; }
.icon-tile-mint { background: var(--color-accent-bg); color: var(--color-accent-dark); }
.icon-tile-navy-solid { background: var(--color-navy); color: #ffffff; }
.card-accent .icon-tile { background: rgba(255, 255, 255, 0.15); color: #ffffff; }

/* --- Progress bar --- */
.progress-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--color-surface-muted);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* --- Community tabs: reuses .btn base styling, active state matches
   the app's navy accent (same pattern as .btn-primary) --- */
.community-tab {
  border-radius: 9999px;
}
.community-tab.is-active {
  background: var(--color-navy);
  color: #ffffff;
}
/* --- Community: brief pressed feedback when a post card is clicked into --- */
.card.is-pressed {
  background: var(--color-navy-bg);
  transition: background-color 0.1s ease;
}
/* --- Community: brief pressed feedback when a post card is clicked into --- */
.card.is-pressed {
  background: var(--color-navy-bg);
  transition: background-color 0.1s ease;
}