/* SeshUp App — matches landing page theme */

:root {
  --bg: #09090f;
  --surface: #111118;
  --surface-2: #1a1a24;
  --accent: #7EF9D0;
  --accent-dim: rgba(126, 249, 208, 0.15);
  --accent-2: #F9C27E;
  --text: #F0EFF4;
  --text-muted: #8B8A99;
  --border: rgba(240, 239, 244, 0.08);
  --danger: #ff6b6b;
  --success: #7EF9D0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  line-height: 1.1;
  font-weight: 800;
}

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.nav-user {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.main-content {
  padding: 100px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.section-center { display: flex; flex-direction: column; gap: 32px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.card-enter {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 12px;
  color: var(--text);
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* User ID form */
.user-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.user-form input {
  width: 100%;
  max-width: 300px;
  padding: 14px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  text-align: center;
}

.user-form input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Profile form */
.profile-form { display: flex; flex-direction: column; gap: 24px; }

.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

.field-row { display: grid; grid-template-columns: 1fr 140px; gap: 16px; }

select, input[type="text"], input[type="number"] {
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
}

select:focus, input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

select option { background: var(--surface-2); }

/* Buttons */
.btn-primary {
  padding: 14px 32px;
  background: var(--accent);
  color: #09090f;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-accent {
  padding: 14px 32px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-accent:hover { background: var(--accent); color: #09090f; }
.btn-accent:disabled { opacity: 0.5; cursor: not-allowed; }

/* Matches section */
.matches-section { display: flex; flex-direction: column; gap: 20px; }

.matches-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.matches-header h2 { font-size: 1.5rem; }

.match-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}

.match-card:hover { border-color: rgba(126, 249, 208, 0.3); }

.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.match-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.match-score {
  font-size: 0.8rem;
  color: var(--accent-2);
  background: rgba(249, 194, 126, 0.12);
  padding: 2px 10px;
  border-radius: 20px;
}

.match-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.tag-strain { background: rgba(126, 249, 208, 0.1); color: var(--accent); }
.tag-method { background: rgba(249, 194, 126, 0.1); color: var(--accent-2); }
.tag-vibe { background: rgba(180, 130, 255, 0.1); color: #c49fff; }

.match-city { font-size: 0.85rem; color: var(--text-muted); }

.btn-invite {
  margin-top: 8px;
  padding: 10px 20px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-invite:hover { background: var(--accent); color: #09090f; }
.btn-invite:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-invite-done { background: var(--accent-dim); color: var(--accent); }

/* Messages */
.msg { font-size: 0.9rem; padding: 10px 16px; border-radius: 10px; margin-top: 12px; }
.msg-success { background: var(--accent-dim); color: var(--accent); }
.msg-error { background: rgba(255, 107, 107, 0.1); color: var(--danger); }

/* Ready Now panel */
.ready-panel { padding: 28px 32px; }

.ready-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ready-info { display: flex; align-items: center; gap: 16px; }

.ready-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.3s;
}

.ready-dot.dot-active {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.1); }
}

.ready-label {
  font-size: 1.1rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  margin-bottom: 4px;
}

.ready-sub { font-size: 0.85rem; color: var(--text-muted); }

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 28px;
  transition: background 0.3s;
}

.toggle-track::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
}

.toggle-switch input:checked + .toggle-track {
  background: rgba(74, 222, 128, 0.2);
  border-color: #4ade80;
}

.toggle-switch input:checked + .toggle-track::before {
  transform: translateX(24px);
  background: #4ade80;
}

/* Window row */
.window-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.window-label { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }

.window-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.window-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.window-btn.active, .window-btn:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

/* Ready Now badge on match cards */
.badge-ready {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.match-card-ready {
  border-color: rgba(74, 222, 128, 0.25) !important;
}
.no-matches { color: var(--text-muted); text-align: center; padding: 40px; }

/* Ad styles */
.ad-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(139, 138, 153, 0.2);
  color: var(--text-muted);
  margin-bottom: 8px;
}
.ad-badge-small {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(139, 138, 153, 0.2);
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Banner ad */
.ad-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s;
  min-height: 60px;
}
.ad-banner:hover { border-color: var(--accent); }
.ad-banner-content { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 16px; }
.ad-banner-headline { font-size: 0.88rem; color: var(--text); font-weight: 500; }
.ad-banner-cta { font-size: 0.8rem; color: var(--accent); white-space: nowrap; font-weight: 600; }

/* Featured ad card */
.featured-ad-card {
  background: linear-gradient(135deg, var(--surface), rgba(126, 249, 208, 0.04));
  border: 1px solid rgba(126, 249, 208, 0.2);
  border-radius: 16px;
  padding: 24px;
}
.featured-ad-inner { display: flex; flex-direction: column; gap: 16px; }
.featured-ad-brand { display: flex; align-items: center; gap: 14px; }
.featured-ad-company { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; }
.featured-ad-type { font-size: 0.78rem; color: var(--accent); }
.featured-ad-body { display: flex; flex-direction: column; gap: 10px; }
.featured-ad-headline { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; }
.featured-ad-text { font-size: 0.88rem; color: var(--text-muted); }

/* Sponsored card in match feed */
.sponsored-card {
  border: 1px dashed rgba(139, 138, 153, 0.3) !important;
  opacity: 0.92;
}
.sponsored-card:hover { opacity: 1; }

/* Profile photo */
.profile-avatar-wrap { position: relative; display: inline-block; }
.profile-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--accent);
  background: var(--surface-2);
}
.profile-avatar-lg {
  width: 140px; height: 140px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--accent);
  background: var(--surface-2);
}
.avatar-placeholder {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--surface-2);
  border: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 2rem; color: var(--accent);
}
.avatar-placeholder-lg {
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--surface-2);
  border: 4px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 2.5rem; color: var(--accent);
}
.upload-btn-overlay {
  position: absolute; bottom: 0; right: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.8rem; color: #09090f;
  transition: transform 0.2s;
}
.upload-btn-overlay:hover { transform: scale(1.1); }

