/* GracePL Learn — learn.css */
/* Extends style.css with tutorial-specific styles */

/* Progress bar */
.learn-progress-bar {
  margin-top: 1.5rem;
  background: #f3f4f6;
  border-radius: var(--radius);
  padding: .8rem 1.1rem;
}
.progress-label { font-size: .78rem; font-weight: 600; color: var(--text-muted); margin-bottom: .4rem; }
.progress-track {
  height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), #a855f7);
  border-radius: 999px; transition: width .5s ease;
}
.progress-text { font-size: .78rem; color: var(--text-muted); margin-top: .35rem; }

/* Lesson badge */
.lesson-badge {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  color: #fff; font-size: .72rem; font-weight: 700;
  padding: .15rem .55rem; border-radius: 999px;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Complete button */
.lesson-complete-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.5rem; padding: .5rem 1.1rem;
  background: #ecfdf5; color: #065f46;
  border: 1.5px solid #10b981; border-radius: var(--radius);
  font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: all .15s; user-select: none;
}
.lesson-complete-btn:hover { background: #d1fae5; }
.lesson-complete-btn.done {
  background: #065f46; color: #fff; border-color: #065f46;
}

/* Lesson done state */
.learn-lesson.done > h2::after {
  content: " ✅";
  font-size: .75rem;
}

/* Try-it box */
.try-it-box {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin: 1rem 0 1.5rem;
}
.try-it-title {
  background: #f9fafb; padding: .45rem .9rem;
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.try-it-output {
  background: #fafafa; padding: .8rem 1rem;
  font-family: "Fira Code","Cascadia Code","Consolas",monospace;
  font-size: .85rem; color: #374151;
  border: none; overflow-x: auto;
  margin: 0;
}

/* callout-success */
.callout-success { border-color: #10b981; background: #ecfdf5; color: #065f46; }

/* Search highlight */
mark.search-match {
  background: #fef3c7; color: #92400e; border-radius: 2px; padding: 0 .1rem;
}

/* learn-main spacing */
.learn-main { max-width: 820px; }

/* Sidebar learn-search */
#learn-search {
  width: 100%; padding: .45rem .8rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); color: #fff; font-size: .85rem;
  outline: none; transition: border-color .2s;
}
#learn-search::placeholder { color: #52525b; }
#learn-search:focus { border-color: var(--accent-light); }

/* No results */
.no-results {
  text-align: center; padding: 2rem 1rem;
  color: var(--text-muted); font-size: .9rem;
}
