/* ========================================
   KRAFT — Components
   ======================================== */

/* ---- Profile Card (Match / User) ---- */
.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
  transition: var(--transition);
}

.user-row:hover { background: transparent; }

.user-row-info {
  flex: 1;
  min-width: 0;
}

.user-row-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-row-sub {
  font-size: 12px;
  color: var(--gray-500);
}

/* ---- Match Card ---- */
.match-card {
  background: var(--navy);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-xl);
}

.match-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(11,19,32,0.6) 60%,
    rgba(11,19,32,0.95) 100%
  );
  z-index: 1;
}

.match-card-avatar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.match-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.match-card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.match-card-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.match-card-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
}

.match-card-defi {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
}

.match-card-defi-label {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.match-card-defi-text {
  font-size: 14px;
  color: var(--white);
  font-weight: 500;
}

.match-card-compat {
  margin-bottom: 16px;
}

.match-card-compat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  margin-bottom: 6px;
}

.match-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.match-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  flex-shrink: 0;
}

.match-action-btn.skip {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.match-action-btn.skip:hover { background: rgba(255,255,255,0.25); }

.match-action-btn.save {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  color: var(--yellow);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.match-action-btn.connect {
  width: 64px;
  height: 64px;
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(244,176,0,0.5);
}

.match-action-btn.connect:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(244,176,0,0.6);
}

/* ---- Event Card ---- */
.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

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

.event-card-date {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  width: 46px;
  flex-shrink: 0;
  text-align: center;
  padding: 6px 4px;
}

.event-card-day { font-size: 11px; font-weight: 600; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }
.event-card-num { font-size: 22px; font-weight: 800; line-height: 1; }
.event-card-mon { font-size: 11px; font-weight: 600; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }

.event-card-body { flex: 1; min-width: 0; }
.event-card-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.event-card-meta { font-size: 12px; color: var(--gray-500); margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.event-card-info { font-size: 12px; color: var(--gray-500); display: flex; align-items: center; gap: 12px; }

.event-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.type-cafe { background: #FFF3CC; color: #B8860B; }
.type-dejeuner { background: #FFE4D6; color: #C05621; }
.type-coworking { background: var(--teal-bg); color: var(--teal); }
.type-walk { background: #E8F5E9; color: #2E7D32; }
.type-apero { background: #F3E8FF; color: #7C3AED; }

/* ---- Availability Card ---- */
.avail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

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

.avail-card-info { flex: 1; min-width: 0; }
.avail-card-name { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.avail-card-meta { font-size: 12px; color: var(--gray-500); }
.avail-card-types { display: flex; gap: 4px; margin-top: 6px; }

.avail-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

/* ---- Conversation Row ---- */
.conv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--gray-100);
}

.conv-row:hover { background: var(--gray-50); }
.conv-row:last-child { border-bottom: none; }

.conv-row-avatar-wrap { position: relative; flex-shrink: 0; }

.conv-row-online {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: var(--radius-full);
  border: 2px solid var(--white);
}

.conv-row-body { flex: 1; min-width: 0; }
.conv-row-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.conv-row-name { font-size: 15px; font-weight: 700; color: var(--navy); }
.conv-row-time { font-size: 11px; color: var(--gray-400); }
.conv-row-msg { font-size: 13px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-row-msg.unread { color: var(--navy); font-weight: 600; }

.conv-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

.new-conv-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 0.1s;
  border-radius: var(--radius-sm);
}
.new-conv-user-row:last-child { border-bottom: none; }
.new-conv-user-row:active { background: var(--off-white); }

/* ---- Group Card ---- */
.group-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.group-card:hover { box-shadow: var(--shadow-md); }

.group-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.group-card-emoji {
  width: 40px;
  height: 40px;
  background: var(--navy-04);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.group-card-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.group-card-theme { font-size: 12px; color: var(--gray-500); }

.group-card-next {
  font-size: 12px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
}

.group-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- Filter Pills ---- */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  flex-shrink: 0;
}

.filter-pill:hover { border-color: var(--navy-20); }

.filter-pill.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.filter-pill.active-yellow {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}

/* ---- Check-in Card ---- */
.checkin-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.checkin-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.mood-options {
  display: flex;
  gap: 8px;
}

.mood-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  background: var(--off-white);
  border: 2px solid transparent;
}

.mood-option:hover { background: var(--gray-100); }

.mood-option.selected {
  background: var(--yellow-light);
  border-color: var(--yellow);
}

.mood-emoji { font-size: 26px; line-height: 1; }
.mood-label { font-size: 12px; font-weight: 600; color: var(--gray-600); text-align: center; }
.mood-option.selected .mood-label { color: var(--navy); }

/* ---- Challenge Chips ---- */
.challenge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.challenge-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.1px;
}

.challenge-chip:hover { border-color: var(--navy-20); background: var(--gray-50); }
.challenge-chip:active { transform: scale(0.95); }

.challenge-chip.selected {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(11,19,32,0.2);
}

/* ---- Map pins ---- */
.map-pin {
  position: absolute;
  cursor: pointer;
  transform: translate(-50%, -100%);
  transition: var(--transition);
  z-index: 10;
}

.map-pin:hover { z-index: 20; transform: translate(-50%, -100%) scale(1.15); }

.map-pin-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full) var(--radius-full) var(--radius-full) 2px;
  width: 38px;
  height: 38px;
  box-shadow: var(--shadow-md);
  font-size: 18px;
  position: relative;
}

.map-pin::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.map-pin.event .map-pin-inner { background: var(--navy); }
.map-pin.event::after { border-top: 7px solid var(--navy); }
.map-pin.cafe .map-pin-inner { background: var(--yellow); }
.map-pin.cafe::after { border-top: 7px solid var(--yellow); }
.map-pin.coworking .map-pin-inner { background: var(--teal); }
.map-pin.coworking::after { border-top: 7px solid var(--teal); }
.map-pin.user .map-pin-inner { background: var(--white); border: 2px solid var(--navy); }
.map-pin.user::after { border-top: 7px solid var(--navy); }

/* ---- Horizontal scroll cards ---- */
.scroll-x {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 16px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { flex-shrink: 0; }

/* ---- Number stepper ---- */
.stepper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--navy);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  transition: var(--transition);
}

