/* Voedingsgeneeskunde Custom Styling */

/* === Font Imports === */
@import url('../fonts/GAPZuidVG-Regular.css');
@import url('../fonts/GAPZuidVG-Bold.css');
@import url('../fonts/GAPZuidVG-Italic.css');
@import url('../fonts/GAPZuidVG-BoldItalic.css');
@import url('../fonts/GAPCode-Regular.css');
@import url('../fonts/GAPCode-Bold.css');

/* === Typography === */
body {
  font-family: 'GAPZuidVG', 'Helvetica Neue', Arial, sans-serif;
}

/* Headings met !important om Material theme te overschrijven */
h1, h2, h3, h4, h5, h6,
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-family: 'GAPZuidVG', 'Helvetica Neue', Arial, sans-serif !important;
  color: var(--vg-zwart) !important;
  font-weight: 700 !important;
}

h1, .md-typeset h1 {
  border-bottom: 3px solid var(--vg-color-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h2, .md-typeset h2 {
  border-bottom: 2px solid var(--vg-color-border-light);
  padding-bottom: 0.3rem;
  margin-top: 2rem;
}

/* === Links === */
a {
  color: var(--vg-color-text-link);
}

a:hover {
  color: var(--vg-color-accent);
}

/* === Code === */
code, pre, .highlight {
  font-family: 'GAPCode', 'Roboto Mono', 'Courier New', monospace !important;
}

code {
  background-color: var(--vg-color-surface);
  border-radius: 3px;
  padding: 2px 6px;
  color: var(--vg-color-text-primary);
}

pre {
  background-color: var(--vg-color-surface-variant);
  border-left: 4px solid var(--vg-color-primary);
}

/* === Admonitions === */
.admonition.note {
  border-left-color: var(--vg-color-primary);
}

.admonition.tip {
  border-left-color: var(--vg-color-accent);
}

.admonition.warning {
  border-left-color: var(--vg-color-error);
}

/* === Navigation === */
.md-nav__link--active {
  color: var(--vg-color-accent) !important;
}

/* === Header === */
.md-header {
  background-color: var(--vg-color-primary);
}

/* === Search === */
.md-search__input:focus {
  border-color: var(--vg-color-accent);
}

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

table th {
  background-color: var(--vg-color-primary);
  color: var(--vg-color-text-on-primary);
  padding: 0.75rem;
  text-align: left;
  font-weight: 700;
}

table td {
  border: 1px solid var(--vg-color-border);
  padding: 0.75rem;
}

table tr:nth-child(even) {
  background-color: var(--vg-color-surface);
}

/* === Responsive === */
@media screen and (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}
