/* ═══════════════════════════════════════════════════════════
   Life Craft Circle — Shared Design System
   lcc-design.css · Single source of truth for all pages
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

/* ─── TOKENS ──────────────────────────────────────────────── */
:root {
  --white:        #ffffff;
  --off-white:    #f8f9fc;
  --surface:      #f1f3f9;
  --border:       #e4e7f0;
  --border-soft:  #eef0f8;

  --text-1:       #0d0f1a;
  --text-2:       #3b3e52;
  --text-3:       #717490;

  --violet:       #6c63ff;
  --violet-d:     #5549e8;
  --violet-light: #ede9ff;
  --violet-mid:   #b3acff;
  --blue:         #3b82f6;
  --blue-light:   #e0eeff;
  --teal:         #0abfa3;
  --teal-light:   #d5f5ef;
  --coral:        #ff6b6b;
  --coral-light:  #ffeaea;
  --amber:        #f59e0b;
  --amber-light:  #fef3c7;
  --rose:         #ec4899;
  --green:        #10b981;
  --green-light:  #d1fae5;

  --grad:         linear-gradient(135deg, #6c63ff 0%, #3b82f6 55%, #0abfa3 100%);
  --grad-soft:    linear-gradient(135deg, #f3f0ff 0%, #eaf2ff 50%, #dff9f5 100%);

  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;

  --shadow-xs:    0 1px 6px rgba(108,99,255,.06);
  --shadow-sm:    0 4px 16px rgba(108,99,255,.08);
  --shadow-md:    0 12px 40px rgba(108,99,255,.12);
  --shadow-lg:    0 24px 72px rgba(108,99,255,.16);

  --nav-h:        64px;
  --pad:          clamp(24px, 5vw, 56px);
  --serif:        'Lora', Georgia, serif;
  --sans:         'Plus Jakarta Sans', system-ui, sans-serif;
  --ease:         200ms ease;
}

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--text-1);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol { margin-top: 0; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ─── NAV ─────────────────────────────────────────────────── */
.lcc-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center;
  padding: 0 var(--pad);
  transition: box-shadow .3s;
}
.lcc-nav.scrolled { box-shadow: var(--shadow-sm); }

.lcc-nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

/* ─── LOGO WORDMARK ───────────────────────────────────── */
/* Logo is an <img> SVG - no CSS needed for the mark itself */
/* Just ensure the wrapper link has no underline */
a:has(> img[src*="logo-wordmark"]),
a[href][style*="logo-wordmark"] {
  text-decoration: none !important;
}
/* Keep old classes inert */
.lcc-logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.lcc-logo-wrap { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.lcc-logo-mark, .lcc-logo-img { display: none; }
.lcc-logo-text, .lcc-wordmark { display: none; }

.lcc-nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.lcc-nav-links a {
  text-decoration: none; font-size: 13px; font-weight: 500;
  color: var(--text-2); padding: 8px 14px; border-radius: 8px;
  letter-spacing: .01em; transition: all .18s; white-space: nowrap;
}
.lcc-nav-links a:hover,
.lcc-nav-links a.active { color: var(--violet); background: var(--violet-light); }

.lcc-nav-right { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.lcc-btn-ghost-sm {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  padding: 9px 18px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; text-decoration: none; transition: all .18s;
  display: inline-flex; align-items: center;
}
.lcc-btn-ghost-sm:hover { border-color: var(--violet-mid); color: var(--violet); }

.lcc-btn-primary {
  font-size: 13px; font-weight: 600; color: white;
  padding: 10px 20px; border-radius: 10px;
  background: var(--grad); border: none; cursor: pointer;
  text-decoration: none; transition: all .2s;
  letter-spacing: .01em;
  box-shadow: 0 2px 12px rgba(108,99,255,.3);
  display: inline-flex; align-items: center; gap: 6px;
}
.lcc-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(108,99,255,.4); }

.lcc-btn-full {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: white;
  padding: 16px 30px; border-radius: 14px; width: 100%;
  background: var(--grad); border: none; cursor: pointer;
  text-decoration: none; transition: all .22s;
  box-shadow: 0 4px 24px rgba(108,99,255,.35);
  letter-spacing: .01em;
}
.lcc-btn-full:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(108,99,255,.45); }

.lcc-btn-outline-full {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--text-2);
  padding: 16px 30px; border-radius: 14px; width: 100%;
  background: transparent; border: 1.5px solid var(--border);
  cursor: pointer; text-decoration: none; transition: all .2s;
}
.lcc-btn-outline-full:hover { border-color: var(--violet-mid); color: var(--violet); background: var(--violet-light); }

/* Hamburger */
.lcc-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.lcc-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-1); border-radius: 2px; transition: all .25s;
}
.lcc-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,5px); }
.lcc-hamburger.open span:nth-child(2) { opacity: 0; }
.lcc-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-5px); }

.lcc-mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); left: 12px; right: 12px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  z-index: 999;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.lcc-mobile-menu.open { display: block; }
.lcc-mobile-menu a {
  display: flex; align-items: center; padding: 13px 14px;
  font-size: 15px; font-weight: 500; color: var(--text-2);
  text-decoration: none; border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border-soft); transition: all .15s;
}
.lcc-mobile-menu a:last-of-type { border-bottom: none; }
.lcc-mobile-menu a:hover { background: var(--violet-light); color: var(--violet); }
.lcc-mobile-ctas {
  display: flex; gap: 10px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.lcc-mobile-ctas a { flex: 1; border-bottom: none !important; text-align: center; justify-content: center; }

/* ─── PAGE WRAPPER ────────────────────────────────────────── */
.lcc-page { padding-top: var(--nav-h); }

/* ─── SECTION HELPERS ─────────────────────────────────────── */
.lcc-section { padding: 96px var(--pad); }
.lcc-section-alt { background: var(--off-white); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.lcc-inner { max-width: 1200px; margin: 0 auto; }
.lcc-inner-sm { max-width: 760px; margin: 0 auto; }

.lcc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--violet); margin-bottom: 16px;
}
.lcc-eyebrow::before {
  content: ''; display: inline-block;
  width: 16px; height: 2px; border-radius: 1px;
  background: var(--grad);
}

