/* =========================================================
   NAVIGATION / BARS
========================================================= */

html,
body {
  height: 100%;
}

/* Main fixed navigation container */

.bars-container {
  position: fixed;
  top: 5.8vh;
  left: 0;
  width: 100vw;
  height: 88.4vh;

  display: grid;
  grid-template-columns:
    var(--layout-margin-left)
    var(--project-col-text)
    var(--layout-gap)
    var(--project-col-photo)
    var(--layout-gap)
    var(--project-col-drawing)
    var(--layout-gap);

  pointer-events: none;
  overflow: visible;
  z-index: 10000;
}

/* Individual colour bars */

.color-bar {
  position: absolute;
  top: 0;
  width: var(--layout-gap);
  height: 100%;

  cursor: pointer;
  pointer-events: auto;

  transition:
    width 0.3s ease,
    background-color 0.2s ease;

  z-index: 10001;
}

.color-bar.left {
  left: 0;
  background-color: rgba(0, 255, 62, 0.9);
}

.color-bar.right {
  left: var(--layout-gap);
  background-color: rgba(147, 237, 255, 0.9);
}

.color-bar.active {
  z-index: 10002;
}

.color-bar:not(.active):hover {
  background-color: #0000ff;
}

/* Open bar widths */

.color-bar.left.active {
  width: calc(
    var(--layout-margin-left) +
    ((100vw - var(--layout-margin-left) - (3 * var(--layout-gap))) * 3 / 9.9)
  );
}

.color-bar.right.active {
  width: calc(
    var(--layout-margin-left) +
    ((100vw - var(--layout-margin-left) - (3 * var(--layout-gap))) * 3 / 9.9)
    - var(--layout-gap)
  );
}


/* =========================================================
   MENU CONTENT
========================================================= */

.menu-content {
  position: relative;
  z-index: 10003;

  display: block;
  height: 100%;
  padding: 1rem;
  box-sizing: border-box;

  overflow-y: auto;

  font-size: 13px;
  line-height: 1.15;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.2s ease;
}

.menu-content .about-line {
  border: none;
  border-top: 1px solid #000;
}

.color-bar.active .menu-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transition-delay: 0.25s;
}


/* =========================================================
   MENU HEADER
========================================================= */

.menu-top {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.5rem;
  align-items: baseline;
}

.menu-top h1 {
  margin: 0;

  font-size: 28px;
  line-height: 1;
  font-weight: 500;
}

.menu-subtitle {
  margin-top: 4px;
  margin-bottom: 12px;

  line-height: 1;
}

.close {
  justify-self: end;
  align-self: baseline;

  padding: 0;
  border: 0;
  background: transparent;

  font-family: 'Inter', sans-serif;
  font-size: 34px;
  line-height: 1;
  font-weight: 400;

  cursor: pointer;
}

.close:hover {
  font-weight: 600;
}


/* =========================================================
   PROJECT LIST HEADER
========================================================= */

.color-bar .project-header {
  padding: 10px 0 0 0;
  border-bottom: 1px solid #000;
}

.color-bar hr {
  border-top: 0.5px solid rgba(0, 0, 0, 0.4);
}

.project-header.panel-grid {
  display: grid;
  grid-template-columns: 2fr minmax(0, 6.5fr) 2fr 1fr;
  column-gap: 12px;

  padding: 10px 0;
  align-items: baseline;

  font-size: 14px;
}

.project-header.panel-grid > div:nth-child(3),
.project-header.panel-grid > div:nth-child(4),
.project-header .panel-right {
  text-align: right;
}

.project-header button {
  all: unset;
  cursor: pointer;
}

/* SORT ICON */

.project-header button[data-sort]::before {
  content: "";
  display: inline-block;

  width: 8px;
  height: 9px;

  margin-right: 4px;

  background: url('/assets/icons/sort.svg') no-repeat center;
  background-size: contain;

  opacity: 1;

  transform: translateY(-1px); /* subtiele alignment met tekst */
}

.project-header button {
  all: unset;
  cursor: pointer;
}

.project-header button:hover {
  opacity: 0.6;
}

/* =========================================================
   ABOUT PANEL
========================================================= */

/* 
   .about-content is the actual wrapper in bar-about.php:
   <div class="menu-content about-content">
*/

.about-content {
  height: 100%;

  display: flex;
  flex-direction: column;
}

.about-content > .about-label {
  margin-top: 10px;
}

/* About label / section labels */

.about-label {
  font-size: 14px;
  text-transform: uppercase;
  margin-top: 0px;
}

.about-contact-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-contact-item {
  display: flex;
  flex-direction: row;   /* ← forceert horizontaal */
  align-items: center;
  gap: 6px;
}

.about-contact-item .about-value {
  display: inline;
}

.about-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about-icon {
  position: relative;
  top: 3px;   /* of 0.5px afhankelijk van je font-size */
}

