/* Weblock User Guide - Bootstrap 5.3 Custom Overrides */

/* ========== Custom Color Variables (Weblock Branding) ========== */
:root {
  --weblock-primary: #7c3aed;
  --weblock-primary-dark: #6d28d9;
  --weblock-primary-light: #8b5cf6;
}

/* Override Bootstrap's primary color with Weblock purple */
.bg-primary,
.btn-primary {
  background-color: var(--weblock-primary) !important;
  border-color: var(--weblock-primary) !important;
}

.bg-primary:hover,
.btn-primary:hover {
  background-color: var(--weblock-primary-dark) !important;
  border-color: var(--weblock-primary-dark) !important;
}

.text-primary {
  color: var(--weblock-primary) !important;
}

.border-primary {
  border-color: var(--weblock-primary) !important;
}

/* ========== Custom Header Gradient ========== */
.header-gradient {
  background: linear-gradient(135deg, var(--weblock-primary) 0%, var(--weblock-primary-dark) 100%);
}

/* ========== Role Badge Styling ========== */
.role-badge {
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ========== Screenshot Mobile Sizing ========== */
.screenshot-mobile {
  max-width: 400px;
  margin: 0 auto;
}

/* ========== Custom Step Numbers (if not using Bootstrap list-group-numbered) ========== */
.step-number {
  background: var(--weblock-primary);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ========== TOC Link Hover Effect ========== */
.toc-link {
  transition: all 0.2s ease;
}

.toc-link:hover {
  background-color: var(--weblock-primary-light) !important;
  color: white !important;
  transform: translateX(5px);
}

.toc-number {
  color: var(--weblock-primary);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* ========== Print Styles ========== */
@media print {
  .accordion-collapse {
    display: block !important;
  }

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

/* ========== Accessibility Enhancements ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== Minor Bootstrap Tweaks ========== */
/* Slightly larger font for better readability */
body {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Better spacing for details/summary if used */
details summary {
  cursor: pointer;
  font-weight: 600;
}

details summary:hover {
  color: var(--weblock-primary);
}
