/* NEUROLAB campus skin for the Space theme. Linked from the head block of scripts/configure-skin.php when
   MOODLE_THEME=space. Colours, fonts, sidebar, footer and login come from theme_space settings
   (scripts/configure-space.php); this file only adds what the settings cannot express: pill buttons,
   lesson layout, dashboard banner, course cards and the AI tutor touch points. */
:root {
  --nl-brand: #ff5a00;
  --nl-brand-dark: #e04e00;
  --nl-brand-soft: #fff1e8;
  --nl-ink: #111418;
  --nl-muted: #5a606c;
  --nl-line: #e6e8ec;
  --nl-surface: #fff;
  --nl-radius: 16px;
  --nl-shadow: 0 14px 34px -16px rgba(17, 20, 24, .28);
}

/* ---- Buttons: pill shaped, orange primary. ---- */
.btn { border-radius: 999px; font-weight: 500; transition: transform .2s, box-shadow .2s, background-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-primary:focus { background-color: var(--nl-brand); border-color: var(--nl-brand); color: #fff; }
.btn-primary:hover, .btn-primary:active, .btn-primary:not(:disabled):not(.disabled):active {
  background-color: var(--nl-brand-dark); border-color: var(--nl-brand-dark); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(255, 90, 0, .8);
}
.btn-outline-primary { color: var(--nl-brand-dark); border-color: var(--nl-brand); }
.btn-outline-primary:hover { background-color: var(--nl-brand); color: #fff; }

/* ---- Progress: brand orange everywhere. ---- */
.progress, .rui-progress { height: .5rem; border-radius: 99px; background-color: #eceef2; }
.progress-bar, .progress-bar-info, .rui-progress-bar { background-color: var(--nl-brand); background-image: none; border-radius: 99px; }
.course-index .completion-progress .progress-bar, .courseindex .progress-bar { background-color: var(--nl-brand); }

/* ---- Cards (course overview, catalogue, dashboard). ---- */
.card { border-radius: var(--nl-radius); border-color: var(--nl-line); }
.card.course-card, .dashboard-card, .rui-course-card, .course-card {
  border-radius: var(--nl-radius); overflow: hidden; border: 1px solid var(--nl-line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card.course-card:hover, .dashboard-card:hover, .rui-course-card:hover, .course-card:hover {
  transform: translateY(-5px); box-shadow: var(--nl-shadow); border-color: transparent;
}

/* ---- Block titles on the dashboard. ---- */
.block .card-title { font-family: 'Exo 2', sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--nl-ink); margin-bottom: 1rem; }

/* ---- Dashboard banner (theme_space dashboardblock1). ---- */
.nl-dash-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin: 0 0 1.5rem; padding: 1.75rem 2rem; border-radius: 20px; color: #fff;
  background: linear-gradient(120deg, #111418 0%, #1b2029 55%, #3a1d0c 100%);
  position: relative; overflow: hidden;
}
.nl-dash-hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 0, .55) 0%, rgba(255, 90, 0, 0) 70%); pointer-events: none;
}
.nl-dash-hero > * { position: relative; z-index: 1; }
.nl-dash-hero h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin: .35rem 0 .5rem; max-width: 46ch; }
.nl-dash-hero p { color: #cbd0d8; margin: 0; max-width: 56ch; }
.nl-dash-kicker {
  display: inline-block; padding: .2em .9em; border-radius: 99px; background: rgba(255, 90, 0, .18); color: #ff9a5e;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}

/* ---- Lesson pages (generated by scripts/seed-courses.php). ---- */
.nl-lesson { font-size: 1.05rem; line-height: 1.7; max-width: 760px; }
.nl-lesson h3 { font-size: 1.25rem; margin: 1.2rem 0 .6rem; }
.nl-lesson ul { padding-left: 1.2rem; }
.nl-lesson li { margin-bottom: .35rem; }
.nl-lesson-meta { color: var(--nl-muted); font-size: .9rem; letter-spacing: .02em; margin-bottom: .5rem; }
.nl-callout { border-radius: 14px; padding: 1rem 1.25rem; margin: 1.1rem 0; border-left: 4px solid var(--nl-brand); background: var(--nl-brand-soft); }
.nl-callout strong { display: block; font-family: 'Exo 2', sans-serif; margin-bottom: .2rem; }
.nl-callout p { margin: 0; }
.nl-callout-ai { background: #111418; color: #e6e8ec; border-left-color: #ff9a5e; }
.nl-callout-ai strong { color: #ff9a5e; }

/* ---- Small polish. ---- */
.page-link { border-radius: 99px; }
.page-item.active .page-link { background-color: var(--nl-ink); border-color: var(--nl-ink); }
.badge-primary, .bg-primary { background-color: var(--nl-brand) !important; }
.nav-tabs .nav-link.active, .nav-pills .nav-link.active { color: var(--nl-brand-dark); }
.nav-pills .nav-link.active { background-color: var(--nl-brand-soft); }
.form-control:focus, .custom-select:focus, .form-select:focus {
  border-color: var(--nl-brand); box-shadow: 0 0 0 .2rem rgba(255, 90, 0, .15);
}

/* ---- Footer contact line and social icons: readable on the dark footer. ---- */
.rui-footer--contact, .rui-footer--contact li, .rui-footer--contact a, .rui-footer--social a { color: #cbd0d8; }
.rui-footer--contact a:hover, .rui-footer--social a:hover { color: var(--nl-brand); }
