/* Custom Design System Variables */
:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 29%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 29%;
  --primary: 214 72% 14%;
  --primary-foreground: 0 0% 100%;
  --secondary: 339 89% 55%;
  --secondary-foreground: 0 0% 100%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 29%;
  --muted: 220 13% 96%;
  --muted-foreground: 0 0% 29%;
  --accent: 217 56% 72%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 214 72% 14%;
  --brand-navy: 214 72% 14%;
  --brand-pink: 339 89% 55%;
  --brand-light: 220 50% 98%;
  --brand-navy-secondary: 214 47% 16%;
  --brand-accent-blue: 217 56% 72%;
  --gradient-primary: linear-gradient(135deg, hsl(var(--brand-navy)), hsl(var(--brand-navy-secondary)));
  --gradient-pink: linear-gradient(135deg, hsl(var(--brand-pink)), hsl(339 89% 65%));
  --gradient-subtle: linear-gradient(180deg, hsl(var(--background)), hsl(var(--brand-light)));
  --gradient-accent: linear-gradient(135deg, hsl(var(--brand-accent-blue)), hsl(217 56% 82%));
  --shadow-soft: 0 4px 20px -8px hsl(var(--brand-navy) / 0.15);
  --shadow-medium: 0 8px 30px -12px hsl(var(--brand-navy) / 0.25);
  --shadow-large: 0 20px 60px -12px hsl(var(--brand-navy) / 0.35);
  --radius: 0.5rem;
}

.max-w-7xl {
  max-width: 85rem !important;
}

/* Tailwind Config Extension */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica", "Arial", sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.text-brand-navy {
  color: hsl(var(--brand-navy));
}
.bg-brand-navy {
  background-color: hsl(var(--brand-navy));
}
.text-secondary {
  color: hsl(var(--secondary)) !important;
}
.bg-secondary {
  background-color: hsl(var(--secondary));
}
.text-brand-pink {
  color: hsl(var(--brand-pink));
}
.bg-brand-pink {
  background-color: hsl(var(--brand-pink));
}
.bg-brand-light {
  background-color: hsl(var(--brand-light));
}
.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}
.bg-muted {
  background-color: hsl(var(--muted));
}
.border-secondary {
  border-color: hsl(var(--secondary));
}
.border-brand-navy {
  border-color: hsl(var(--brand-navy));
}

.shadow-soft {
  box-shadow: 0 4px 20px -8px hsl(var(--brand-navy) / 0.15);
}
.shadow-medium {
  box-shadow: 0 8px 30px -12px hsl(var(--brand-navy) / 0.25);
}
.shadow-large {
  box-shadow: 0 20px 60px -12px hsl(var(--brand-navy) / 0.35);
}

.text-brand-gray { color: hsl(var(--brand-gray)); }
.text-muted-fg { color: hsl(var(--muted-foreground)); }
.bg-card { background-color: hsl(var(--card)); }
.border-accent { border-color: hsl(var(--accent)); }
.border-border { border-color: hsl(var(--border)); }

.btn-primary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  min-width: 200px;
}
.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  color: hsl(var(--brand-navy));
  border: 2px solid hsl(var(--brand-navy));
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  /* min-width: 200px; */
}
.btn-outline:hover {
  background: hsl(var(--brand-navy));
  color: white;
}

.nav-link {
  color: hsl(var(--brand-navy));
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover {
  color: hsl(var(--brand-pink));
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid hsl(var(--border));
  padding: 1rem;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-menu.active {
  display: flex;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}
@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }
}


/* FAQ Accordion Styles */
.faq-item {
  border-bottom: 1px solid hsl(var(--border));
  padding: 1.5rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--brand-navy));
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.faq-answer {
  display: none;
  margin-top: 1rem;
  color: hsl(var(--foreground));
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Auth Modal Styles */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

.auth-modal-content {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 28rem;
  margin: 1rem;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.3s ease-out;
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.auth-close-btn {
  color: #9ca3af;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.auth-close-btn:hover {
  color: #4b5563;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid hsl(var(--border));
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab:hover {
  color: #374151;
}

.auth-tab.active {
  color: #b4b7f0;
  border-bottom-color: #b4b7f0;
}

.auth-form-container {
  padding: 1.5rem;
}

.auth-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: hsl(var(--foreground));
}

.auth-input {
  width: 100%;
  height: 3rem;
  padding: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.auth-input:focus {
  outline: none;
  border-color: #b4b7f0;
  box-shadow: 0 0 0 3px rgba(180, 183, 240, 0.1);
}

.password-input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: #374151;
}

.auth-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-btn-primary {
  background-color: #b4b7f0;
  color: white;
}

.auth-btn-primary:hover:not(:disabled) {
  background-color: #9fa2e8;
}

.auth-btn-secondary {
  background-color: #f45b69;
  color: white;
}

.auth-btn-secondary:hover:not(:disabled) {
  background-color: #e04958;
}

.auth-btn-outline {
  background-color: white;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.auth-btn-outline:hover {
  background-color: hsl(var(--muted));
}

.auth-btn-social {
  background-color: white;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.auth-btn-social:hover {
  background-color: hsl(var(--muted));
}

.auth-link {
  font-size: 0.875rem;
  color: #b4b7f0;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-divider {
  position: relative;
  margin: 1.5rem 0;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background-color: hsl(var(--border));
}

.auth-divider span {
  position: relative;
  background-color: white;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.auth-checkbox {
  width: 1rem;
  height: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

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

.gap-4 {
  gap: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
