/* CourseWatch Help Center & Role Manuals Styles */
:root {
  --primary: #1b5e20;
  --primary-hover: #2e7d32;
  --primary-light: #e8f5e9;
  --accent: #4caf50;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --border-color: #e2e8f0;
  --text-main: #1e293b;
  --text: #1e293b;
  --text-muted: #64748b;
  --danger: #dc2626;
  --warning: #ea580c;
  --info: #0284c7;
  --success: #16a34a;
  --radius: 10px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* ==========================================================================
   CourseWatch Help Center & Role Manuals
   ========================================================================== */
.help-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem 1rem;
}

.help-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.help-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.help-breadcrumb a {
  color: var(--primary, #2e7d32);
  text-decoration: none;
}

.help-breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #cbd5e1;
}

.help-main-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main, #1e293b);
  margin: 0 0 0.4rem 0;
  line-height: 1.25;
}

.help-subtitle {
  color: var(--text-muted, #64748b);
  font-size: 1rem;
  margin: 0;
  max-width: 800px;
}

.help-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-print-manual {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Rolkiezer Tabs / Pills */
.help-role-nav {
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.help-role-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  min-width: max-content;
}

.help-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--text-main, #1e293b);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.help-role-pill:hover {
  border-color: var(--primary, #2e7d32);
  color: var(--primary, #2e7d32);
  transform: translateY(-1px);
}

.help-role-pill.active {
  background: var(--primary, #2e7d32);
  color: #ffffff;
  border-color: var(--primary, #2e7d32);
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.25);
}

.help-pill-badge {
  font-size: 0.7rem;
  background: #ffecb3;
  color: #b78103;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.help-role-pill.active .help-pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Manual Card Container */
.help-manual-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
}

/* Hero Header */
.help-manual-hero {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  padding: 1.75rem 2rem;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.help-hero-icon {
  font-size: 3.5rem;
  line-height: 1;
  background: #ffffff;
  border: 1px solid #c8e6c9;
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.help-hero-body {
  flex: 1;
}

.help-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.help-badge-role {
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #c8e6c9;
}

.help-badge-active-user {
  background: #fff8e1;
  color: #b78103;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #ffe082;
}

.help-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a !important;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.01em;
}

.help-hero-tagline {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1b5e20 !important;
  margin: 0 0 0.75rem 0;
}

.help-hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #1e293b !important;
  font-weight: 450;
  margin: 0;
  max-width: 900px;
}

/* Sections */
.help-section {
  margin-bottom: 2.5rem;
}

.help-section-heading {
  margin-bottom: 1.25rem;
}

.help-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  margin: 0 0 0.25rem 0;
}

.help-section-subtitle {
  color: var(--text-muted, #64748b);
  font-size: 0.95rem;
  margin: 0;
}

/* Workflows Grid */
.help-workflows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.help-workflow-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.help-workflow-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.help-workflow-card-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.help-workflow-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  margin: 0 0 0.35rem 0;
}

.help-workflow-summary {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.help-workflow-card-body {
  flex: 1;
}

.help-step-list {
  padding-left: 1.4rem;
  margin: 0;
}

.help-step-item {
  margin-bottom: 0.75rem;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.5;
}

.help-step-item:last-child {
  margin-bottom: 0;
}

.help-workflow-card-footer {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
}

.help-action-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
}

/* Pro Tips Card */
.help-protips-card {
  background: #f1f8e9;
  border: 1px solid #c5e1a5;
  border-radius: 10px;
  padding: 1.5rem;
}

.help-protips-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.help-protips-icon {
  font-size: 1.4rem;
}

.help-protips-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2e7d32;
  margin: 0;
}

.help-protips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.help-protip-item {
  display: flex;
  gap: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1b5e20;
}

.help-protip-bullet {
  color: #2e7d32;
  font-weight: 800;
}

/* FAQ List */
.help-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.help-faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
}

.help-faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  margin: 0 0 0.5rem 0;
}

.help-faq-answer {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

/* Manual Footer */
.help-manual-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  flex-wrap: wrap;
  gap: 1rem;
}

.help-footer-meta p {
  margin: 0;
}

.help-footer-actions {
  display: flex;
  gap: 0.6rem;
}

/* Other Roles Section */
.help-other-roles-section {
  margin-top: 2rem;
}

.help-other-roles-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  margin: 0 0 1rem 0;
}

.help-other-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.help-other-role-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main, #1e293b);
  transition: all 0.2s ease;
}

.help-other-role-card:hover {
  border-color: var(--primary, #2e7d32);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.help-other-role-icon {
  font-size: 1.6rem;
}

.help-other-role-info {
  display: flex;
  flex-direction: column;
}

.help-other-role-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.help-other-role-badge {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

.print-only {
  display: none;
}

/* Print Styling */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  header, footer, .no-print {
    display: none !important;
  }

  .help-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .help-manual-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .help-manual-hero {
    border-bottom: 2px solid #2e7d32 !important;
  }

  .help-hero-icon {
    border: 1px solid #ccc !important;
    background: transparent !important;
  }

  .help-workflow-card {
    border: 1px solid #bbb !important;
    page-break-inside: avoid;
    background: transparent !important;
  }

  .help-protips-card {
    border: 1px solid #2e7d32 !important;
    background: transparent !important;
    page-break-inside: avoid;
  }

  .help-faq-item {
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
    background: transparent !important;
  }

  .print-only {
    display: block !important;
    font-size: 0.8rem;
    color: #555;
    margin-top: 0.5rem;
  }
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .help-manual-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .help-hero-icon {
    font-size: 2.5rem;
    padding: 0.75rem;
  }

  .help-hero-title {
    font-size: 1.5rem;
  }

  .help-workflows-grid {
    grid-template-columns: 1fr;
  }
}