.stepper-btn:hover { background: var(--gray-200); }

.stepper-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  min-width: 28px;
  text-align: center;
}

/* ---- Stats row ---- */
.stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid var(--gray-100);
}

.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}

/* ---- Section dividers ---- */
.section-divider {
  padding: 12px 16px;
  background: var(--off-white);
}

.section-divider-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-400);
}

/* ---- Type selector (create event) ---- */
.type-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.type-selector::-webkit-scrollbar { display: none; }

.type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  border: 2px solid var(--gray-200);
  flex-shrink: 0;
  min-width: 68px;
}

.type-option:hover { border-color: var(--navy-20); }

.type-option.selected {
  background: var(--navy);
  border-color: var(--navy);
}

.type-option-emoji { font-size: 24px; line-height: 1; }
.type-option-label { font-size: 12px; font-weight: 600; color: var(--gray-600); }
.type-option.selected .type-option-label { color: var(--white); }

/* ---- Message bubble ---- */
.msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.msg-bubble.sent {
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.msg-bubble.received {
  background: var(--white);
  color: var(--navy);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-xs);
}

.msg-time {
  font-size: 10px;
  color: var(--gray-400);
  margin-top: 4px;
}

.msg-time.sent-time { text-align: right; }

/* ---- Guided question pill ---- */
.guided-q {
  display: inline-block;
  padding: 8px 14px;
  background: var(--white);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
  white-space: nowrap;
}

.guided-q:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

/* ---- Weekly match mini card ---- */
.weekly-match {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.weekly-match:hover { transform: translateY(-1px); }

.weekly-match-info { flex: 1; }

.weekly-match-name { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.weekly-match-meta { font-size: 12px; color: rgba(255,255,255,0.6); }
.weekly-match-cta { font-size: 12px; color: var(--yellow); font-weight: 600; margin-top: 4px; }

/* ---- Profile settings list ---- */
.settings-list {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
}

.settings-item:last-child { border-bottom: none; }
.settings-item:hover { background: var(--gray-50); }

.settings-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.settings-item-body { flex: 1; }
.settings-item-label { font-size: 15px; font-weight: 500; color: var(--navy); }
.settings-item-sub { font-size: 12px; color: var(--gray-500); margin-top: 1px; }

.settings-item-arrow {
  color: var(--gray-300);
}

/* ---- Hero onboarding ---- */
.hero-value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hero-value-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
