/* SIF Brand Customization for Congo Theme */

/* Override Congo theme with SIF brand colors */
:root {
  /* Primary color: #111 (near black) */
  --color-primary-500: #111111;
  --color-primary-600: #000000;
  --color-primary-400: #333333;

  /* Accent color: #4CAF50 (green) */
  --color-accent-500: #4CAF50;
  --color-accent-600: #45a049;
  --color-accent-400: #66BB6A;

  /* Neutral colors */
  --color-neutral-50: #fafafa;
  --color-neutral-100: #f5f5f5;
  --color-neutral-200: #e5e5e5;
  --color-neutral-300: #d4d4d4;
}

/* Global background */
body {
  background-color: #fafafa;
}

/* Navigation bar styling */
.header {
  background-color: #111 !important;
  padding: 20px 0 16px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.logo a {
  color: #fff !important;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.logo a:hover {
  color: #fff !important;
  text-decoration: none;
}

/* Menu styling */
#menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#menu li {
  margin: 0;
  padding: 0;
}

#menu a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.2s ease;
  display: inline-block;
}

#menu a:hover {
  color: #4CAF50 !important;
  text-decoration: none;
}

#menu a span.active {
  color: #4CAF50 !important;
  position: relative;
}

#menu a span.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #4CAF50;
}

/* Theme toggle button styling */
#theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

#theme-toggle:hover {
  border-color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
}

/* Headers */
h1 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111;
}

h2 {
  font-size: 22px;
  border-bottom: 3px solid #4CAF50;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111;
}

h3 {
  color: #111;
  font-weight: 600;
}

/* Links */
a {
  color: #4CAF50;
  text-decoration: none;
}

a:hover {
  color: #45a049;
  text-decoration: underline;
}

/* Code blocks */
code {
  background-color: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  padding: 0.2em 0.4em;
  font-size: 0.9em;
}

pre code {
  background-color: #f5f5f5;
  border: none;
  padding: 0;
}

pre {
  background-color: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  padding: 1rem;
  overflow-x: auto;
}

/* Content container */
.prose {
  background: white;
  padding: 60px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-top: 20px;
  margin-bottom: 40px;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
}

th {
  background-color: #111;
  color: white;
  padding: 0.75rem;
  text-align: left;
  border: 1px solid #333;
}

td {
  padding: 0.75rem;
  border: 1px solid #e5e5e5;
}

tr:nth-child(even) {
  background-color: #fafafa;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #4CAF50;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #333;
}

/* Lists */
ul li::marker,
ol li::marker {
  color: #4CAF50;
}

/* Horizontal rules */
hr {
  border: none;
  border-top: 2px solid #e5e5e5;
  margin: 2rem 0;
}

/* Footer */
footer {
  background-color: #111;
  color: #fff;
}

footer a {
  color: #4CAF50;
}

footer a:hover {
  color: #66BB6A;
}

/* Buttons and call-to-action */
.button,
button,
[role="button"] {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.button:hover,
button:hover,
[role="button"]:hover {
  background-color: #45a049;
  text-decoration: none;
}

/* Ensure good contrast for readability */
.dark .prose {
  color: #333;
}
