/* Strengthen Family Bonds - Modern Theme */
:root {
  --sfb-primary: #1e40af;
  --sfb-primary-hover: #1d4ed8;
  --sfb-secondary: #0d9488;
  --sfb-secondary-hover: #0f766e;
  --sfb-accent: #f59e0b;
  --sfb-dark: #0f172a;
  --sfb-slate: #334155;
  --sfb-light: #f8fafc;
  --sfb-surface: #ffffff;
  --sfb-border: #e2e8f0;
  --sfb-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --sfb-card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8fafc;
  color: var(--sfb-slate);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Header & Navbar */
.navbar-brand {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.nav-link {
  font-weight: 500;
  transition: color 0.15s ease-in-out;
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.82)),
              url('../images/family-hero-1.png') center/cover no-repeat;
  color: #ffffff;
  padding: 5rem 0 4.5rem;
  position: relative;
}

.hero-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #e2e8f0;
  max-width: 720px;
  margin: 0 auto 2rem;
}

/* Three Pillars Cards */
.pillar-card {
  border: 1px solid var(--sfb-border);
  border-radius: 1rem;
  background: var(--sfb-surface);
  box-shadow: var(--sfb-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sfb-card-shadow-hover);
}

.pillar-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.pillar-icon.connect {
  background-color: #dbeafe;
  color: #1e40af;
}

.pillar-icon.share {
  background-color: #ccfbf1;
  color: #0f766e;
}

.pillar-icon.protect {
  background-color: #fef3c7;
  color: #b45309;
}

/* Badges & Tags */
.badge-soft-primary {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-soft-success {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-soft-warning {
  background-color: #fef3c7;
  color: #b45309;
}

.badge-soft-info {
  background-color: #e0f2fe;
  color: #0369a1;
}

/* Community Scope Toggle */
.scope-toggle-group .btn {
  font-weight: 600;
  padding: 0.5rem 1.25rem;
}

/* Star Rating widget */
.star-rating {
  color: #cbd5e1;
  font-size: 1.1rem;
}

.star-rating .filled {
  color: #f59e0b;
}

.star-selector {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.25rem;
}

.star-selector input[type="radio"] {
  display: none;
}

.star-selector label {
  font-size: 1.75rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s;
}

.star-selector label:hover,
.star-selector label:hover ~ label,
.star-selector input[type="radio"]:checked ~ label {
  color: #f59e0b;
}

/* Vault Private Card */
.vault-card {
  border-left: 4px solid var(--sfb-secondary);
  border-radius: 0.5rem;
}

.vault-security-pill {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}

/* Admin Dashboard Counters */
.admin-stat-card {
  border-radius: 0.75rem;
  border: 1px solid var(--sfb-border);
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: var(--sfb-card-shadow);
}

.admin-stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--sfb-primary);
  line-height: 1.1;
}

.admin-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Modals & Forms */
.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #334155;
  margin-bottom: 0.35rem;
}

.form-control:focus, .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

/* Footer */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 0.875rem;
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}
