/* Custom premium styling for Bill C-22 Analysis Quarto Site */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  line-height: 1.6;
  background-color: #f8fafc;
}

/* Premium Typography adjustments */
h1, h2, h3, h4, h5, h6 {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.25rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.3em;
}

/* Sleek Navbar with subtle border and shadow */
.navbar {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.navbar-brand, .nav-link {
  color: #334155 !important;
  font-weight: 500;
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.nav-link:hover {
  color: #2563eb !important;
  transform: translateY(-1px);
}

/* Floating Sidebar styling */
.sidebar {
  background-color: #ffffff;
  border-right: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sidebar a {
  color: #475569;
  font-weight: 450;
  transition: all 0.2s ease-in-out;
}

.sidebar a:hover {
  color: #2563eb;
  background-color: #f1f5f9;
  border-radius: 4px;
  padding-left: 4px;
}

/* Smooth Link Transitions & Colors */
a {
  color: #2563eb;
  text-decoration: none;
  background-image: linear-gradient(#2563eb, #2563eb);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 0.25s ease-in-out, color 0.2s ease-in-out;
}

a:hover {
  color: #1d4ed8;
  background-size: 100% 2px;
  text-decoration: none;
}

/* Premium policy callouts */
.policy-callout {
  padding: 1.25rem 1.5rem;
  background-color: #f0fdf4;
  border-left: 5px solid #16a34a;
  border-radius: 6px;
  margin: 2rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.policy-callout.warning {
  background-color: #fef2f2;
  border-left-color: #dc2626;
}

.policy-callout.info {
  background-color: #eff6ff;
  border-left-color: #2563eb;
}

/* Blockquote enhancements */
blockquote {
  border-left: 4px solid #cbd5e1;
  color: #475569;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
}

/* Custom badges and tags */
.badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  background-color: #e2e8f0;
  color: #334155;
}

.badge-primary {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-success {
  background-color: #dcfce7;
  color: #166534;
}

.badge-warning {
  background-color: #fef9c3;
  color: #854d0e;
}
