/* ==========================================================================
   Header Component - JooHee Yoon Style Minimal Navigation
   ========================================================================== */

header {
  position: fixed;
  height: var(--header-height);
  width: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--page-margin) 1rem var(--page-margin);
  z-index: 100;
  background-color: var(--bg-color);
  box-sizing: border-box;
}

/* Brand Title */
.brand {
  display: flex;
  flex-direction: column;
}

.brand h1 {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.brand h1 a {
  display: inline-block;
}

.brand .sub-brand {
  font-family: var(--font-en), sans-serif;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* Nav Menu List */
#list {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

#list li {
  list-style: none;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding-right: 42px;
  cursor: pointer;
  white-space: nowrap;
}

#list li:last-child {
  padding-right: 0;
}

#list li a,
#list li button {
  color: var(--text-primary);
  font-family: var(--font-en);
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

#list li .ko-label {
  font-family: var(--font-ko);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-primary);
}

#list li .en-label {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

#list li.active a,
#list li.active button {
  font-weight: 600;
}

#list li.active .ko-label {
  font-weight: 600;
  color: #000000;
}

#list li.active .en-label {
  color: var(--text-muted);
}

#list li a:hover,
#list li button:hover {
  opacity: 0.55;
}

/* Mobile adjustments */
@media screen and (max-width: 900px) {
  header {
    height: auto;
    padding: 1.25rem var(--page-margin);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  body {
    padding-top: 6.8rem;
  }

  .brand h1 {
    font-size: 21px;
  }

  #list {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  #list::-webkit-scrollbar {
    display: none;
  }

  #list li {
    padding-right: 22px;
  }

  #list li .ko-label {
    font-size: 13px;
  }

  #list li .en-label {
    display: none;
  }
}
