/* ============================================================
   The eLearning Designer's Academy — component stylesheet
   Loaded after tokens.css. Colors, radii, spacing, shadows,
   font families and the type scale live in tokens.json; this
   file holds only what tokens.json does not declare.
   ============================================================ */

/* Varela Round is served from Google Fonts (no local file uploaded). */
@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

:root {
  /* Signature offset shadow — a solid colored block sitting behind a card.
     Use: box-shadow: var(--offset-amber);  (swap the color var)         */
  --offset-amber:  6px 6px 0 0 var(--orange);
  --offset-green:  6px 6px 0 0 var(--green);
  --offset-pink:   6px 6px 0 0 var(--pink);
  --offset-blue:   6px 6px 0 0 var(--blue);

  /* ---------- MOTION ---------- */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --dur: .18s;
}

/* ============================================================
   SEMANTIC TYPE PRESETS — what the type styles in tokens.json
   (family, size, line height, weight, tracking) leave out
   ============================================================ */
.eda-display { color: var(--ink); text-wrap: balance; }
.eda-h1      { color: var(--ink); text-wrap: balance; }
.eda-h2      { color: var(--ink); text-wrap: balance; }
.eda-h3      { color: var(--ink); }
.eda-lead    { color: var(--ink-soft); }
.eda-body    { color: var(--ink-soft); }
.eda-small   { color: var(--ink-faint); }
.eda-eyebrow { text-transform: uppercase; color: var(--blue); }
.eda-hand    { color: var(--blue); }

/* Blue accent word inside a heading */
.eda-accent { color: var(--blue); }

/* Hand-drawn underline under a word/phrase (uses real brand doodle).
   Wrap the word: <span class="eda-underline">Together</span>
   Requires the asset path to resolve relative to your file. */
.eda-underline { position: relative; display: inline-block; }
.eda-underline::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.32em;
  height: .34em; background: var(--doodle-underline, none) center/100% 100% no-repeat;
  pointer-events: none;
}

/* ============================================================
   COMPONENTS — values as in the brand's preview cards
   ============================================================ */

/* Button */
.eda-btn {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; border-radius: var(--r-pill);
  padding: 13px 26px; transition: all var(--dur) var(--ease);
}
.eda-btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 16px rgba(34,150,207,.32); }
.eda-btn--primary:hover { background: var(--blue-hover); }
.eda-btn--secondary { background: var(--red); color: var(--white); box-shadow: 0 6px 16px rgba(238,72,48,.28); }
.eda-btn--secondary:hover { background: var(--red-hover); }
.eda-btn--ghost { background: var(--white); color: var(--blue); border: 2px solid var(--blue); padding: 11px 24px; }
.eda-btn--text { background: none; color: var(--blue); }

/* Badge (solid pill) and Chip (tinted) */
.eda-badge {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--white);
  padding: 7px 15px; border-radius: var(--r-pill); display: inline-block;
}
.eda-chip {
  font-weight: 600; font-size: 13px; padding: 7px 15px; border-radius: var(--r-pill);
  display: inline-flex; gap: 6px; align-items: center;
}

/* Card */
.eda-card { background: var(--white); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-md); }
.eda-card--amber { box-shadow: var(--offset-amber); }
.eda-card--green { box-shadow: var(--offset-green); }
.eda-card--pink  { box-shadow: var(--offset-pink); }
.eda-card--blue  { box-shadow: var(--offset-blue); }
.eda-card__icon {
  width: 52px; height: 52px; border-radius: var(--r-pill); background: var(--tint-amber);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px;
}
.eda-card__title { font-family: var(--font-display); font-weight: 700; margin: 0 0 6px; color: var(--ink); font-size: 19px; }
.eda-card__text  { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

/* Text field and search */
.eda-label { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 6px; display: block; }
.eda-field {
  width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--white); transition: border var(--dur);
}
.eda-field::placeholder { color: var(--ink-faint); }
.eda-field:focus, .eda-field.is-focused { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(34,150,207,.15); }
.eda-search {
  display: flex; align-items: center; gap: 9px; border: 1.5px solid var(--line);
  border-radius: var(--r-pill); padding: 11px 18px; color: var(--ink-faint); font-size: 14px;
}

/* Lesson list */
.eda-lessons__group { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 16px; margin: 0 0 10px; }
.eda-lesson { display: flex; align-items: center; gap: 11px; padding: 7px 0; font-size: 15px; color: var(--ink-soft); }
.eda-lesson__done {
  width: 22px; height: 22px; border-radius: var(--r-pill); background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 13px; flex: 0 0 auto;
}
.eda-lesson__todo { width: 22px; height: 22px; border-radius: var(--r-pill); border: 2px solid var(--line); flex: 0 0 auto; box-sizing: border-box; }

/* Sidebar nav */
.eda-nav__section { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 8px 10px; }
.eda-nav { display: flex; flex-direction: column; gap: 2px; }
.eda-nav__item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--r-sm); font-size: 15px; color: var(--ink); cursor: pointer; }
.eda-nav__item:hover { background: var(--surface-3); }
.eda-nav__item.is-active { background: var(--tint-cyan); color: var(--blue-hover); font-weight: 600; }
.eda-nav__icon { font-size: 17px; width: 20px; text-align: center; }

/* Rings motif */
.eda-rings { display: flex; align-items: center; justify-content: center; }
.eda-ring { width: 96px; height: 96px; border-radius: var(--r-pill); border: 18px solid; margin-left: -32px; box-sizing: content-box; }
.eda-ring:first-child { margin-left: 0; }
