/* ====== Favicon fallback in CSS ====== */
html {
  --favicon-data: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' fill='%23000000'/%3E%3Ctext x='16' y='22' font-family='Courier New, monospace' font-size='18' font-weight='bold' fill='%2300ff66' text-anchor='middle'%3ER%3C/text%3E%3C/svg%3E");
}

/* ====== Basis reset en layout ====== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Verdana, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ====== Header ====== */
header {
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1rem 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-subtitle {
  font-size: 0.78rem;
}

/* ====== Navigatie ====== */
nav {
  font-size: 0.85rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.35rem 1rem 0.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.nav-left,
.nav-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.nav-left {
  flex: 1;
  min-width: 0;
}

.nav-right {
  flex-shrink: 0;
}

.nav-link {
  text-decoration: none;
  padding-bottom: 0.08rem;
  border-bottom: 1px solid transparent;
}

.tag-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

/* ====== Main / Column ====== */
main {
  flex: 1;
  padding: 1.7rem 0 2.8rem;
}

.column-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ====== Sidebar Layout ====== */
.layout-with-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1200px;
}

.column-main {
  flex: 2;
  min-width: 0;
  width: 100%;
}

.column-sidebar {
  flex: 1;
  min-width: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .layout-with-sidebar {
    flex-direction: row;
    gap: 2rem;
  }
  
  .column-main {
    width: auto;
  }
  
  .column-sidebar {
    width: auto;
    min-width: 250px;
    max-width: 300px;
  }
}

@media (max-width: 767px) {
  .column-wrapper {
    padding: 0 0.75rem;
  }
  
  .topbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .theme-switch {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.5rem;
  }
  
  .column-card {
    padding: 1.5rem 1rem 2rem;
  }
  
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .nav-left {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .nav-link {
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

/* ====== Sidebar Content ====== */
.rudi-temp-sidebar {
  font-size: 0.85rem;
}

.sidebar-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid;
}

.sidebar-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-link {
  display: block;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.sidebar-date {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
}

.column-card {
  border-radius: 4px;
  padding: 2.1rem 1.4rem 2.6rem;
  position: relative;
  overflow: hidden;
}

.column-inner {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .column-card {
    padding: 2.6rem 3.1rem 3.1rem;
  }
}

/* ====== Meta ====== */
.column-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.78rem;
  margin-bottom: 1.4rem;
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.column-title {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 0.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.column-subtitle {
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.column-meta-bottom {
  font-size: 0.75rem;
  margin-bottom: 1.8rem;
  border-top: 1px dashed;
  padding-top: 0.7rem;
}

/* ====== Body / Tekst ====== */
.column-body {
  font-size: 0.98rem;
}

.column-body p {
  margin: 0 0 1rem;
}

.column-body p + p {
  text-indent: 1.8em;
}

.column-body h2,
.column-body h3 {
  margin: 1.8rem 0 0.7rem;
  line-height: 1.3;
}

.column-body h2 {
  font-size: 1.15rem;
}

.column-body h3 {
  font-size: 1rem;
}

.column-body a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.column-body a:hover {
  text-decoration-thickness: 2px;
}

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid;
  font-style: italic;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
  font-size: 0.9em;
}

/* ====== Back to Start Button ====== */
.back-to-start {
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.back-to-start-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.back-to-start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ====== Disclaimer Section ====== */
.disclaimer-section {
  margin-top: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid;
}

.disclaimer-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.disclaimer-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ====== Vacation Photo ====== */
.vacation-photo {
  margin: 1.5rem 0;
  text-align: center;
}

.photo-link {
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.photo-link:hover {
  opacity: 0.9;
}

.vacation-thumbnail {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto;
}

.vacation-photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-style: italic;
  color: inherit;
}

/* ====== Lightbox Overlay ====== */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption{color:#fff;text-align:center;margin-top:1rem;font-size:0.9rem}
.lightbox-close{position:absolute;top:1rem;right:1rem;color:#fff;font-size:2rem;font-weight:bold;cursor:pointer;background:rgba(0,0,0,0.5);border:none;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;line-height:1;transition:background 0.2s ease}
.lightbox-close:hover{background:rgba(0,0,0,0.8)}

/* ====== Start Button ====== */
.btn-start {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  background: rgba(0,0,0,0.1);
  transition: 0.2s ease;
}

.btn-start:hover {
  background: var(--accent-soft);
  color: #000;
}

/* ====== Archief Pagina ====== */
.archief-container {
  max-width: 100%;
}

.archief-filters {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-soft);
}

.archief-filters h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.year-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.year-filter {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-email);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.year-filter:hover {
  background: var(--bg-sidebar);
  border-color: var(--accent);
  color: var(--accent);
}

.year-filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-main);
  font-weight: 600;
}

.archief-content {
  margin-top: 2rem;
}

.archief-year-section {
  margin-bottom: 2.5rem;
}

.archief-year-section:last-child {
  margin-bottom: 0;
}

.archief-year {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  color: var(--text-main);
}

.archief-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archief-item {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  line-height: 1.6;
}

.archief-item:last-child {
  margin-bottom: 0;
}

.archief-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.archief-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.archief-link:hover {
  color: var(--accent-hover, var(--accent));
  text-decoration: underline;
}

.archief-category {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 0.5rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .archief-filters h3 {
    font-size: 0.95rem;
  }
  
  .year-filter {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  
  .archief-year {
    font-size: 1.25rem;
  }
  
  .archief-item {
    font-size: 0.95rem;
  }
  
  .archief-date {
    display: block;
    margin-bottom: 0.25rem;
    margin-right: 0;
  }
}

/* ====== Footer ====== */
footer {
  font-size: 0.75rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright p {
  font-size: 0.75rem;
  margin: 0;
}

.footer-links a {
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}

/* ====== Theme Switcher ====== */
.theme-switch {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.theme-btn {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.theme-btn[aria-pressed="true"] {
  font-weight: 600;
  text-decoration: underline;
}

/* ====== What's New List ====== */
.whatsnew-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.whatsnew-list li {
  margin-bottom: 0.3rem;
}

.whatsnew-date {
  margin-right: 0.4rem;
}

