
/* === Header === */
.site-header {
  background: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;

  /* border-bottom: 1px solid var(--border-color); */
}

.header-left,
.header-right {
  display: flex;
  gap: 0.5rem;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 600;
  /* letter-spacing: -0.01em; */
  color: var(--text-color);
}

.menu-btn,
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-btn svg,
.icon-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: var(--text-color);
}

#theme-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* === Search Bar === */
.search-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.search-bar input {
  flex: 1;
  max-width: 400px;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input:focus {
  outline: none;
}

.search-bar button {
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--link-color);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-bar button:hover {
  background-color: #357ae8;
}

.hidden {
  display: none;
}


/* menu/menu.css */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px; /* fully hide */
  width: 260px;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-y: auto;
  transition: left 0.3s ease;
  z-index: 1000;
  padding: 1rem;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
}

.sidebar.visible {
  left: 0;
}

.menu-section {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.menu-section li a {
  display: flex;
  align-items: center;
  padding: 0.4rem;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 4px;
  gap: 0.5rem;
}

/* .menu-section li a:hover {
  background-color: #1a1a1a;
} */

.menu-divider {
  font-size: 0.75rem;
  color:orange;
  text-transform: uppercase;
  margin: 1rem 0 0.3rem 0;
  font-weight: bold;
  cursor: pointer;
}

.avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.collapsible-content {
  display: none;
}

.menu-divider.active + .collapsible-content {
  display: block;
}

/* OPEN CLASS for default visible */
.collapsible-content.open {
  display: block;
}

/* Close button */
.close-btn {
  background: transparent;
  color: var(--text-color);
  border: none;
  font-size: 1.3rem;
  float: right;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

#social-menu li {
  display: inline-block;
  margin-right: 0.5rem;
}