/* SilverCircle Connections — Custom Styles */

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background-color: #FDFBF7;
  color: #2A2421;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #2A2421;
  line-height: 1.25;
}

/* Focus states (accessibility) */
:focus-visible {
  outline: 3px solid #C25934;
  outline-offset: 3px;
  border-radius: 6px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #C25934;
  outline-offset: 3px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.animate-fade-in-up  { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-in     { animation: fadeIn 0.4s ease forwards; }
.animate-delay-100   { animation-delay: 0.1s; opacity: 0; }
.animate-delay-200   { animation-delay: 0.2s; opacity: 0; }
.animate-delay-300   { animation-delay: 0.3s; opacity: 0; }
.animate-delay-400   { animation-delay: 0.4s; opacity: 0; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #EAE5D9 25%, #F5F2EA 50%, #EAE5D9 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* Card hover */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(42, 36, 33, 0.12);
}

/* Profile card lock overlay */
.profile-locked {
  position: relative;
  overflow: hidden;
}
.profile-locked .profile-content {
  filter: blur(3px);
  user-select: none;
  pointer-events: none;
}
.profile-lock-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(253, 251, 247, 0.95) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.5rem;
  text-align: center;
}

/* Form inputs (senior-friendly) */
.sc-input {
  width: 100%;
  background: white;
  border: 2px solid #E6E1D6;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 18px;
  font-family: 'Outfit', sans-serif;
  color: #2A2421;
  min-height: 56px;
  transition: border-color 0.2s;
}
.sc-input:focus {
  outline: none;
  border-color: #C25934;
  box-shadow: 0 0 0 3px rgba(194, 89, 52, 0.15);
}
.sc-input::placeholder { color: #8B7B72; }
.sc-input.error { border-color: #B0413E; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #C25934;
  color: #FDFBF7;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  min-height: 56px;
  transition: background-color 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn-primary:hover { background-color: #A84C2A; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #2C4C3B;
  color: #FDFBF7;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  min-height: 56px;
  transition: background-color 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { background-color: #1E3629; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #C25934;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 12px;
  border: 2px solid #C25934;
  cursor: pointer;
  min-height: 56px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-outline:hover { background: #F5F2EA; }

/* Google Sign In button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: white;
  color: #2A2421;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 12px;
  border: 2px solid #E6E1D6;
  cursor: pointer;
  min-height: 56px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-google:hover { background: #F5F2EA; border-color: #C25934; }

/* Trust badges */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid #E6E1D6;
  border-radius: 50px;
  padding: 8px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #5C544F;
}

/* Hero gradient overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(253,251,247,0.97) 0%, rgba(245,242,234,0.85) 60%, rgba(212,163,115,0.25) 100%);
}

/* Progress bar */
.progress-bar {
  height: 10px;
  background: #EAE5D9;
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C25934, #D4A373);
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* Alert messages */
.alert { padding: 14px 18px; border-radius: 12px; font-family: 'Outfit', sans-serif; font-size: 17px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.alert-error   { background: #FEF2F2; border: 1.5px solid #B0413E; color: #7F1D1D; }
.alert-success { background: #F0FDF4; border: 1.5px solid #4A6B53; color: #14532D; }
.alert-info    { background: #F0F9FF; border: 1.5px solid #3B82F6; color: #1E3A5F; }
.alert-warning { background: #FFFBEB; border: 1.5px solid #D97706; color: #78350F; }

/* Section spacing */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-sm { padding: 32px 0; }
}

/* Max container */
.container-sc {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container-sc { padding: 0 48px; } }
@media (min-width: 1024px) { .container-sc { padding: 0 64px; } }

/* Profile avatar */
.avatar-ring {
  border: 3px solid #E6E1D6;
  padding: 3px;
  border-radius: 50%;
}
.avatar-verified::after {
  content: '✓';
  position: absolute;
  bottom: 4px; right: 4px;
  width: 22px; height: 22px;
  background: #4A6B53;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid white;
}

/* Sticky sidebar */
@media (min-width: 1024px) {
  .filter-sidebar { position: sticky; top: 88px; height: fit-content; }
}

/* Pricing cards */
.pricing-card {
  background: white;
  border: 2px solid #E6E1D6;
  border-radius: 20px;
  padding: 40px;
  transition: all 0.3s;
  position: relative;
}
.pricing-card.popular {
  border-color: #C25934;
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(194, 89, 52, 0.15);
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 36, 33, 0.6);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-box {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
}

/* Accessibility: Skip to content */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #C25934;
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
  font-size: 16px;
}
.skip-link:focus { top: 0; }
