/* WNM Sol Sidebar — Linear tarzı */

/* Sayfa içeriğini sidebar kadar sağa it */
.page-wrap { margin-left: 64px; }
@media (max-width: 768px) { .page-wrap { margin-left: 0; } }

/* SOL SIDEBAR */
.left-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 64px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(0, 229, 255, 0.1);
  z-index: 200;
  transition: width 200ms ease-out;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.left-sidebar:hover { width: 230px; }

/* Logo bloğu — sidebar + navbar kesişim noktası */
.lsb-header {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.lsb-logo-link { display: block; line-height: 0; }
.lsb-logo-mark { height: 30px; width: auto; display: block; }
.lsb-logo-full { height: 64px; width: auto; display: none; }
.left-sidebar:hover .lsb-logo-mark { display: none; }
.left-sidebar:hover .lsb-logo-full { display: block; }

/* Nav bölümleri */
.lsb-nav,
.lsb-cats,
.lsb-bottom-nav {
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
}

/* Tek item stili */
.lsb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  color: rgba(168, 173, 196, 1); /* --gray */
  white-space: nowrap;
  transition: background 120ms, color 120ms;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  min-width: 0;
}
.lsb-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f0f2ff;
}
.lsb-item-active {
  color: #00e5ff !important; /* --cyan */
}
.lsb-item-active:hover {
  background: rgba(0, 229, 255, 0.06);
}

/* İkon — her zaman sabit genişlikte */
.lsb-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}

/* Etiket — hover'da görünür */
.lsb-label {
  opacity: 0;
  transition: opacity 150ms 50ms;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.left-sidebar:hover .lsb-label { opacity: 1; }

/* Ok — kategori collapse için */
.lsb-arrow {
  margin-left: auto;
  font-size: 14px;
  opacity: 0;
  display: inline-block;
  transition: opacity 150ms, transform 200ms;
  flex-shrink: 0;
  color: rgba(168, 173, 196, 0.6);
}
.left-sidebar:hover .lsb-arrow { opacity: 1; }
.lsb-cat-group[data-open="true"] > .lsb-cat-head .lsb-arrow {
  transform: rotate(90deg);
  opacity: 1;
  color: #00e5ff;
}

/* Ayraç */
.lsb-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 6px 12px;
  flex-shrink: 0;
}

/* Alt başlıklar (sub items) */
.lsb-sub {
  display: none;
  flex-direction: column;
  padding-left: 4px;
}
.left-sidebar:hover .lsb-cat-group[data-open="true"] .lsb-sub {
  display: flex;
}
.lsb-sub-item {
  padding: 7px 8px 7px 28px;
  border-radius: 6px;
  color: rgba(92, 96, 128, 1); /* --gray2 */
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-align: left;
  transition: color 120ms, background 120ms;
  width: 100%;
}
.lsb-sub-item:hover {
  color: #f0f2ff;
  background: rgba(255, 255, 255, 0.04);
}

/* Alt menü en alta yapışır */
.lsb-bottom-nav { margin-top: auto; padding-bottom: 16px; }

/* Kategori başlık butonu scroll için hafif overflow */
.lsb-cats {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  flex: 1;
}
.lsb-cats::-webkit-scrollbar { display: none; }

/* Mobile: sidebar slider olarak açılır */
@media (max-width: 768px) {
  .left-sidebar {
    transform: translateX(-100%);
    transition: transform 250ms ease-out;
    width: 230px;
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.6);
  }
  .left-sidebar.mobile-open {
    transform: translateX(0);
  }
  /* Mobile açıkken tüm etiketler ve ok görünür */
  .left-sidebar.mobile-open .lsb-label { opacity: 1; }
  .left-sidebar.mobile-open .lsb-arrow { opacity: 1; }
  .left-sidebar.mobile-open .lsb-logo-mark { display: none; }
  .left-sidebar.mobile-open .lsb-logo-full { display: block; }
  /* Hover genişlemesi mobile'da devre dışı */
  .left-sidebar:hover { width: 64px; }
  .left-sidebar.mobile-open:hover { width: 230px; }
}
