/* Modern Dating App - Hinge/Bumble Inspired Design */
/* Warm, muted palette with modern typography */

:root {
  /* Color Palette - Warm & Muted */
  --bg: #FAF7F2;              /* Oat background */
  --surface: #FFFFFF;          /* Cards */
  --surface-2: #F3EEE7;        /* Alt blocks */
  --text-900: #2B2B2B;         /* Ink - main text */
  --text-600: #6B6F76;         /* Slate - secondary text */
  --text-400: #9CA3AF;         /* Light gray */
  --border: #E6E0D9;           /* Warm divider */
  
  /* Brand Colors - Honey theme */
  --brand-500: #FFB84D;        /* Honey primary */
  --brand-600: #E9A427;        /* Honey hover */
  --brand-100: #FFF4DB;        /* Honey tint */
  
  /* Accent Colors */
  --accent-coral-500: #FF7A59; /* Secondary/warm danger */
  --accent-coral-100: #FFE9E5; /* Coral tint */
  --accent-sage-500: #5BAE7D;  /* Success/verify */
  --accent-sage-100: #E6F4EC;  /* Sage tint */
  
  /* Utility */
  --link-600: #3E4A59;         /* Muted links */
  --shadow: 0 8px 24px rgba(16, 8, 4, 0.08);
  --shadow-soft: 0 4px 12px rgba(16, 8, 4, 0.06);
  --gradient-overlay: linear-gradient(180deg, rgba(43,43,43,0) 55%, rgba(43,43,43,0.65) 100%);
  
  /* Typography Scale */
  --font-heading: "DM Sans", Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --text-xs: 0.8125rem;    /* 13px */
  --text-sm: 0.9375rem;    /* 15px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.5rem;       /* 24px */
  --text-2xl: 2rem;        /* 32px */
  
  /* Spacing */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  
  /* Border Radius */
  --radius-sm: 0.5rem;    /* 8px */
  --radius: 0.75rem;      /* 12px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;  /* Pills */
}

/* Base Typography */
html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-900);
  background: var(--bg);
  line-height: 1.6;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-900);
}

h1 { font-size: var(--text-2xl); font-weight: 700; }
h2 { font-size: var(--text-xl); font-weight: 600; }
h3 { font-size: var(--text-lg); font-weight: 600; }

/* Links */
a {
  color: var(--link-600);
  text-decoration: none;
  transition: all 150ms ease-out;
}

a:hover {
  color: var(--text-900);
  text-decoration: underline;
}

/* Button System */
.btn-primary {
  background: var(--brand-500);
  color: #12100E;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-weight: 600;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-soft);
  transition: all 150ms ease-out;
}

.btn-primary:hover {
  background: var(--brand-600);
  color: #12100E;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-900);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-weight: 500;
  transition: all 150ms ease-out;
}

.btn-secondary:hover {
  border-color: var(--text-600);
  color: var(--text-900);
}

.btn-ghost {
  background: transparent;
  color: var(--text-900);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  transition: all 150ms ease-out;
}

.btn-ghost:hover {
  background: #F7F2EA;
  color: var(--text-900);
}

.btn-danger {
  background: var(--accent-coral-500);
  color: white;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-weight: 500;
  transition: all 150ms ease-out;
}

.btn-danger:hover {
  filter: brightness(0.95);
  color: white;
}

/* Card System */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: all 200ms ease-out;
}

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

/* Profile Cards */
.profile-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 200ms ease-out;
}

.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16, 8, 4, 0.12);
}

.profile-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: var(--gradient-overlay);
  pointer-events: none;
}

.profile-info {
  padding: 14px 16px;
}

.profile-info h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: 4px;
}

.profile-bio {
  color: var(--text-600);
  font-size: var(--text-xs);
  line-height: 1.4;
  margin: 0;
}

/* Verified Badge */
.verified-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-sage-100);
  color: var(--accent-sage-500);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  font-size: var(--text-xs);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Avatar System */
.profile-avatar,
.contact-avatar {
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.avatar-placeholder {
  background: var(--surface-2);
  color: var(--text-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Chat System */
.chat-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.chat-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4);
  color: var(--text-900);
}

.chat-messages {
  background: #FEFCF9;
  padding: var(--space-4);
}

.message-bubble {
  border-radius: 18px;
  padding: 10px 14px;
  font-size: var(--text-sm);
  line-height: 1.4;
}

.message.sent .message-bubble {
  background: rgba(255,184,77,0.18);
  color: var(--text-900);
}

.message.received .message-bubble {
  background: #F6F1EA;
  color: var(--text-900);
}

.message-time {
  color: var(--text-600);
  font-size: var(--text-xs);
  opacity: 0.8;
}

.message-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4);
}

/* Action Buttons */
.action-buttons .btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 200ms ease-out;
}

.like-btn {
  background: var(--accent-coral-500);
  border: none;
  color: white;
}

.like-btn:hover {
  background: var(--accent-coral-500);
  filter: brightness(0.95);
  transform: scale(1.05);
  color: white;
}

.dislike-btn {
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-600);
}

