/* dock.css — Bottom dock navigation */

.dock {
  grid-area: dock;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--glass-border-light);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
}

/* Dock Item */
.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  min-width: 64px;
  background: transparent;
  border: none;
  font-family: var(--font-family);
  position: relative;
}

.dock-item:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.dock-item:active {
  transform: scale(0.95);
}

/* Active state */
.dock-item.active {
  color: var(--accent-primary);
  position: relative;
}

.dock-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* Dock Icon */
.dock-icon {
  width: 24px;
  height: 24px;
}

.dock-icon svg {
  width: 24px;
  height: 24px;
}

/* Dock Label */
.dock-label {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

/* Notification Badge */
.dock-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 16px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.6);
  pointer-events: none;
}

.dock-badge.hidden {
  display: none;
}

/* Mobile: fixed bottom, full width, safe area */
@media (max-width: 768px) {
  .dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    z-index: var(--z-sticky);
  }

  .dock-item {
    min-width: 0;
    flex: 1;
    padding: 0.4rem 0.25rem;
  }
}

/* Desktop: optional smaller labels */
@media (min-width: 769px) {
  .dock-label {
    font-size: 0.65rem;
    opacity: 0.85;
  }

  .dock-item:hover .dock-label {
    opacity: 1;
  }
}
