/* ============================================================
   ffs-shared.css — Future Female Scholars
   Single source of truth for every page
   ============================================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ===== FONTS + BASE ===== */
body {
  font-family: "Poppins", sans-serif;
  background: #fff7fb;
  color: #1f2937;
  min-height: 100vh;
}

/* ===== CSS VARS ===== */
:root {
  --pink: #f25ca2;
  --pink-dark: #a12b63;
  --pink-light: #ff79bc;
  --green: #22c55e;
  --green-dark: #065f46;
  --bg: #fff7fb;
}

/* ===== CONTAINER ===== */
.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* ============================================================
   HEADER — sticky, shared across all pages
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 64px;
  background: rgba(255, 247, 251, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 192, 208, 0.45);
  box-shadow: 0 2px 20px rgba(242, 92, 162, 0.07);
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(242, 92, 162, 0.28);
}

.logo-text {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--pink);
  line-height: 1.2;
  white-space: nowrap;
}

/* ===== MAIN NAV ===== */
nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
}

nav a {
  text-decoration: none;
  color: #6b7280;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

nav a:hover {
  color: var(--pink-dark);
  background: rgba(242, 92, 162, 0.07);
}

nav a.active {
  color: var(--pink-dark);
  font-weight: 700;
  background: rgba(242, 92, 162, 0.1);
}

/* ===== HEADER RIGHT ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* user chip — shown when logged in */
.user-chip {
  display: none; /* shown via JS */
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 6px;
  border-radius: 999px;
  background: rgba(255, 95, 174, 0.09);
  border: 1.5px solid rgba(255, 95, 174, 0.22);
  cursor: pointer;
  transition: background 0.15s;
}
.user-chip:hover { background: rgba(255, 95, 174, 0.15); }

.user-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5fae, #a12b63);
  color: white;
  font-weight: 800;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-display-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pink-dark);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(90deg, #ff5fae, #a12b63);
  color: #fff;
  box-shadow: 0 8px 22px rgba(242, 92, 162, 0.26);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(242, 92, 162, 0.36); }

.btn-outline {
  background: transparent;
  color: var(--pink);
  border-color: rgba(255, 95, 174, 0.55);
}
.btn-outline:hover { background: rgba(255, 95, 174, 0.07); }

.btn-ghost {
  background: white;
  color: var(--pink-dark);
  border: 1.5px solid rgba(255, 95, 174, 0.4);
  box-shadow: 0 4px 14px rgba(242, 92, 162, 0.08);
}
.btn-ghost:hover { background: #fff0f6; }

/* ============================================================
   GLOBAL AUTH MODAL (injected on every page)
   ============================================================ */
.ffs-auth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ffs-auth-backdrop.active { display: flex; }

.ffs-auth-modal {
  background: white;
  border-radius: 26px;
  width: min(430px, 100%);
  padding: 36px 32px;
  box-shadow: 0 30px 80px rgba(161, 43, 99, 0.22);
  position: relative;
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ffs-auth-modal h2 {
  font-size: 1.5rem;
  color: var(--pink-dark);
  margin-bottom: 5px;
}
.ffs-auth-modal .auth-sub {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid #ffd5e5;
  margin-bottom: 22px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  font-size: 0.9rem;
}
.auth-tab.active { color: var(--pink-dark); border-color: var(--pink-dark); }

.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block;
  font-weight: 600;
  font-size: 0.84rem;
  color: #374151;
  margin-bottom: 5px;
}
.auth-field input {
  width: 100%;
  border: 1.5px solid #ffd5e5;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: "Poppins", sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff8fc;
}
.auth-field input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(242, 92, 162, 0.1); }

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #ff5fae, #a12b63);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.15s;
}
.auth-submit-btn:hover { transform: translateY(-1px); }

.auth-error {
  color: #dc2626;
  font-size: 0.83rem;
  margin-top: 7px;
  text-align: center;
  min-height: 18px;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #9ca3af;
  line-height: 1;
  transition: color 0.15s;
}
.auth-close:hover { color: var(--pink-dark); }

/* ============================================================
   USER DROPDOWN
   ============================================================ */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(31, 41, 55, 0.14);
  border: 1.5px solid #ffd5e5;
  min-width: 200px;
  overflow: hidden;
  display: none;
  z-index: 300;
  animation: dropIn 0.15s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.user-dropdown.open { display: block; }

