/* Sister Sister v1 — Women index + Profile pages (Launch A)
   Mobile-first. Integrator: link this stylesheet in base.html <head>:
   <link rel="stylesheet" href="{{ url_for('static', filename='css/women.css') }}">
*/

:root {
  --ss-cream: #faf6ee;
  --ss-ink: #111;
  --ss-mint: #d9efe4;
  --ss-warm: #f3e6d4;
  --ss-pink: #ff87e2;
  --ss-line: #e5ddcf;
  --ss-muted: #6b6257;
}

/* ---------------- Women index ---------------- */

.women-page {
  max-width: 72rem;
  margin: 0 auto;
}

.women-head h1 { margin: 0 0 0.25rem; }
.women-sub { color: var(--ss-muted); margin: 0 0 1rem; }

.women-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.women-search input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--ss-line);
  border-radius: 0.5rem;
  font-size: 1rem;
}
.women-search button {
  padding: 0.6rem 1rem;
  background: var(--ss-ink);
  color: #fff;
  border: 0;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

.women-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px) {
  .women-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .women-grid { grid-template-columns: repeat(4, 1fr); }
}

.woman-card {
  position: relative;
  border: 1px solid var(--ss-line);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
/* Whole card links to the profile; the next-event link floats above it. */
.woman-card .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.woman-card .woman-next a {
  position: relative;
  z-index: 1;
}

.woman-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--ss-warm);
}
/* Branded fallback: initials on mint/warm — never a broken-image icon. */
.woman-fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ss-mint), var(--ss-warm));
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ss-ink);
}

.woman-body { padding: 0.75rem 0.9rem 0.9rem; }
.woman-name { margin: 0 0 0.25rem; font-size: 1.05rem; }
.woman-name a { color: inherit; text-decoration: none; }
.woman-identity {
  margin: 0 0 0.5rem;
  color: var(--ss-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}
.woman-next { margin: 0.5rem 0 0; font-size: 0.85rem; line-height: 1.4; }
.woman-next .next-label { color: var(--ss-muted); }
.woman-next .next-when { display: block; color: var(--ss-muted); }

.women-more { text-align: center; margin: 1.75rem 0; }
.show-more {
  display: inline-block;
  padding: 0.7rem 2rem;
  border: 2px solid var(--ss-ink);
  border-radius: 2rem;
  color: var(--ss-ink);
  text-decoration: none;
  font-weight: 600;
}

.women-empty { padding: 2rem 0; text-align: center; color: var(--ss-muted); }

/* ---------------- Profile detail ---------------- */

.profile-page { max-width: 44rem; margin: 0 auto; }

.profile-head {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.profile-photo {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--ss-warm);
}
.profile-fallback {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ss-mint), var(--ss-warm));
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ss-ink);
}
.profile-id h1 { margin: 0 0 0.35rem; }
.profile-intro { margin: 0 0 0.5rem; line-height: 1.5; }
.profile-place { margin: 0 0 0.5rem; color: var(--ss-muted); font-size: 0.9rem; }
.profile-descriptors {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.profile-descriptors li {
  background: var(--ss-mint);
  border-radius: 1rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
}
.profile-project { margin: 0 0 0.75rem; font-weight: 600; }

.profile-links { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.link-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--ss-line);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--ss-ink);
  background: #fff;
}
.link-icon .icon { width: 1.25rem; height: 1.25rem; }
.link-label {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 2rem;
  background: var(--ss-pink);
  color: var(--ss-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.profile-events h2,
.profile-offerings h2,
.profile-status h2 { margin: 0 0 0.75rem; font-size: 1.2rem; }

.event-rows, .offering-rows {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  border-top: 1px solid var(--ss-line);
}
.event-rows li, .offering-rows li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ss-line);
}
.event-rows a { font-weight: 600; color: inherit; }
.event-when { display: block; color: var(--ss-muted); font-size: 0.85rem; margin-top: 0.15rem; }

.profile-past { margin-bottom: 1.75rem; }
.profile-past summary { cursor: pointer; font-weight: 600; }

.offering-rows li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
}
.offering-title { font-weight: 600; flex: 1 1 12rem; }
.offering-price { color: var(--ss-muted); font-size: 0.9rem; }
.offering-cta {
  color: var(--ss-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ss-pink);
  text-underline-offset: 3px;
}

.profile-status {
  border: 1px solid var(--ss-line);
  border-radius: 0.75rem;
  background: var(--ss-cream);
  padding: 1rem 1.25rem;
  margin-top: 0.5rem;
}
.profile-status p { margin: 0 0 0.75rem; color: var(--ss-muted); font-size: 0.9rem; }
.status-actions { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.status-actions a { color: inherit; font-size: 0.9rem; }

.muted { color: var(--ss-muted); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
