/* ============================
   LBC MISSIONS PAGE STYLES
   Photo-first missionary cards with flags
   ============================ */

/* ============================
   HERO SECTION
   HERO SPACING MOVED TO lbc-overrides.css
   ============================ */
.missions-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0b1021 0%, #1a2744 50%, #0b1021 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(208, 167, 95, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.missions-hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lbc-gold);
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(208, 167, 95, 0.4);
  border-radius: 999px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.15;
  color: #fff;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e5e7eb;
  margin: 0 0 1.5rem;
}

.hero-verse {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--lbc-gold);
  padding: 1.25rem;
  margin: 0 auto 2rem;
  max-width: 600px;
  text-align: left;
  border-radius: 0 0.5rem 0.5rem 0;
}

.hero-verse p {
  font-size: 1rem;
  font-style: italic;
  color: #facc6b;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.verse-ref {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  font-weight: 600;
}

/* HERO ACTIONS - FIXED: Center buttons at all breakpoints */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ============================
   STATS SECTION
   ============================ */
.stats-section {
  padding: 2.5rem 0;
  background: #0b1021;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--lbc-gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================
   FILTER SECTION
   ============================ */
.filter-section {
  padding: 1.25rem 0;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 80px;
  z-index: 40;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.filter-chip {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-chip:hover {
  border-color: var(--lbc-gold);
  color: var(--lbc-gold);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--lbc-gold), #facc6b);
  border-color: transparent;
  color: var(--lbc-navy);
}

.chip-count {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 999px;
}

.filter-chip.active .chip-count {
  background: rgba(11, 16, 33, 0.2);
}

/* ============================
   MISSIONARIES SECTION
   ============================ */
.missionaries-section {
  padding: 3rem 0 4rem;
  background: var(--lbc-cream);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lbc-gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--lbc-navy);
  margin: 0;
}

.section-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--lbc-text-soft);
  margin: 0.75rem 0 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   MISSIONARY CARDS - Photo First
   ============================ */
.missionaries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.missionary-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.missionary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.missionary-card.hidden {
  display: none;
}

/* Photo Section */
.card-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  overflow: hidden;
  margin: 0.625rem 0.625rem 0;
  border-radius: 0.75rem;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0.75rem;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #1a2744 0%, #0f172a 100%);
  border-radius: 0.75rem;
}

.photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(208, 167, 95, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(208, 167, 95, 0.15);
  border: 2px solid rgba(208, 167, 95, 0.3);
  color: var(--lbc-gold);
}

/* Flag Image (inside ministry pill) */
.flag-img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* Card Content */
.card-content {
  padding: 1.25rem;
}

.card-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lbc-navy);
  margin: 0 0 0.25rem;
}

.card-members {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.card-field {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(208, 167, 95, 0.1);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 0.75rem;
}

.card-field svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.card-focus {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.card-retired-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #92400e;
  background: rgba(208, 167, 95, 0.15);
  border: 1px solid rgba(208, 167, 95, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.card-region {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  font-weight: 600;
}

/* No Results */
.no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
  color: #6b7280;
}

.no-results svg {
  opacity: 0.3;
}

.no-results p {
  font-size: 1.1rem;
  margin: 0;
}

/* ============================
   HELP SECTION
   ============================ */
.help-section {
  padding: 3.5rem 0;
  background: #fff;
}

.help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.help-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--lbc-cream);
  border-radius: 1rem;
  border: 1px solid rgba(208, 167, 95, 0.2);
}

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(208, 167, 95, 0.2), rgba(208, 167, 95, 0.1));
  border: 2px solid rgba(208, 167, 95, 0.3);
  color: var(--lbc-gold);
  margin-bottom: 1rem;
}

.help-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lbc-navy);
  margin: 0 0 0.75rem;
}

.help-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

.help-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lbc-gold);
  text-decoration: none;
  transition: color 0.2s;
}

.help-link:hover {
  color: #b8943f;
}

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
  padding: 3.5rem 0 4rem;
  background: var(--lbc-cream);
}

.cta-content {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--lbc-navy);
}

.cta-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 1.5rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

/* ============================
   RESPONSIVE - Tablet
   ============================ */
@media (min-width: 641px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  /* FIXED: Added justify-content: center to keep buttons centered */
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .missionaries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-photo {
    margin: 0.75rem 0.75rem 0;
  }

  .help-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* ============================
   RESPONSIVE - Desktop
   ============================ */
@media (min-width: 900px) {
  .missions-hero {
    /* Hero spacing handled by lbc-overrides.css */
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .missionaries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .missionaries-section {
    padding: 4rem 0 5rem;
  }
  
  .card-photo {
    margin: 0.75rem 0.75rem 0;
  }
}

/* ============================
   RESPONSIVE - Large Desktop
   ============================ */
@media (min-width: 1200px) {
  .missionaries-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
  }
}

/* ============================
   BUTTONS - Pill Shape with Gold Gradient
   Matches Our History page styling
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lbc-gold), #facc6b);
  color: var(--lbc-navy);
  box-shadow: 0 4px 15px rgba(208, 167, 95, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(208, 167, 95, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* CTA Section Button Override - Navy on Light Background */
.cta-section .btn-outline {
  border-color: var(--lbc-navy);
  color: var(--lbc-navy);
}

.cta-section .btn-outline:hover {
  background: var(--lbc-navy);
  color: #fff;
}

/* No Missionaries State */
.no-missionaries {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--lbc-text-soft);
}

.no-missionaries p {
  font-size: 1.1rem;
  margin: 0;
}