.dropdown-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #fff0f6;
}
.dropdown-email { font-size: 0.78rem; color: #9ca3af; }
.dropdown-name { font-size: 0.9rem; font-weight: 700; color: var(--pink-dark); margin-top: 2px; }

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  text-decoration: none;
  color: #374151;
  font-size: 0.87rem;
  font-weight: 500;
  transition: background 0.12s;
}
.dropdown-link:hover { background: #fff0f6; color: var(--pink-dark); }
.dropdown-link .icon { font-size: 1rem; }

.dropdown-signout {
  width: 100%;
  padding: 11px 16px;
  background: none;
  border: none;
  border-top: 1px solid #fff0f6;
  color: #dc2626;
  font-family: "Poppins", sans-serif;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: background 0.12s;
}
.dropdown-signout:hover { background: #fff5f5; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
  background: white;
  padding: 26px 20px;
  border-radius: 20px;
  border: 1.5px solid #ffd5e5;
  box-shadow: 0 10px 28px rgba(255, 192, 208, 0.2);
  text-align: center;
  transition: transform 0.15s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 8px;
}
.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--pink-dark);
  line-height: 1;
  margin-bottom: 5px;
}
.stat-caption { font-size: 0.8rem; color: #6b7280; font-weight: 500; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--pink-dark);
  text-align: center;
  margin-bottom: 8px;
}
.testimonials-subtitle {
  color: #6b7280;
  font-size: 0.97rem;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 36px;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  border: 1.5px solid #ffd5e5;
  box-shadow: 0 8px 28px rgba(255, 192, 208, 0.18);
}
.testimonial-photo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(242, 92, 162, 0.2);
  margin-bottom: 14px;
}
.testimonial-text {
  color: #374151;
  font-size: 0.86rem;
  line-height: 1.75;
  margin-bottom: 10px;
}
.testimonial-name { color: var(--pink-dark); font-weight: 700; font-size: 0.84rem; }

/* ============================================================
   SESSIONS CAROUSEL
   ============================================================ */
.sessions-header { text-align: center; margin-bottom: 30px; }
.sessions-title {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 900;
  color: var(--pink-dark);
  margin-bottom: 8px;
}
.sessions-subtitle { color: #6b7280; font-size: 0.93rem; }
.sessions-row { display: flex; align-items: center; gap: 16px; justify-content: center; }
.sessions-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 95, 174, 0.45);
  background: white; color: var(--pink);
  font-size: 1.3rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s;
  box-shadow: 0 4px 12px rgba(242, 92, 162, 0.1);
}
.sessions-arrow:hover { background: var(--pink); color: white; }
.session-card {
  flex: 1; max-width: 300px;
  background: white; border-radius: 16px;
  overflow: hidden; box-shadow: 0 8px 26px rgba(31, 41, 55, 0.11);
}
.session-img { width: 100%; height: 200px; object-fit: cover; display: block; }

/* ============================================================
   CONNECT SECTION
   ============================================================ */
.connect-inner {
  background: linear-gradient(135deg, rgba(255, 95, 174, 0.07), rgba(161, 43, 99, 0.05));
  border: 1.5px solid rgba(255, 192, 208, 0.5);
  border-radius: 28px;
  padding: 52px 40px;
  text-align: center;
}
.connect-eyebrow {
  color: var(--pink); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 10px;
}
.connect-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 900; color: var(--pink-dark); margin-bottom: 12px;
}
.connect-text {
  color: #6b7280; font-size: 0.97rem; line-height: 1.75;
  margin-bottom: 26px; max-width: 52ch; margin-left: auto; margin-right: auto;
}
.connect-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.connect-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 0.88rem;
  text-decoration: none; transition: transform 0.15s;
}
.connect-btn:hover { transform: translateY(-2px); }
.connect-btn-primary {
  background: linear-gradient(90deg, #ff5fae, #a12b63);
  color: white; box-shadow: 0 10px 24px rgba(242, 92, 162, 0.26);
}
.connect-btn-outline {
  background: white; color: var(--pink-dark);
  border: 2px solid rgba(255, 95, 174, 0.45);
}

/* ============================================================
   READ MORE BUTTON
   ============================================================ */
.read-more-btn {
  border: none; background: none; color: var(--pink);
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  text-decoration: underline; padding: 0; margin-top: 4px;
  font-family: "Poppins", sans-serif;
}
.read-more-btn:hover { opacity: 0.75; }

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
  border: 4px solid #ffd5e5;
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--pink-dark);
  font-size: 1.4rem;
  line-height: 1;
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #ffd5e5;
  padding: 12px 20px 20px;
  z-index: 199;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.1);
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-drawer.open { display: flex; }

.mobile-nav-drawer a {
  display: block;
  text-decoration: none;
  color: #374151;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 11px 14px;
  border-radius: 12px;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav-drawer a:hover { background: #fff0f6; color: var(--pink-dark); }
.mobile-nav-drawer a.active { background: rgba(242, 92, 162, 0.1); color: var(--pink-dark); font-weight: 700; }

.mobile-nav-drawer .mobile-nav-divider {
  height: 1px; background: #ffd5e5; margin: 8px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  header { padding: 0 24px; }
  nav { gap: 2px; }
  nav a { font-size: 0.8rem; padding: 5px 8px; }
}

@media (max-width: 820px) {
  nav { display: none; }
  .nav-hamburger { display: flex; align-items: center; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .sessions-row { flex-wrap: wrap; }
  .session-card { max-width: 250px; }
  .connect-inner { padding: 36px 22px; }
}

@media (max-width: 560px) {
  .logo-text { display: none; }
}