/* TheMove Design System */

/* ============================================
   Base Styles & Variables
   ============================================ */
:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --accent: #6366F1;
  --background: #FAFAFA;
  --dark: #1E1B4B;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Navbar Component
   ============================================ */
.navbar {
  background: white;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.navbar-logo:hover {
  color: var(--primary-hover);
  transform: translateY(-1px);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-link {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0;
}

.navbar-link:hover {
  color: var(--primary);
}

/* Mobile Menu */
.navbar-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gray-700);
}

@media (max-width: 768px) {
  .navbar-mobile-toggle {
    display: block;
  }
  
  .navbar-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    gap: 1rem;
  }
  
  .navbar-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .navbar-nav .navbar-link {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .navbar-nav .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* ============================================
   Button Components
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}

.btn-ghost:hover {
  background: var(--gray-50);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* ============================================
   Form Components
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: white;
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-input:disabled {
  background: var(--gray-50);
  cursor: not-allowed;
}

/* ============================================
   Card Components
   ============================================ */
.card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-compact {
  padding: 1.5rem;
}

.card-elevated {
  box-shadow: var(--shadow-xl);
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 640px;
}

.container-md {
  max-width: 768px;
}

.container-lg {
  max-width: 1024px;
}

.section {
  padding: 4rem 0;
}

.section-sm {
  padding: 2rem 0;
}

.section-lg {
  padding: 6rem 0;
}

/* ============================================
   Typography
   ============================================ */
.heading-1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.heading-2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

.heading-3 {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
}

.text-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
}

.text-body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.text-muted {
  color: var(--gray-600);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .heading-1 {
    font-size: 2rem;
  }
  
  .heading-2 {
    font-size: 1.75rem;
  }
  
  .heading-3 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-lg {
    padding: 4rem 0;
  }
}

/* ============================================
   Tag Components (for interests/tags)
   ============================================ */
.tag {
  display: inline-block;
  border: 2px solid var(--gray-300);
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  background-color: white;
  cursor: pointer;
  transition: var(--transition);
  margin: 0.25rem;
}

.tag:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.tag.selected {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.tag.selected:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* ============================================
   Utilities
   ============================================ */
.text-center {
  text-align: center;
}

.mt-auto {
  margin-top: auto;
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  max-width: 90vw;
  border: 1px solid var(--gray-200);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.toast.show {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-left: 4px solid #10B981;
}

.toast.error {
  border-left: 4px solid #EF4444;
}

.toast.warning {
  border-left: 4px solid #F59E0B;
}

.toast.info {
  border-left: 4px solid var(--primary);
}

