/* CupidBounty — Design System */

:root {
  /* Colors - Romantic but modern */
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-300: #fda4af;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  
  --gold-100: #fef3c7;
  --gold-300: #fcd34d;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  --green-500: #22c55e;
  --green-600: #16a34a;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(244, 63, 94, 0.3);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--rose-50) 0%, var(--slate-50) 100%);
  min-height: 100vh;
  color: var(--slate-800);
  line-height: 1.6;
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-8);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.brand-icon {
  font-size: 1.75rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-tabs {
  display: flex;
  gap: var(--space-2);
  background: var(--slate-100);
  padding: var(--space-1);
  border-radius: var(--radius-full);
}

.nav-tab {
  padding: var(--space-2) var(--space-5);
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-500);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--slate-700);
}

.nav-tab.active {
  background: white;
  color: var(--rose-600);
  box-shadow: var(--shadow-sm);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-600));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-name {
  font-weight: 500;
  color: var(--slate-700);
}

/* View Management */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-12) var(--space-8);
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-8);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.2;
  color: var(--slate-800);
}

.hero .highlight {
  background: linear-gradient(135deg, var(--rose-400), var(--rose-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  color: var(--slate-500);
  margin-top: var(--space-3);
  max-width: 400px;
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rose-600);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* Bounty Creator */
.bounty-creator {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.creator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}

.creator-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.creator-step {
  font-size: 0.875rem;
  color: var(--slate-400);
  background: var(--slate-100);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

.form-section {
  margin-bottom: var(--space-8);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: var(--space-4);
}

/* Bounty Slider */
.bounty-slider {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.slider {
  flex: 1;
  -webkit-appearance: none;
  height: 8px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-600));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.bounty-display {
  display: flex;
  align-items: baseline;
  background: var(--rose-50);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  border: 2px solid var(--rose-200);
}

.currency {
  font-size: 1.25rem;
  color: var(--rose-500);
  font-weight: 500;
}

.amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rose-600);
}

.bounty-breakdown {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--slate-50);
  border-radius: var(--radius-md);
}

.breakdown-item {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
}

.milestone {
  color: var(--slate-500);
}

.payout {
  font-weight: 600;
  color: var(--green-600);
}

/* Preference Grid */
.preference-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.pref-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--slate-50);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pref-card:hover {
  border-color: var(--rose-300);
  background: var(--rose-50);
}

.pref-card.selected {
  border-color: var(--rose-500);
  background: var(--rose-50);
  box-shadow: var(--shadow-glow);
}

.pref-icon {
  font-size: 1.75rem;
}

.pref-label {
  font-weight: 500;
  color: var(--slate-700);
}

/* Dealbreaker Tags */
.dealbreaker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  padding: var(--space-2) var(--space-4);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--rose-50);
  border-color: var(--rose-300);
}

.tag.active {
  background: var(--rose-100);
  border-color: var(--rose-400);
  color: var(--rose-700);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--rose-600), var(--rose-700));
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--slate-100);
  color: var(--slate-700);
}

.btn-secondary:hover {
  background: var(--slate-200);
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: 1.0625rem;
  width: 100%;
  margin-top: var(--space-4);
}

.btn-small {
  padding: var(--space-2) var(--space-3);
  font-size: 0.8125rem;
}

.btn-arrow {
  font-size: 1.25rem;
}

/* Matchmaker View */
.matchmaker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.matchmaker-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
}

.filter-bar {
  display: flex;
  gap: var(--space-2);
}

.filter-chip {
  padding: var(--space-2) var(--space-4);
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover, .filter-chip.active {
  background: var(--rose-50);
  border-color: var(--rose-400);
  color: var(--rose-600);
}

/* Bounty Grid */
.bounty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

.bounty-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
  position: relative;
}

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

.bounty-card.featured {
  border: 2px solid var(--gold-300);
  background: linear-gradient(135deg, white, var(--gold-100));
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: var(--space-4);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.bounty-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.bounty-amount-badge {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 700;
}

.bounty-time {
  font-size: 0.75rem;
  color: var(--slate-400);
}

.bounty-profile {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.profile-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-600));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.profile-info h3 {
  font-size: 1.125rem;
  color: var(--slate-800);
}