.about-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Main about line */

.about-line {
  border: none;
  border-top: 1px solid #000;
  height: 0;

  opacity: 1;

  margin: 10px 0 0 0;
}

/* Rows */

.about-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 12px;

  padding: 4px 0;
  align-items: baseline;
}

/* Full-width rows: mail, company number, code link */

.about-row--full {
  grid-template-columns: 1fr;
}

/* Two-column rows: addresses, office/collaborators */

.about-row--double {
  grid-template-columns: 1fr 1fr;
}

.about-block {
  display: block;
}

/* Labels inside double rows */

.about-row--double .about-label {
  font-size: 13px;
  text-transform: none;

  margin-top: 0;
  margin-bottom: 6px;

  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Values */

.about-value {
  margin-top: 0;
}

.about-value p {
  margin: 0;
}

/* Specific link behaviour */

.about-code-link {
  white-space: nowrap;
}


/* =========================================================
   ABOUT FOOTER
========================================================= */

.about-footer {
  margin-top: auto;
}

.about-footer-row {
  display: grid;
  grid-template-columns: 1fr auto;

  margin-top: 10px;
}

.about-footer-row div:last-child {
  text-align: right;
}


/* =========================================================
   ABOUT SECTIONS
========================================================= */

.about-section {
  margin-top: 24px;
}

.about-section-title {
  margin-bottom: 8px;

  font-size: 11.5px;
  opacity: 0.6;
}


/* =========================================================
   PROJECT LIST
========================================================= */

.scroll-container {
  max-height: calc(100vh - 20rem);
  overflow-y: auto;

  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

#sortable-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sortable-list li {
  position: relative;
  padding: 10px 0;
}

#sortable-list li:first-child {
  padding-top: 0;
}

#sortable-list li::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  border-bottom: 0.5px dotted rgba(0, 0, 0, 0.4);
}

#sortable-list li a {
  display: grid;
  grid-template-columns: 2fr minmax(0, 6.5fr) 2fr 1fr;
  column-gap: 12px;
  align-items: baseline;

  background: transparent;
  color: inherit;
  text-decoration: none;

  opacity: 1;
  transition: opacity 0.2s ease;
}

#sortable-list li:hover a {
  opacity: 0.6;
}

#sortable-list .project-title-main {
  grid-column: 1;
}

#sortable-list .project-title-detail {
  grid-column: 2;
}

#sortable-list .category {
  grid-column: 3;

  font-style: italic;
  text-align: right;
}

#sortable-list .completion {
  grid-column: 4;

  font-style: italic;
  text-align: right;
}

.projects-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.projects-content .scroll-container {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

.project-header.panel-grid,
#sortable-list li a {
  width: 100%;
  box-sizing: border-box;
}


/* =========================================================
   PROJECT HOVER PREVIEW
========================================================= */

.hover-preview {
  position: fixed;
  left: 50%;
  top: 50%;

  width: 25vw;
  aspect-ratio: 1 / 1;

  transform: translate(-50%, -50%);

  background-image: var(--thumb);
  background-size: cover;
  background-position: center;

  display: none;
  pointer-events: none;

  z-index: 10004;
}

.item:hover .hover-preview {
  display: block;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {
  .project-header button[data-sort="completion"]::before {
    margin-right: 1px;
    transform: translate(-3px, 1px);
  }

  .bars-container {
    top: auto;
    bottom: 0;
    left: 0;

    width: 100vw;
    height: 24px;
  }

  .color-bar {
    top: auto;
    bottom: 0;

    width: 50vw;
    height: 24px;

    transition:
      width 0.32s ease,
      height 0.32s ease,
      left 0.32s ease,
     background-color 0.2s ease;
  }

  .color-bar.left {
    left: 0;
  }

  .color-bar.right {
    left: 50vw;
  }

  .color-bar.left.active,
  .color-bar.right.active {
    left: 0;

    width: 100vw;
    height: 100vh;

    z-index: 10002;
  }

  #sortable-list li:first-child {
    padding-top: 10px;
  }

  #sortable-list li:hover a {
  opacity: 1;
}

.item:hover .hover-preview {
  display: none;
}

  .menu-content {
    height: 100%;
    padding: 1rem;

    overflow-y: auto;
    box-sizing: border-box;

    font-size: 13px;
    line-height: 1.15;

    opacity: 0;
    pointer-events: none;
  }

  .color-bar.active .menu-content {
    opacity: 1;
    pointer-events: auto;
  }
}

/* =========================================================
   PROJECT LIST LINKS — NO UNDERLINE
========================================================= */

#sortable-list a,
#sortable-list a:link,
#sortable-list a:visited,
#sortable-list a:hover,
#sortable-list a:focus {
  border-bottom: none !important;
  text-decoration: none !important;
}