/* ============================================
   MENU / NAVIGATION
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

.menu-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 50%;
  cursor: pointer;
  z-index: 101;
  padding: 0;
}

.menu-toggle:hover {
  background: #fafafa;
  border-color: #d0d0d0;
}

.menu-icon {
  width: 24px;
  height: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1a1a1a;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99;
  backdrop-filter: blur(4px);
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid #e8e8e8;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.menu-panel.is-open {
  transform: translateX(0);
}

.menu-content {
  padding: 80px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-header {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.menu-header h2 {
  font-size: 20px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
}

.menu-item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
}

.menu-item:hover {
  background: #fafafa;
  border-color: #e8e8e8;
}

.menu-item-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.menu-item-subtext {
  font-size: 13px;
  color: #666666;
  font-weight: 400;
}

.menu-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.menu-footer .menu-item {
  flex-direction: row;
  font-size: 13px;
  color: #666666;
}

body.menu-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    top: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
  }

  .menu-panel {
    width: 100%;
    max-width: 320px;
  }
}

