/* Navigation Menu */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--panel, rgba(255, 252, 245, 0.95));
  border-bottom: 1px solid var(--stroke, #d8ccb4);
  backdrop-filter: blur(8px);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text, #1b1a17);
  text-decoration: none;
  margin: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text, #1b1a17);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent, #bb3e03);
}

.nav-links a.active {
  color: var(--accent, #bb3e03);
  font-weight: 700;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent, #bb3e03);
}

.nav-logout {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text, #1b1a17);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0;
  transition: color 0.2s ease;
}

.nav-logout:hover {
  color: var(--accent, #bb3e03);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text, #1b1a17);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--panel, rgba(255, 252, 245, 0.98));
    border-bottom: 1px solid var(--stroke, #d8ccb4);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 500px;
  }

  .nav-links li {
    border-bottom: 1px solid var(--stroke, #d8ccb4);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 12px 20px;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-links a.active {
    background: var(--accent-soft, #ffe0c7);
  }

  .nav-logout {
    display: block;
    padding: 12px 20px;
    width: 100%;
    text-align: left;
  }

  .navbar {
    padding: 0;
  }

  .nav-container {
    flex-wrap: wrap;
  }
}