.profile-info p {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.bounty-details {
  margin-bottom: var(--space-4);
}

.bounty-details p {
  font-size: 0.9375rem;
  color: var(--slate-600);
  font-style: italic;
}

.bounty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.mini-tag {
  font-size: 0.75rem;
  padding: var(--space-1) var(--space-2);
  background: var(--slate-100);
  border-radius: var(--radius-sm);
  color: var(--slate-600);
}

.bounty-actions {
  display: flex;
  gap: var(--space-3);
}

.bounty-actions .btn {
  flex: 1;
}

/* Dashboard View */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}

.dashboard-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
}

.role-toggle {
  display: flex;
  background: var(--slate-100);
  padding: var(--space-1);
  border-radius: var(--radius-full);
}

.role-btn {
  padding: var(--space-2) var(--space-5);
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-500);
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-btn.active {
  background: white;
  color: var(--rose-600);
  box-shadow: var(--shadow-sm);
}

/* Earnings Overview */
.earnings-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.earnings-card {
  background: white;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.earnings-card.total {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  color: white;
}

.earnings-card.total .earnings-label,
.earnings-card.total .earnings-detail {
  color: rgba(255,255,255,0.8);
}

.earnings-label {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.earnings-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
}

.earnings-detail {
  font-size: 0.8125rem;
  color: var(--slate-400);
}

/* Active Matches */
.active-matches {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-8);
}

.active-matches h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.match-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-5);
  background: var(--slate-50);
  border-radius: var(--radius-lg);
}

.match-people {
  display: flex;
  align-items: center;
}

.match-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-600));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.match-connector {
  font-size: 1.25rem;
  margin: 0 var(--space-2);
}

.match-info h4 {
  font-size: 1rem;
  color: var(--slate-800);
}

.match-info p {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.match-milestone {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.milestone-progress {
  display: flex;
  align-items: center;
}

.milestone-dot {
  width: 12px;
  height: 12px;
  background: var(--slate-300);
  border-radius: 50%;
}

.milestone-dot.completed {
  background: var(--green-500);
}

.milestone-line {
  width: 32px;
  height: 3px;
  background: var(--slate-200);
}

.milestone-line.completed {
  background: var(--green-500);
}

.milestone-labels {
  display: flex;
  gap: var(--space-4);
  font-size: 0.6875rem;
  color: var(--slate-400);
}

.match-payout {
  text-align: right;
}

.earned {
  display: block;
  font-weight: 600;
  color: var(--green-600);
}

.remaining {
  display: block;
  font-size: 0.8125rem;
  color: var(--slate-400);
}

/* Reputation Section */
.reputation-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.reputation-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.rep-score {
  text-align: center;
}

.score-value {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-label {
  display: block;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.stars {
  color: var(--gold-500);
  font-size: 1.25rem;
}

.rep-stats {
  display: flex;
  gap: var(--space-8);
}

.rep-stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--slate-800);
}

.stat-desc {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.rep-badge {
  margin-left: auto;
}

.badge {
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(135deg, var(--gold-100), var(--gold-300));
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--gold-600);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--slate-200);
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--slate-400);
  cursor: pointer;
}

.modal-body {
  padding: var(--space-6);
}

.contact-search {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.search-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--rose-400);
}

.ai-suggestions h4 {
  font-size: 0.9375rem;
  color: var(--slate-600);
  margin-bottom: var(--space-4);
}

.suggestion-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--slate-50);
  border-radius: var(--radius-md);
}

.suggestion-avatar {
  width: 40px;
  height: 40px;
  background: var(--slate-300);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
}

.suggestion-info {
  flex: 1;
}

.suggestion-info strong {
  display: block;
  font-size: 0.9375rem;
}

.suggestion-info span {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.compatibility {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-600);
  background: var(--green-500);
  background: rgba(34, 197, 94, 0.1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: var(--space-8);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .nav-tabs {
    display: none;
  }
  
  .preference-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .earnings-overview {
    grid-template-columns: 1fr;
  }
  
  .match-card {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: center;
  }
  
  .match-people {
    justify-content: center;
  }
  
  .reputation-card {
    flex-direction: column;
    text-align: center;
  }
  
  .rep-badge {
    margin-left: 0;
  }
}
