/* ========================================
   UNIFIED NAVIGATION - STYLES
   ========================================
   Betrifft: Neue unified-nav (links, vertikal, 60px breit)
   Farben aus shared-global.css
*/

/* === UNIFIED NAV BASE === */
.unified-nav {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  background: rgba(var(--bg-primary-rgb, 255, 255, 255), 0.95);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--color-secondary);
  border-radius: 0 12px 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  gap: 2rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* === NAV SECTIONS === */
.nav-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.nav-section:hover {
  opacity: 1;
}

/* === NAV ITEMS === */
.unified-nav-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
}

.unified-nav-item i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* === SVG ICONS === */
.unified-nav-item img {
  width: 28px;
  height: 28px;
  transition: all 0.3s ease;
}

/* === YANG/BIAN/YIN SVG FARBEN === */
.unified-nav-item.yang-color img {
  filter: sepia(0.5) hue-rotate(120deg) saturate(5);
}

.unified-nav-item.bian-color img {
  filter: sepia(0.5) hue-rotate(180deg) saturate(5);
}

.unified-nav-item.yin-color img {
  filter: sepia(0.5) hue-rotate(240deg) saturate(5);
}

/* === HOVER EFFECTS === */
.unified-nav-item.yang-color:hover img {
  filter: hue-rotate(45deg) saturate(2.5) brightness(2.4);
}

.unified-nav-item.bian-color:hover img {
  filter: hue-rotate(200deg) saturate(2.5) contrast(2.4);
}

.unified-nav-item.yin-color:hover img {
  filter: sepia(0.5) hue-rotate(290deg) saturate(2.2) brightness(1.4);
}

.unified-nav-item:hover {
  background: var(--color-secondary);
  transform: scale(1.1);
}

.unified-nav-item:hover i,
.unified-nav-item:hover img {
  transform: scale(1.15);
}

/* === HOVER LABELS === */
.unified-nav-item::after {
  content: attr(data-label);
  position: absolute;
  left: 100%;
  margin-left: 1rem;
  background: rgba(26, 26, 26, 0.95);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-size: 0.9rem;
  z-index: 10;
}

.unified-nav-item:hover::after {
  opacity: 1;
}

/* === ACTIVE STATE === */
.unified-nav-item.active {
  background: var(--color-primary);
}

/* === YANG/BIAN/YIN HOVER COLORS === */
.unified-nav-item.yang-color:hover {
  background: var(--accent-yang-secondary);
  color: var(--accent-yang);
}

.unified-nav-item.bian-color:hover {
  background: var(--accent-bian-secondary);
  color: var(--accent-bian);
}

.unified-nav-item.yin-color:hover {
  background: var(--accent-yin-secondary);
  color: var(--accent-yin);
}

/* === CONTENT LAYOUT ADJUSTMENT === */
.content-with-sidebar {
  margin-left: 60px !important;
}

/* === HIDE OLD THEME TOGGLE === */
.theme-toggle:not(#theme-toggle-nav) {
  display: none !important;
}
