/* LinguPilot — Netflix-like dark UI on top of Bootstrap 5 */

:root {
  --lp-bg: #141414;
  --lp-surface: #1b1b1b;
  --lp-surface-2: #222222;
  --lp-text: #ffffff;
  --lp-muted: rgba(255, 255, 255, 0.72);
  --lp-muted-2: rgba(255, 255, 255, 0.55);
  --lp-navy: #0b1e3c;
  --lp-aqua: #16c7b4;
  --lp-border: rgba(255, 255, 255, 0.10);
  --lp-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

html, body {
  height: 100%;
}

body.lp-body {
  background: radial-gradient(1200px 420px at 25% -10%, rgba(11, 30, 60, 0.65), transparent 60%),
              radial-gradient(900px 400px at 90% 0%, rgba(22, 199, 180, 0.18), transparent 55%),
              var(--lp-bg);
  color: #ffffff;
}

.lp-navbar {
  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lp-border);
}

.lp-navbar .navbar-brand,
.lp-navbar .nav-link {
  color: var(--lp-text);
}

.lp-navbar .nav-link {
  color: var(--lp-muted);
  font-weight: 500;
}

.lp-navbar .nav-link:hover {
  color: var(--lp-text);
}

.lp-navbar .nav-link.active {
  color: var(--lp-text);
}

.lp-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
}

.lp-navbar .navbar-toggler-icon {
  filter: invert(1);
}

.lp-brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.lp-hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-hero .lp-kicker {
  color: #4ca0ca;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.lp-hero-card {
  background: linear-gradient(180deg, rgba(27, 27, 27, 0.92), rgba(27, 27, 27, 0.76));
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  box-shadow: var(--lp-shadow);
}

.lp-surface {
  background: rgba(27, 27, 27, 0.78);
  border: 1px solid var(--lp-border);
  border-radius: 18px;
}

.lp-btn-primary {
  --bs-btn-bg: #168bc7;
  --bs-btn-border-color: #168bc7;
  --bs-btn-hover-bg: #12b6a6;
  --bs-btn-hover-border-color: #12b6a6;
  --bs-btn-active-bg: #0fa293;
  --bs-btn-active-border-color: #0fa293;
  --bs-btn-color: #0b1e3c;
  --bs-btn-hover-color: #0b1e3c;
  --bs-btn-active-color: #0b1e3c;
  font-weight: 700;
  border-radius: 12px;
}

.lp-link {
  color: #4ca0ca;
  text-decoration: none;
}
.lp-link:hover { color: #36e5d5; }

.lp-row-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}
.lp-row-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}
.lp-row-header p {
  margin: 0;
  color: var(--lp-muted-2);
  font-size: 0.9rem;
}

.lp-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  padding-right: 4px;
}

.lp-carousel::-webkit-scrollbar { height: 10px; }
.lp-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}
.lp-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.lp-card {
  position: relative;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: var(--lp-surface);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}

.lp-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.lp-card-cover {
  height: 124px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.lp-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.78));
}

.lp-card-body {
  padding: 12px 12px 14px;
}

.lp-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffc107;
}

.lp-card-meta {
  margin-top: 6px;
  color: var(--lp-muted-2);
  font-size: 0.82rem;
}

.lp-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.lp-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lp-navy), var(--lp-aqua));
}

.lp-lesson-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--lp-muted);
  font-size: 0.85rem;
}

.lp-panel-title {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.lp-form-control,
.lp-form-control:focus {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--lp-text);
  box-shadow: none;
}

.lp-form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.lp-score-ring {
  width: 104px;
  height: 104px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--lp-aqua) 0deg, rgba(255, 255, 255, 0.12) 0deg);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.lp-score-ring strong {
  font-size: 1.6rem;
}

.lp-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 20, 0.75);
}

@media (max-width: 575.98px) {
  .lp-carousel {
    grid-auto-columns: minmax(160px, 200px);
  }
  .lp-card-cover { height: 110px; }
}