.lcc-h1 {
  font-family: var(--serif); font-size: clamp(38px, 5vw, 60px);
  font-weight: 400; line-height: 1.08; letter-spacing: -.03em;
  color: var(--text-1); margin-bottom: 20px;
}
.lcc-h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400; line-height: 1.12; letter-spacing: -.025em;
  color: var(--text-1); margin-bottom: 16px;
}
.lcc-h3 {
  font-family: var(--serif); font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 500; line-height: 1.3; color: var(--text-1); margin-bottom: 10px;
}
.lcc-h1 em, .lcc-h2 em, .lcc-h3 em { font-style: italic; }
.lcc-grad-text {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lcc-lead {
  font-size: 17px; font-weight: 400; line-height: 1.75;
  color: var(--text-2); max-width: 620px;
}
.lcc-body { font-size: 16px; line-height: 1.8; color: var(--text-2); }

/* ─── CARDS ───────────────────────────────────────────────── */
.lcc-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-xs); transition: all .2s;
}
.lcc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.lcc-card-sm {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
  box-shadow: var(--shadow-xs);
}

/* ─── PILL / BADGE ────────────────────────────────────────── */
.lcc-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--violet-light); border-radius: 100px;
  padding: 6px 14px; font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--violet);
}
.lcc-pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad); display: inline-block;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.lcc-footer {
  background: var(--white); border-top: 1px solid var(--border);
  padding: 64px var(--pad) 40px;
}
.lcc-footer-inner { max-width: 1200px; margin: 0 auto; }
.lcc-footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border-soft);
}
.lcc-footer-brand {}
.lcc-footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lcc-footer-desc { font-size: 14px; color: var(--text-3); line-height: 1.7; max-width: 280px; }
.lcc-footer-tagline { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--violet); margin-top: 12px; }
.lcc-footer-col-title { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-1); margin-bottom: 16px; }
.lcc-footer-links { list-style: none; }
.lcc-footer-links li { margin-bottom: 10px; }
.lcc-footer-links a { font-size: 14px; color: var(--text-3); text-decoration: none; transition: color .15s; }
.lcc-footer-links a:hover { color: var(--violet); }
.lcc-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; flex-wrap: wrap; gap: 12px;
}
.lcc-footer-copy { font-size: 13px; color: var(--text-3); }
.lcc-footer-legal { display: flex; gap: 20px; }
.lcc-footer-legal a { font-size: 13px; color: var(--text-3); text-decoration: none; }
.lcc-footer-legal a:hover { color: var(--violet); }

/* ─── SCROLL REVEAL ───────────────────────────────────────── */
.lcc-reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.lcc-reveal.visible { opacity: 1; transform: translateY(0); }
.lcc-d1 { transition-delay: .08s !important; }
.lcc-d2 { transition-delay: .16s !important; }
.lcc-d3 { transition-delay: .24s !important; }
.lcc-d4 { transition-delay: .32s !important; }

/* ─── ANIMATIONS ──────────────────────────────────────────── */
@keyframes lccFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lccFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lccGradShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes lccPulse {
  0%,100% { opacity: .4; transform: scale(1); }
  50%      { opacity: .7; transform: scale(1.06); }
}
@keyframes lccSpin { to { transform: rotate(360deg); } }

/* ─── FORM ELEMENTS ───────────────────────────────────────── */
.lcc-input {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 15px; color: var(--text-1); font-family: var(--sans);
  transition: border-color .18s, box-shadow .18s; outline: none;
}
.lcc-input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(108,99,255,.12); }
.lcc-input::placeholder { color: var(--text-3); }
.lcc-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-2); margin-bottom: 6px; letter-spacing: .02em;
}

/* ─── TOAST ───────────────────────────────────────────────── */
.lcc-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999; max-width: min(90vw, 480px);
  padding: 13px 22px; border-radius: 100px;
  background: rgba(255,255,255,.96); color: var(--text-1);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  font-size: 14px; font-weight: 600; text-align: center;
  pointer-events: none; opacity: 0; transition: opacity .3s ease;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.lcc-toast.show { opacity: 1; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .lcc-nav-links, .lcc-nav-right { display: none; }
  .lcc-hamburger { display: flex; }
  .lcc-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .lcc-section { padding: 72px var(--pad); }
  .lcc-footer-top { grid-template-columns: 1fr; }
  .lcc-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── ADDITIONAL MOBILE FIXES ── */
@media (max-width: 768px) {
  /* Dashboard */
  .dash-hero { padding: calc(var(--nav-h) + 24px) 16px 24px; }
  .dash-hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .dash-journey-card, .dash-insight-card { padding: 20px 22px; }
  .dash-section { padding: 32px 16px; }
  .dash-all-courses-grid { grid-template-columns: 1fr; gap: 12px; }
  .dash-metrics-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dash-library-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Course pages */
  .topbar { padding: 0 16px; }
  .tb-sidebar-col { min-width: 0; }
  .content-col { padding: 24px 16px; max-width: 100%; }
  .sidebar { width: 260px; }

  /* Auth */
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right-body { padding: 32px 24px; }
  .auth-right-bar { padding: 16px 24px; }
}

@media (max-width: 480px) {
  .dash-metrics-grid { grid-template-columns: 1fr; }
  .auth-row { grid-template-columns: 1fr; gap: 0; }
}
