/* Love Connection - Main App Styles */
:root {
  --primary: #c44569;
  --primary-light: #ff6b6b;
  --primary-dark: #8b0000;
  --secondary: #f8f4ff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.message-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 18px;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.5;
}
.message-bubble.sent {
  background: linear-gradient(135deg, #ff6b6b, #c44569);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.message-bubble.received {
  background: #f3f4f6;
  color: #1f2937;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}
.chat-time {
  font-size: 11px;
  color: #9ca3af;
  text-align: right;
  margin-bottom: 8px;
}
.chat-time.received-time { text-align: left; }

.compatibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
}
.compat-high { background: #dcfce7; color: #15803d; }
.compat-med { background: #fef3c7; color: #b45309; }
.compat-low { background: #fee2e2; color: #b91c1c; }

.profile-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}
.profile-photo-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.plan-card {
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  padding: 28px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.plan-card:hover { border-color: #c44569; transform: translateY(-4px); }
.plan-card.featured {
  border-color: #c44569;
  box-shadow: 0 8px 30px rgba(196,69,105,0.2);
}
.plan-badge {
  position: absolute;
  top: 0; right: 0;
  background: linear-gradient(135deg, #ff6b6b, #c44569);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-bottom-left-radius: 12px;
}

.notification {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 9999;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }
.notification.success { background: #10b981; color: white; }
.notification.error { background: #ef4444; color: white; }
.notification.info { background: #3b82f6; color: white; }
.notification.warning { background: #f59e0b; color: white; }

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-box {
  background: white;
  border-radius: 24px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.swipe-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  background: white;
  transition: transform 0.2s;
}
.swipe-card:hover { transform: scale(1.01); }

.stat-pill {
  display: flex; align-items: center; gap: 8px;
  background: #fef2f2; border-radius: 12px; padding: 8px 14px;
  font-size: 13px; color: #c44569; font-weight: 500;
}

.onboarding-step { display: none; }
.onboarding-step.active { display: block; animation: fadeIn 0.3s ease; }

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #c44569 0%, #c44569 var(--val, 60%), #e5e7eb var(--val, 60%), #e5e7eb 100%);
  outline: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #c44569;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(196,69,105,0.4);
}

input[type="radio"].sr-only { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-btn {
  display: inline-block; padding: 8px 16px; border-radius: 99px;
  border: 2px solid #e5e7eb; cursor: pointer; font-size: 13px;
  transition: all 0.2s; color: #6b7280;
}
input[type="radio"]:checked + .radio-btn {
  border-color: #c44569; background: #fef2f2; color: #c44569; font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0 !important; }
}