/* Match card photo */
.match-card-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.match-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border);
  background: var(--surface-2); flex-shrink: 0;
}
.match-avatar-placeholder {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}

/* Bio snippet */
.match-bio {
  font-size: 0.83rem; color: var(--text-muted);
  line-height: 1.4; margin: 2px 0;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* Smoking methods tags */
.method-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-method-multi {
  font-size: 0.72rem; padding: 3px 10px;
  border-radius: 20px; background: rgba(249, 194, 126, 0.1);
  color: var(--accent-2);
}

/* Profile page */
.profile-page-header {
  display: flex; align-items: flex-start; gap: 28px;
  padding: 32px 40px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px;
}
.profile-info { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.profile-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.75rem; }
.profile-meta { font-size: 0.88rem; color: var(--text-muted); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.profile-bio-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 28px;
}
.profile-bio-text { font-size: 0.95rem; color: var(--text); line-height: 1.6; white-space: pre-wrap; }
.profile-section-title { font-size: 1rem; font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 14px; }
.profile-tags-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.edit-profile-btn { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; }

/* Filters bar */
.filters-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 18px;
}
.filters-bar select, .filters-bar input[type="text"] {
  padding: 8px 12px; font-size: 0.85rem; min-width: 120px;
}
.filter-check-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted); cursor: pointer;
  padding: 8px 4px;
}
.filter-check-row input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }

/* Profile edit modal */
.profile-edit-modal {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.profile-edit-modal.open { display: flex; }
.modal-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px; max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.modal-title { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }

/* Multi-select checkbox list */
.method-check-list { display: flex; flex-direction: column; gap: 10px; }
.method-check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.method-check-item:hover { border-color: var(--accent); }
.method-check-item.selected { border-color: var(--accent); background: var(--accent-dim); }
.method-check-item input { accent-color: var(--accent); width: 18px; height: 18px; }
.method-check-item label { font-size: 0.9rem; cursor: pointer; flex: 1; }

.hidden { display: none !important; }

@media (max-width: 600px) {
  .navbar { padding: 16px 24px; }
  .card { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .match-cards { grid-template-columns: 1fr; }
  .matches-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .main-content { padding: 90px 16px 60px; }
  .profile-page-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-meta { justify-content: center; }
  .filters-bar { flex-direction: column; }
  .filters-bar select, .filters-bar input[type="text"] { min-width: 100%; }
}