/* ============================================================
   BASE
   ============================================================ */
body {
  margin: 0;
  background-color: #080808;
  color: #4af626;
  font-family: "Courier New", Courier, monospace;
}

a {
  color: #4af626;
  text-decoration: none;
}

a:hover {
  background-color: #4af626;
  color: black;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  background: #080808;
}
::-webkit-scrollbar-thumb {
  background: #4af626;
  border-radius: 0;
}
::-webkit-scrollbar-track {
  background: #080808;
}

/* ============================================================
   TOP NAV
   ============================================================ */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 16px;
  border-bottom: 1px solid #4af626;
  background: #080808;
  /* kept in normal flow — project-container's fixed top:42px accounts for it */
}

.nav-left {
  display: flex;
  align-items: center;
  font-size: 0.9em;
  gap: 0;
}

.nav-left a {
  color: #4af626;
  text-decoration: none;
  padding: 0 4px;
}

.nav-left a:hover {
  background-color: #4af626;
  color: black;
}

.nav-left .current {
  background-color: #4af626;
  color: black;
  padding: 0 4px;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-right a {
  color: #4af626;
  text-decoration: none;
  padding: 2px 6px;
  font-size: 0.9em;
}

.nav-right a:hover,
.nav-right a:focus {
  background-color: #4af626;
  color: black;
}

/* SVG icon links (e.g. GitHub, LinkedIn) */
.icon-link {
  display: flex;
  align-items: center;
  padding: 2px;
  color: #4af626;
}

/* Up-navigation button (injected by script.js) */
#up-btn {
  margin-right: 8px;
  cursor: pointer;
  background: none;
  border: none;
  color: #4af626;
  font-size: 1.2em;
  vertical-align: middle;
}

#up-btn:hover {
  background-color: #4af626;
  color: black;
}

/* ============================================================
   HOME PAGE
   ============================================================ */
.page-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ============================================================
   PROJECT LAYOUT  (sidebar + scrollable content)
   ============================================================ */

/* Full-viewport area below the nav bar */
.project-container {
  display: flex;
  position: fixed;
  top: 42px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 42px);
}

/* Sidebar placeholder (before JS replaces it with .sidebar-nav) */
.file-nav {
  width: 250px;
  flex-shrink: 0;
  border-right: 1px solid #4af626;
  box-sizing: border-box;
  overflow-y: auto;
}

.file-nav ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.file-nav li {
  margin: 0;
  cursor: pointer;
}

/* File nav links */
.file-nav a {
  display: inline-block;
  padding: 2px 4px;
}

/* Highlight current page */
.file-nav a.active {
  background-color: #4af626;
  color: black;
}

/* Collapsible sub-trees */
.file-nav li ul {
  list-style: none;
  padding-left: 15px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
}

.file-nav li.expanded > ul {
  max-height: 1000px;
  overflow: visible;
}

/* Generated sidebar (replaces .file-nav via filetree.js) */
.sidebar-nav {
  width: 250px;
  flex-shrink: 0;
  height: 100%;
  background: #080808;
  border-right: 1px solid #4af626;
  display: flex;
  flex-direction: column;
}

.file-nav-main {
  height: 50%;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  border-top: 1px solid #4af626;
}

.file-nav-categories {
  height: 50%;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  border-top: 1px solid #4af626;
}

.tag-btn,
#clear-tags {
  background: none;
  border: 1px solid #4af626;
  color: #4af626;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8em;
  padding: 2px 8px;
  margin: 3px 2px;
  cursor: pointer;
}

#clear-tags {
  display: block;
  margin-bottom: 10px;
}

.tag-btn:hover,
#clear-tags:not(:disabled):hover {
  background-color: #4af626;
  color: black;
}

.tag-btn.active {
  background-color: #4af626;
  color: black;
}

#clear-tags:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Scrollable main content column */
.project-content-column {
  flex: 1;
  min-width: 0;
  text-align: center;
  box-sizing: border-box;
  padding: 32px 10%;
  overflow-y: auto;
}

/* ============================================================
   MEDIA / GALLERY HELPERS
   ============================================================ */

/* Flex row for videos, iframes, and images */
.media-flex {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Default size for items inside .media-flex */
.media-flex > * {
  flex: 1 1 440px;
  max-width: 48%;
}

.gallery-image {
  width: 98%;
  max-width: 900px;
  border: 1px solid #4af626;
}

.display-video {
  width: 600px;
  border: 1px solid #4af626;
}

.project img,
.project iframe {
  max-width: 100%;
  border: 1px solid #4af626;
}

/* ============================================================
   PROJECT DOSSIER / CONTENT
   ============================================================ */
.dossier-head {
  color: #4af626;
  font-weight: 900;
  letter-spacing: 1px;
}

.dossier-summary {
  text-align: left;
  max-width: 700px;
  margin: 0 auto 32px auto;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid #4af626;
  padding: 32px;
}

.portfolio-text-holder {
  padding: 0 100px;
}

.portfolio-text-holder p {
  margin-bottom: 32px;
}

.portfolio-section-divider {
  border: none;
  border-top: 2px solid #4af626;
  margin: 64px 80px;
}

.inline-link {
  color: #4af626;
  text-decoration: underline;
}

.inline-link:hover {
  background-color: #4af626;
  color: black;
}
