/* assets/css/theme.css — "Crush My Beers" visual theme */

:root {
  --crush-pink: #ff2d6d;
  --crush-pink-2: #ff5f7e;
  --crush-pink-dark: #c9134f;
  --crush-bg-dark: #150910;
  --crush-bg-dark-2: #2a0f22;
  --crush-bg-light: #fdf1f4;
  --crush-card: #ffffff;
  --crush-text: #2b1420;
  --crush-muted: #8a6a75;
  --crush-border: #f3d9e1;
}

body.theme-dark {
  background: radial-gradient(ellipse at top, var(--crush-bg-dark-2) 0%, var(--crush-bg-dark) 60%);
  color: #fff;
  min-height: 100vh;
}

body.theme-light {
  background: var(--crush-bg-light);
  color: var(--crush-text);
  min-height: 100vh;
}

.crush-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.crush-brand .crush-logo {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--crush-pink), var(--crush-pink-dark));
  border-radius: 12px;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(255, 45, 109, 0.4);
}
.crush-brand .crush-name { font-weight: 800; letter-spacing: 0.5px; line-height: 1.1; font-size: 0.95rem; }
.crush-brand .crush-tagline { font-size: 0.75rem; color: var(--crush-pink-2); font-weight: 600; }

.crush-hero-title {
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 14px;
}
.crush-hero-title .crush-accent {
  background: linear-gradient(90deg, var(--crush-pink), #ff8fab);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.crush-hero-sub {
  color: #c9a9b6;
  margin-bottom: 28px;
}

.crush-step-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}
.crush-step-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 45, 109, 0.18);
  color: var(--crush-pink-2);
  display: flex; align-items: center; justify-content: center;
}
.crush-step-icon svg { width: 20px; height: 20px; }
.crush-step-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; color: var(--crush-pink-2); }
.crush-step-title { font-weight: 700; margin: 2px 0 4px; }
.crush-step-desc { font-size: 0.85rem; color: #c9a9b6; margin: 0; }

.btn-crush {
  background: linear-gradient(90deg, var(--crush-pink), var(--crush-pink-2));
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 20px;
  box-shadow: 0 8px 24px rgba(255, 45, 109, 0.35);
}
.btn-crush:hover, .btn-crush:focus { color: #fff; filter: brightness(1.05); }
.btn-crush-outline {
  background: transparent;
  border: 1.5px solid var(--crush-border);
  color: var(--crush-text);
  font-weight: 600;
  border-radius: 999px;
}
.link-muted { color: var(--crush-pink-2); text-decoration: underline; font-size: 0.9rem; }

/* Cards on light pages */
.crush-card {
  background: var(--crush-card);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 2px 14px rgba(43, 20, 32, 0.06);
  border: 1px solid var(--crush-border);
}

/* Pill toggle groups (gender / status pickers) */
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-group.stack-3 .pill-option { flex: 1 1 30%; }
.pill-option {
  border: 1.5px solid var(--crush-border);
  background: #fff;
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  flex: 1 1 auto;
}
.pill-option input { display: none; }
.pill-option.active {
  background: linear-gradient(90deg, var(--crush-pink), var(--crush-pink-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 45, 109, 0.3);
}

.crush-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crush-pink), var(--crush-pink-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(255, 45, 109, 0.35);
}

/* Numeric keypad (Envoyer) */
.crush-keypad-display {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--crush-muted);
  margin-bottom: 14px;
}
.crush-keypad-display .filled { color: var(--crush-text); }
.crush-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.crush-key {
  border: none;
  background: #f6e3e9;
  color: var(--crush-text);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 14px;
  padding: 16px 0;
}
.crush-key:active { background: var(--crush-border); }
.crush-key.key-empty { background: transparent; }

.badge-chip {
  display: inline-block;
  padding: 4px 12px;
  background: #f6e3e9;
  color: var(--crush-pink-dark);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Bottom nav restyle */
.bottom-nav {
  background: var(--crush-card);
  border-top: 1px solid var(--crush-border);
  padding: 6px 0 4px;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--crush-muted);
  font-weight: 600;
  font-size: 0.7rem;
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--crush-pink); }

.crush-list-item {
  background: var(--crush-card);
  border: 1px solid var(--crush-border);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.icon-btn {
  border: none;
  background: #f6e3e9;
  color: var(--crush-pink-dark);
  border-radius: 50%;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.active { background: var(--crush-pink); color: #fff; }

.icon-link {
  color: var(--crush-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Conversation list: unread state */
.conversation-unread {
  border-color: var(--crush-pink);
  box-shadow: 0 0 0 1px var(--crush-pink);
}
.avatar-unread {
  box-shadow: 0 0 0 3px rgba(255, 45, 109, 0.25);
}
.unread-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--crush-pink);
  flex-shrink: 0;
}

/* Conversation thread layout */
.thread-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--crush-bg-light);
  padding: 10px 0;
  margin: 0 -1rem 4px;
  padding-left: 1rem;
  padding-right: 1rem;
}
.thread-messages {
  overflow-y: auto;
  max-height: calc(100vh - 300px);
  padding-bottom: 8px;
}
.thread-compose {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 72px;
  background: var(--crush-card);
  border-top: 1px solid var(--crush-border);
  padding: 10px 1rem;
  z-index: 4;
}
.flag-btn {
  border: none;
  background: transparent;
  color: var(--crush-muted);
  padding: 4px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.flag-btn:hover { color: var(--crush-pink-dark); }

/* Admin: participant report-priority highlighting */
.participant-warning { border-color: #ffc107; background: #fff9ec; }
.participant-danger { border-color: #dc3545; background: #fdeceb; }

/* Admin: compact labelled action buttons (participant/message rows) */
[data-open-participant] { cursor: pointer; }
.participant-action-btn {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Pastilles de la navigation : rond à l'angle supérieur droit de l'icône (messages non lus, nombre de matchs) */
.bottom-nav a { position: relative; }
.nav-badge {
  position: absolute; top: 0; left: calc(50% + 3px);
  min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: #e5334b; color: #fff;
  font-size: 0.75rem; font-weight: 800; line-height: 1; letter-spacing: 0;
  box-shadow: 0 0 0 2px var(--crush-card);
  pointer-events: none;
}
.bottom-nav a[data-view="matches"] .nav-badge { background: #ffb703; color: #2b1420; }
.nav-badge.d-none { display: none !important; }
