/* ============================================================
   SDS Solutions IT Onboarding Portal
   components.css — Reusable UI components
   ============================================================ */

/* ══════════════════════════════════════
   PAGE TRANSITIONS
══════════════════════════════════════ */
.page {
  display: none;
}

.page.active {
  display: block;
  animation: pageEnter 0.25s ease forwards;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   WELCOME HERO
══════════════════════════════════════ */
.welcome-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.welcome-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(26,86,232,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.welcome-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(79,125,245,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.welcome-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.welcome-icon-wrap svg { width: 26px; height: 26px; }

.welcome-greeting {
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.welcome-title {
  font-family: 'Syne', sans-serif;
  font-size: var(--font-4xl);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
}

.welcome-body {
  font-size: var(--font-md);
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 540px;
}

.welcome-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.welcome-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.welcome-meta-item strong { color: var(--text); font-weight: 600; }
.welcome-meta-item svg { flex-shrink: 0; color: var(--text-light); }

/* ══════════════════════════════════════
   PART OVERVIEW CARDS
══════════════════════════════════════ */
.part-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.part-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  cursor: pointer;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  box-shadow: var(--shadow-xs);
}

.part-card:hover {
  border-color: var(--brand-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.part-card-number {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 8px;
}

.part-card-title {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.part-card-count {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.part-mini-bar {
  height: 3px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.part-mini-fill {
  height: 100%;
  background: var(--brand);
  border-radius: var(--r-full);
  transition: width 0.5s ease;
}

/* ══════════════════════════════════════
   STEP PAGE HEADER
══════════════════════════════════════ */
.step-header {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.step-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.eyebrow-tag {
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}

.eyebrow-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}

.eyebrow-part {
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.step-title {
  font-family: 'Syne', sans-serif;
  font-size: var(--font-3xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.28;
}

.step-desc {
  font-size: var(--font-base);
  color: var(--text-muted);
  line-height: 1.68;
  max-width: 620px;
}

/* ══════════════════════════════════════
   CARD
══════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.card--brand {
  border-color: var(--brand-border);
  background: var(--brand-soft);
}

.card--success {
  border-color: var(--success-border);
  background: var(--success-soft);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-body {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   BADGES
══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 9px;
  border-radius: var(--r-full);
  line-height: 1.6;
}

.badge--required { background: var(--danger-soft);  color: var(--danger);  border: 1px solid var(--danger-border); }
.badge--optional { background: var(--warn-soft);    color: var(--warn);    border: 1px solid var(--warn-border); }
.badge--info     { background: var(--brand-soft);   color: var(--brand);   border: 1px solid var(--brand-border); }
.badge--success  { background: var(--success-soft); color: var(--success); border: 1px solid var(--success-border); }

/* ══════════════════════════════════════
   CALLOUTS
══════════════════════════════════════ */
.callout {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 16px;
}

.callout strong { font-weight: 600; }
.callout em     { font-style: italic; }

.callout--warn    { border-color: var(--warn);    background: var(--warn-soft);    color: var(--warn-text); }
.callout--success { border-color: var(--success); background: var(--success-soft); color: var(--success-text); }
.callout--danger  { border-color: var(--danger);  background: var(--danger-soft);  color: var(--danger-text); }
.callout--info    { border-color: var(--info);    background: var(--info-soft);    color: var(--info); }

/* ══════════════════════════════════════
   STEP LIST ROWS
══════════════════════════════════════ */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  transition: border-color var(--t-fast), background var(--t-fast);
}

.step-row:hover {
  border-color: var(--brand-border);
  background: var(--brand-soft);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast);
}

.step-row:hover .step-num { background: var(--brand); color: #fff; }

.step-info { flex: 1; min-width: 0; }

.step-name {
  font-size: var(--font-base);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.step-detail {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.step-detail strong { font-weight: 600; color: var(--text); }

.step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* ══════════════════════════════════════
   LINK PILLS
══════════════════════════════════════ */
.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-xs);
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  background: var(--brand-soft);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}

.link-pill:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  text-decoration: none;
}

/* ══════════════════════════════════════
   DOWNLOAD CARDS
══════════════════════════════════════ */
.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.dl-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
}

.dl-card-icon { font-size: 22px; margin-bottom: 8px; }

.dl-card-title {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.dl-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--t-base);
  text-decoration: none;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

/* Primary */
.btn--primary {
  background: var(--brand);
  color: #fff;
  padding: 11px 24px;
  font-size: var(--font-base);
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,86,232,0.38);
  color: #fff;
}

/* Dark */
.btn--dark {
  background: var(--text);
  color: #fff;
  padding: 9px 18px;
  font-size: var(--font-sm);
}

.btn--dark:hover { opacity: 0.85; color: #fff; }

/* Brand */
.btn--brand-outline {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
  padding: 9px 18px;
  font-size: var(--font-sm);
}

.btn--brand-outline:hover {
  background: var(--brand);
  color: #fff;
}

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Mark Done */
.mark-done-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  padding: 11px 24px;
  border-radius: var(--r-full);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(26,86,232,0.25);
  transition: all var(--t-base);
}

.mark-done-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,86,232,0.32);
}

.mark-done-btn.done {
  background: var(--success);
  box-shadow: 0 2px 8px rgba(5,150,105,0.30);
  cursor: default;
  transform: none;
}

.mark-done-btn svg { width: 15px; height: 15px; }

/* Start Button */
.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--r-full);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--font-base);
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(26,86,232,0.30);
  transition: all var(--t-base);
}

.start-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(26,86,232,0.40);
  color: #fff;
  text-decoration: none;
}

.start-btn svg { width: 16px; height: 16px; }

/* Action row */
.action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding-top: 6px;
  flex-wrap: wrap;
}

.action-skip {
  font-size: var(--font-sm);
  color: var(--text-light);
  cursor: pointer;
}

.action-skip:hover { color: var(--text-muted); text-decoration: underline; }

/* ══════════════════════════════════════
   APP PICKER (MFA apps grid)
══════════════════════════════════════ */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.app-card {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px 12px;
  text-align: center;
  background: var(--surface-alt);
  transition: border-color var(--t-fast);
}

.app-card:hover { border-color: var(--brand-border); }

.app-icon { font-size: 24px; margin-bottom: 6px; }

.app-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.app-note { font-size: var(--font-xs); color: var(--text-muted); }

/* ══════════════════════════════════════
   DIVIDER
══════════════════════════════════════ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ══════════════════════════════════════
   COMPLETION BANNER
══════════════════════════════════════ */
.completion-banner {
  display: none;
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-top: 24px;
  text-align: center;
  animation: pageEnter 0.4s ease forwards;
}

.completion-banner.show { display: block; }

.completion-icon { font-size: 40px; margin-bottom: 14px; }

.completion-title {
  font-family: 'Syne', sans-serif;
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--success);
  margin-bottom: 10px;
}

.completion-body {
  font-size: var(--font-base);
  color: var(--success-text);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   TWO-COL GRID
══════════════════════════════════════ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 860px) {
  .part-cards      { grid-template-columns: 1fr; }
  .dl-grid         { grid-template-columns: 1fr; }
  .two-col         { grid-template-columns: 1fr; }
  .app-grid        { grid-template-columns: 1fr 1fr; }
  .welcome-title   { font-size: var(--font-2xl); }
  .step-title      { font-size: var(--font-2xl); }
  .welcome-hero    { padding: 28px; }
}

@media (max-width: 480px) {
  .app-grid         { grid-template-columns: 1fr; }
  .card             { padding: 16px 18px; }
  .welcome-hero     { padding: 22px; }
  .step-title       { font-size: var(--font-xl); }
}