.dislike-btn:hover {
  background: var(--surface-2);
  border-color: var(--text-600);
  color: var(--text-900);
  transform: scale(1.05);
}

/* Forms */
.form-control {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-900);
  font-size: var(--text-sm);
  padding: 10px 12px;
  transition: all 150ms ease-out;
}

.form-control:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(255,184,77,0.15);
  background: var(--surface);
}

/* Age Badge */
.age-badge {
  background: var(--brand-100);
  color: var(--brand-600);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
}

/* Online Status */
.online-status {
  background: var(--accent-sage-500);
  border: 2px solid var(--surface);
  border-radius: var(--radius-full);
}

/* Remove text decoration and outlines globally */
a, button {
  text-decoration: none !important;
}

a:hover, a:focus, a:active {
  text-decoration: none !important;
  outline: none !important;
}

button:focus, button:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Landing Page */
.landing-hero {
  background: linear-gradient(135deg, #FDF6E3 0%, #F7EFD7 100%);
  min-height: 100vh;
}

.feature-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-8);
}

/* Match Badge */
.match-badge {
  background: var(--accent-coral-500);
  color: white;
  border-radius: var(--radius-full);
}

.new-badge {
  background: var(--accent-sage-500);
  color: white;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-size: 10px;
  margin-left: 5px;
}

/* Spacing Utilities */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --text-2xl: 1.75rem;
    --text-xl: 1.25rem;
  }
  
  .action-buttons .btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .profile-image {
    aspect-ratio: 4/5;
    min-height: 300px;
  }
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.hero-icon {
  animation: pulse 2s infinite;
  color: rgba(255,184,77,0.3);
}

/* Custom Scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--surface-2);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--text-400);
}

/* Alert System */
.alert {
  border: none;
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
}

.alert-success {
  background: var(--accent-sage-100);
  color: var(--accent-sage-500);
}

.alert-danger {
  background: var(--accent-coral-100);
  color: var(--accent-coral-500);
}

.alert-info {
  background: var(--brand-100);
  color: var(--brand-600);
}

/* Loading & States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Transitions */
.btn,
.card,
.form-control,
a {
  transition: all 150ms ease-out;
}

/* Focus styles for accessibility */
.btn:focus-visible,
.form-control:focus,
a:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

/* Inline links should have underlines for accessibility */
p a,
.profile-bio a,
.contact-message a {
  text-decoration: underline;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== PROFILE DROPDOWN MENU STYLES ========== */

/* Header styles */
.dating-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.logo-link {
  color: var(--accent-coral-500);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-decoration: none;
  transition: color 150ms ease-out;
}

.logo-link:hover {
  color: var(--text-900);
  text-decoration: none;
}

/* Profile menu toggle */
.dropdown-wrapper {
  position: relative;
}

.profile-menu-toggle {
  width: 40px;
  height: 40px;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-600);
  transition: all 150ms ease-out;
}

.profile-menu-toggle:hover {
  background: var(--surface);
  border-color: var(--text-600);
  color: var(--text-900);
}

/* Profile dropdown */
.profile-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-width: 280px;
  z-index: 1000;
  display: none;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: var(--space-2);
}

.profile-dropdown.show {
  display: block;
}

/* Credits section with gold background */
.credits-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: #12100E;
  margin: 0;
}

.credits-display {
  font-size: var(--text-sm);
  color: #12100E;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.btn-buy-credits {
  background: rgba(18,16,14,0.15);
  color: #12100E;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 600;
  transition: all 150ms ease-out;
  border: 1px solid rgba(18,16,14,0.2);
}

.btn-buy-credits:hover {
  background: rgba(18,16,14,0.25);
  color: #12100E;
  text-decoration: none;
}

/* Profile user link - clickable area */
.profile-user-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: var(--space-4);
  transition: background 150ms ease-out;
}

.profile-user-link:hover {
  background: var(--surface-2);
  color: inherit;
  text-decoration: none;
}

.profile-user-section {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.profile-link-text {
  font-size: 14px;
  color: var(--text-600);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.profile-link-text i {
  font-size: var(--text-xs);
}

/* Avatar in dropdown menu */
.profile-dropdown .profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--border);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-600);
}

.avatar-placeholder-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-600);
  border: 2px solid var(--border);
}

.profile-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.profile-details .profile-name, 
.user-name {
  font-size: var(--text-lg);
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  margin-bottom: var(--space-1);
  color: var(--text-900);
}

/* Dropdown items */
.dropdown-item {
  display: block;
  padding: var(--space-3) var(--space-6);
  color: var(--text-900);
  text-decoration: none;
  transition: all 150ms ease-out;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: var(--text-sm);
}

.dropdown-item:hover {
  background: var(--surface-2);
  color: var(--text-900);
}

.dropdown-item i {
  width: 20px;
  margin-right: var(--space-3);
  color: var(--text-600);
}

.dropdown-item.logout {
  color: var(--accent-coral-500);
}

.dropdown-item.logout:hover {
  background: var(--accent-coral-100);
  color: var(--accent-coral-500);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* Disabled button styles */
.btn-action.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--text-400);
  color: var(--text-600);
}