/* ============================================================================
   LingoLove — Website Design System
   Mirrors the Flutter app's palette (lib/core/theme/app_colors.dart) so
   brand colors never drift between the mobile app and the website.
   Built on top of Bootstrap 5 (CDN) — these are overrides/additions only,
   never a full re-implementation of Bootstrap's own utilities.
   ============================================================================ */

:root {
  --lg-primary: #ff4b6e;
  --lg-primary-dark: #e23a5a;
  --lg-primary-light: #ff8098;
  --lg-secondary: #2fb8c6;
  --lg-secondary-dark: #1e9394;
  --lg-premium: #ffc53d;
  --lg-success: #2ecc71;
  --lg-error: #e64a4a;
  --lg-info: #3b9ae1;
  --lg-text-primary: #1b1b23;
  --lg-text-secondary: #6b6b76;
  --lg-text-tertiary: #a3a3ad;
  --lg-surface: #f7f7fa;
  --lg-surface-alt: #f0f1f5;
  --lg-border: #e4e5ea;

  --bs-primary: var(--lg-primary);
  --bs-primary-rgb: 255, 75, 110;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  color: var(--lg-text-primary);
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6, .lg-heading-font {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn-lg-primary {
  background-color: var(--lg-primary);
  border-color: var(--lg-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
}

.btn-lg-primary:hover, .btn-lg-primary:focus {
  background-color: var(--lg-primary-dark);
  border-color: var(--lg-primary-dark);
  color: #fff;
}

.btn-lg-outline {
  border: 1.5px solid var(--lg-border);
  color: var(--lg-text-primary);
  border-radius: 12px;
  font-weight: 600;
  background: #fff;
}

.btn-lg-outline:hover {
  border-color: var(--lg-primary);
  color: var(--lg-primary);
}

.btn-lg-premium {
  background: linear-gradient(135deg, var(--lg-premium), #ffb020);
  border: none;
  color: #1b1b23;
  font-weight: 700;
  border-radius: 12px;
}

/* ---------- Navbar ---------- */

.lg-navbar {
  background: #fff;
  border-bottom: 1px solid var(--lg-border);
}

.lg-navbar .navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--lg-primary) !important;
  font-size: 1.35rem;
}

.lg-navbar .nav-link {
  color: var(--lg-text-secondary);
  font-weight: 500;
}

.lg-navbar .nav-link.active {
  color: var(--lg-primary);
  font-weight: 600;
}

/* ---------- Guest mode banner ---------- */

.lg-guest-banner {
  background: var(--lg-surface);
  border-bottom: 1px solid var(--lg-border);
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--lg-text-secondary);
}

/* ---------- Discover cards ---------- */

.lg-discover-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  aspect-ratio: 3 / 4;
  background: var(--lg-surface-alt);
}

.lg-discover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lg-discover-card .lg-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.82) 100%);
}

.lg-discover-card .lg-card-info {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  color: #fff;
}

.lg-discover-card .lg-card-info h3 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.lg-lock-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.lg-language-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0.25rem 0.25rem 0;
}

.lg-action-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.15s ease;
}

.lg-action-btn:hover {
  transform: scale(1.08);
}

.lg-action-btn.lg-action-like { color: var(--lg-primary); width: 72px; height: 72px; font-size: 1.9rem; }
.lg-action-btn.lg-action-skip { color: var(--lg-error); }
.lg-action-btn.lg-action-super { color: var(--lg-info); width: 56px; height: 56px; font-size: 1.3rem; }
.lg-action-btn.lg-action-fav { color: var(--lg-premium); width: 56px; height: 56px; font-size: 1.3rem; }

/* ---------- Pricing / comparison table ---------- */

.lg-plan-card {
  border: 1.5px solid var(--lg-border);
  border-radius: 16px;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  position: relative;
}

.lg-plan-card.selected {
  border-color: var(--lg-primary);
  border-width: 2px;
  background: rgba(255, 75, 110, 0.05);
}

.lg-plan-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--lg-premium);
  color: #1b1b23;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.lg-comparison-table th, .lg-comparison-table td {
  vertical-align: middle;
  text-align: center;
}

.lg-comparison-table th:first-child, .lg-comparison-table td:first-child {
  text-align: left;
}

.lg-comparison-table .lg-col-premium {
  color: var(--lg-premium);
  font-weight: 700;
}

/* ---------- Conversion popup ---------- */

.lg-conversion-modal .modal-content {
  border-radius: 20px;
  border: none;
}

.lg-conversion-modal .lg-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 576px) {
  .lg-discover-card { aspect-ratio: 3 / 4.2; }
  .lg-action-btn { width: 52px; height: 52px; font-size: 1.2rem; }
  .lg-action-btn.lg-action-like { width: 60px; height: 60px; font-size: 1.6rem; }
}
