
/**
 * LovMatch — thème premium mobile-first (Tinder + WhatsApp)
 */

:root {
  --lm-primary: #ff4d6d;
  --lm-primary-dark: #e03e5c;
  --lm-dark: #1a1a2e;
  --lm-card: #ffffff;
  --lm-chat-bg: #e5ddd5;
  --lm-chat-out: #dcf8c6;
  --lm-chat-in: #ffffff;
}

.bg-app {
  background: linear-gradient(160deg, #f8f9fa 0%, #eef1f5 50%, #f5f0f3 100%);
  min-height: 100vh;
}

.bg-gradient-nav {
  background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lm-primary) 0%, var(--lm-primary-dark) 100%);
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.card-elevated {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.08);
  overflow: hidden;
}

.hero-landing {
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #e94560 100%);
  color: #fff;
  padding: 2.5rem 1.5rem;
}

/* Swipe stack */
.swipe-stage {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  min-height: 520px;
}

.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  background: #fff;
  transition: transform 0.35s ease, opacity 0.35s ease;
  will-change: transform;
}

.swipe-card img.cover {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.swipe-card .meta {
  padding: 1rem 1.25rem 1.25rem;
}

.swipe-actions .btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 1.5rem;
}

/* WhatsApp-like chat */
.chat-shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
  min-height: 480px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  background: #fff;
}

@media (min-width: 992px) {
  .chat-shell {
    flex-direction: row;
    height: calc(100vh - 120px);
  }
}

.chat-sidebar {
  border-bottom: 1px solid #dee2e6;
  max-height: 40vh;
  overflow-y: auto;
  background: #f0f2f5;
}

@media (min-width: 992px) {
  .chat-sidebar {
    width: 340px;
    max-height: none;
    border-bottom: none;
    border-right: 1px solid #dee2e6;
  }
}

.chat-sidebar .list-group-item {
  border: none;
  border-bottom: 1px solid #e9ecef;
  cursor: pointer;
}

.chat-sidebar .list-group-item.active {
  background: #d9fdd3;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--lm-chat-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8c8c8' fill-opacity='0.12'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.chat-header-bar {
  background: #075e54;
  color: #fff;
  padding: 0.65rem 1rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.bubble {
  max-width: 78%;
  padding: 0.45rem 0.65rem 0.35rem;
  border-radius: 0.5rem;
  margin-bottom: 0.35rem;
  position: relative;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
  word-break: break-word;
}

.bubble.in {
  background: var(--lm-chat-in);
  margin-right: auto;
  border-top-left-radius: 0;
}

.bubble.out {
  background: var(--lm-chat-out);
  margin-left: auto;
  border-top-right-radius: 0;
}

.bubble .time {
  font-size: 0.68rem;
  opacity: 0.65;
  text-align: right;
  margin-top: 0.15rem;
}

.chat-input-bar {
  background: #f0f2f5;
  padding: 0.5rem;
  gap: 0.35rem;
}

.premium-badge {
  background: linear-gradient(90deg, #ffd700, #ffb700);
  color: #1a1a2e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.avatar-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #dee2e6;
}

.fade-in {
  animation: lmFade 0.45s ease both;
}

@keyframes lmFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}