/* Material Design 3 Navigation Drawer Component */

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  width: 360px;
  max-width: 90vw;
  background: #18171a;
  border-right: 1px solid #2e2c30;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(-100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.5);
}

.nav-drawer.open {
  transform: translateX(0);
}

/* Drawer Header */
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #2e2c30;
  gap: 12px;
}

.nav-drawer-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5dfd5;
  margin: 0;
}

.nav-drawer-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #a19d95;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: color 150ms ease;
}

.nav-drawer-close-btn:hover {
  color: #e5dfd5;
}

/* Drawer Content */
.nav-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

.nav-drawer-section {
  padding: 12px 16px;
  border-bottom: 1px solid #2e2c30;
  margin-bottom: 8px;
}

.nav-drawer-section-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffdea5;
  margin: 0 0 8px 0;
}

.nav-drawer-section-title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 400;
  color: #e5dfd5;
  margin: 0;
  font-family: Newsreader, Georgia, serif;
}

/* Drawer Navigation Items */
.nav-drawer-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #a19d95;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 150ms ease;
  cursor: pointer;
}

.nav-drawer-item:hover {
  color: #e5dfd5;
  background: #242327;
}

.nav-drawer-item.active {
  color: #e5dfd5;
  border-left-color: #ffdea5;
  background: #1d1c1f;
}

.nav-drawer-item .material-symbols-outlined {
  font-size: 18px;
  flex-shrink: 0;
}

.nav-drawer-item-count {
  margin-left: auto;
  font-size: 11px;
  color: #7d7971;
  font-weight: 400;
}

.nav-drawer-item:hover .nav-drawer-item-count {
  color: #a19d95;
}

/* Drawer Footer */
.nav-drawer-footer {
  padding: 16px;
  border-top: 1px solid #2e2c30;
  background: #0e0e10;
}

.nav-drawer-copyright {
  font-size: 10px;
  color: #7d7971;
  margin: 0;
  line-height: 1.4;
}

/* Scrollbar styling for drawer content */
.nav-drawer-content::-webkit-scrollbar {
  width: 6px;
}

.nav-drawer-content::-webkit-scrollbar-track {
  background: transparent;
}

.nav-drawer-content::-webkit-scrollbar-thumb {
  background: #2e2c30;
  border-radius: 3px;
}

.nav-drawer-content::-webkit-scrollbar-thumb:hover {
  background: #3e3c40;
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
  .nav-drawer {
    width: 100%;
    max-width: 280px;
  }

  .nav-drawer-section-title {
    font-size: 24px;
  }

  .nav-drawer-header {
    padding: 12px;
  }

  .nav-drawer-content {
    padding: 12px 0;
  }

  .nav-drawer-item {
    padding: 10px 12px;
    font-size: 11px;
  }
}

/* Tablet and above */
@media (min-width: 768px) {
  .nav-drawer-header button {
    display: none;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav-drawer {
    transition: none;
  }
}
