/* =========================
   eol.rip // style.css v3
   ========================= */

/* ───── Base & variables ───── */
:root {
  --green: #0f0;
  --green-light: #afffaf;
  --highlight: #2f5c94;
  --red: #f00;
  --red-bg: #200;
  --highlight-bg: #011;
  --bg: #000;
  --font: 'Courier New', Courier, monospace;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--green);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ───── Layout ───── */
header#promptline {
  width: 100%;
  background: var(--bg);
  color: var(--green);
  padding: 0.3rem 1rem;
  font-size: 0.9em;
  border-bottom: 1px solid var(--green);
}

footer {
  width: 100%;
  background: var(--bg);
  color: var(--green);
  font-size: 0.8em;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--green);
}

div.layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ───── Sidebar: filetree ───── */
nav#filetree {
  font-size: 0.80em;
  width: 200px;
  padding: 1rem;
  background: var(--bg);
  border-right: 1px solid var(--green);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

nav#filetree .logo {
  text-align: left;
}

nav#filetree .logo img {
  max-width: 80%;
  height: auto;
}

nav#filetree ul.tree {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

nav#filetree ul ul {
  display: none;
  margin: 0;
}

nav#filetree li.folder {
  cursor: pointer;
}

nav#filetree li.folder.open > ul {
  display: block;
}

nav#filetree li {
  margin: 0.1em 0;
}

nav#filetree .entry {
  display: inline-flex;
  align-items: baseline;
  white-space: pre;
  font-size: 1em;
}

nav#filetree .line {
  display: inline-block;
  margin-right: 0.5em;
  color: var(--green);
  flex-shrink: 0;
}

nav#filetree .folder-label {
  color: var(--highlight);
  font-weight: bold;
  text-decoration: none;
}

nav#filetree a {
  display: inline-block;
  color: var(--green);
  text-decoration: none;
  font-size: 1em;
}

nav#filetree a:hover {
  color: var(--green-light);
  text-decoration: underline;
}

/* ───── Main content ───── */
main#content {
  flex: 1;
  padding: 2rem 3rem;
  overflow-y: auto;
  max-width: 80ch;
  line-height: 1;
  white-space: pre-wrap;
}

/* ───── Headings ───── */
h1, h2, h3 {
  color: var(--green);
  font-weight: bold;
  font-family: var(--font);
  margin-top: 0.8em;
  margin-bottom: 0.2em;
  border-bottom: none;
  padding-bottom: 0;
  text-transform: none;
}

/* Specifieke fontgroottes per heading */
h1 {
  font-size: 1.6em;
  letter-spacing: 0.05em;
}

h2 {
  font-size: 1.3em;
}

h3 {
  font-size: 1.1em;
}

h1::before {
  content: "==[ ";
  color: var(--green-light);
}

h1::after {
  content: " ]==";
  color: var(--green-light);
}

h2::before {
  content: "-- ";
}

h3::before {
  content: "   > ";
}

/* ───── Text content ───── */
p, em, strong, ul, ol, li {
  color: var(--green);
  font-size: 1em;
  margin: 0em;
  margin-bottom: 0em;
}

ul, ol {
  padding-left: 2em;
}

strong {
  text-transform: uppercase;
  color: var(--green-light);
}

em {
  font-style: italic;
}

a {
  color: var(--highlight);
  text-decoration: underline;
}

a:hover {
  color: var(--green-light);
}

/* ───── Code ───── */
code {
  background: #111;
  color: var(--green);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  font-size: 0.95em;
}

pre code {
  display: block;
  padding: 1em;
  background: var(--bg);
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 3px;
  overflow-x: auto;
}

/* ───── Blockquotes ───── */
blockquote {
  margin: 0;
  border-left: 2px solid var(--green);
  padding-left: 1em;
  font-style: italic;
  color: #9f9;
}

blockquote.warn {
  border-left: 4px solid var(--red);
  background: var(--red-bg);
  color: var(--red);
  font-style: bold;
}

blockquote.note {
  border-left: 4px solid var(--green-light);
  background: var(--highlight-bg);
  color: var(--highlight);
  font-style: normal;
}

/* ───── Terminals ───── */
pre.term,
pre.prompt {
  background: var(--bg);
  color: var(--green);
  font-family: var(--font);
  padding: 0.5em 1em;
  margin: 1em 0;
  border-left: 4px solid var(--green);
  white-space: pre-wrap;
}

/* ───── Utilities ───── */
kbd {
  background: #111;
  color: var(--green);
  padding: 2px 5px;
  border: 1px solid var(--green);
  border-radius: 3px;
  font-size: 0.9em;
}

hr {
  border: none;
  margin: 2em 0;
  height: 1px;
  background-color: var(--green);
  opacity: 0.5;
}

hr::before {
  content: "────────────────────────────────────────────────────────────";
  display: block;
  color: var(--green);
  font-size: 0.8em;
  font-family: var(--font);
}
/* ───── Responsive ───── */
@media (max-width: 768px) {
  div.layout {
    flex-direction: column;
  }

  nav#filetree {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--green);
    padding: 1rem 1rem;
    max-height: 200px;
    overflow-y: auto;
  }

  main#content {
    padding: 1rem;
    max-width: 100%;
  }

  header#promptline,
  footer {
    font-size: 0.75em;
    padding: 0.5rem 1rem;
  }

  nav#filetree .logo img {
    max-width: 60%;
  }
}

/* ───── Mobile horizontal menu ───── */
@media (max-width: 768px) {
  nav#filetree {
    display: none;
  }



}

/* hide mobile menu on wide screens */
nav#mobilemenu {
  display: none;
}
/* ───── Responsive & mobile menu ───── */
@media (max-width: 768px) {
  div.layout {
    flex-direction: column;
  }

  nav#filetree {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--green);
    padding: 1rem 1rem;
    max-height: 200px;
    overflow-y: auto;
    display: none;
  }

  nav#filetree .logo img {
    max-width: 60%;
  }

  header#promptline,
  footer {
    font-size: 0.75em;
    padding: 0.5rem 1rem;
  }

  main#content {
    padding: 1rem;
    max-width: 100%;
  }

  nav#mobilemenu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.5rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--green);
    gap: 1rem;
  }

  nav#mobilemenu a,
  nav#mobilemenu summary {
    font-size: 0.8em;
    white-space: nowrap;
    color: var(--green);
    text-decoration: none;
  }

  nav#mobilemenu a:hover,
  nav#mobilemenu summary:hover {
    color: var(--green-light);
    text-decoration: underline;
  }

  nav#mobilemenu details {
    border-left: 1px solid var(--green);
    padding-left: 1rem;
  }

  nav#mobilemenu details a {
    display: block;
    margin-left: 1rem;
  }

  nav#mobilemenu > a:not(:last-of-type)::after {
    content: " |";
    color: var(--green);
    margin-left: 0.3rem;
  }
}

/* mobile logo replaces CLI prompt */
#mobile-header-logo {
  display: none;
}

@media (max-width: 768px) {
  header#promptline {
    display: none;
  }

  #mobile-header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--green);
  }

  #mobile-header-logo img {
    max-width: 60%;
    height: auto;
  }
  
    nav#mobilemenu {
    position: relative;
    z-index: 10;
  }

  nav#mobilemenu details {
    position: relative;
    z-index: 10;
    background: var(--bg);
  }

  #mobile-header-logo {
    position: relative;
    z-index: 1;
  }

  
  
  
}
