/* === Navigation Components === */

/* === Design System Demo Navigation === */
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Design System Demo Specific Styles */
.demo-container .navigation {
    padding: var(--space-md) 0;
}

.demo-container .progress-item:hover {
    background: rgba(225, 37, 27, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.demo-container .progress-item.active {
    transform: scale(1.05);
}

/* Navigation Container */
.navigation {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-width-thin) solid var(--color-gray-200);
}

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  max-width: var(--container-xl);
  margin: 0 auto;
}

.nav-brand {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, #CC8A6B 0%, #B01E16 50%, #6600CC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-brand h1 {
  margin: 0;
  background: linear-gradient(135deg, #CC8A6B 0%, #B01E16 50%, #6600CC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Progress Navigation */
.progress-bar {
  flex: 1;
  max-width: 600px;
  margin-left: auto;
}

.progress-container {
  position: relative;
  width: 100%;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  margin-bottom: var(--space-sm);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #FFB199 0%, #E1251B 50%, #8000FF 100%);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.progress-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xs);
  overflow-x: auto;
  padding: var(--space-xs) 0;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: var(--font-xs);
  font-weight: 500;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}

.progress-item:hover {
  background: rgba(225, 37, 27, 0.05);
  color: var(--primary-dark);
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.progress-item.active {
  background: linear-gradient(135deg, #FFB199 0%, #E1251B 50%, #8000FF 100%);
  color: white;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(225, 37, 27, 0.25);
}

.progress-item.completed {
  background: var(--success);
  color: white;
  border-color: transparent;
}

.progress-item.completed .progress-indicator {
  background: white;
}

.progress-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.progress-item.active .progress-indicator,
.progress-item.completed .progress-indicator {
  opacity: 1;
  transform: scale(1.2);
}

.progress-label {
  font-size: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  padding: var(--space-md);
}

.nav-toggle {
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--border-radius-md);
  transition: background var(--timing-base) var(--ease-out);
}

.nav-toggle:hover {
  background: var(--color-gray-100);
}

.nav-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-primary);
  border-right: var(--border-width-thin) solid var(--color-gray-200);
  transition: left var(--timing-base) var(--ease-out);
  z-index: var(--z-modal);
  overflow-y: auto;
}

.nav-mobile-menu.open {
  left: 0;
}

.nav-mobile-header {
  padding: var(--space-xl) var(--space-lg);
  border-bottom: var(--border-width-thin) solid var(--color-gray-200);
}

.nav-mobile-items {
  padding: var(--space-lg);
}

.nav-mobile-item {
  display: block;
  padding: var(--space-md);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--timing-base) var(--ease-out);
}

.nav-mobile-item:hover,
.nav-mobile-item.active {
  background: var(--gradient-subtle);
}

/* Header Layout */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-width-thin) solid var(--color-gray-200);
}

.header .navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-md);
  transition: all var(--timing-base) var(--ease-out);
}

.nav-links a:hover {
  color: var(--color-adobe-red);
  background: rgba(225, 37, 27, 0.1);
}

.nav-links a.nav-active {
  color: var(--color-purple);
  background: rgba(128, 0, 255, 0.1);
  font-weight: var(--font-weight-semibold);
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .nav-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-links {
    gap: var(--space-md);
  }
  
  .nav-links a {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-sm);
  }
  
  .progress-bar {
    max-width: none;
    margin: var(--space-sm) 0 0 0;
    order: 3;
    flex-basis: 100%;
  }
  
  .navigation {
    flex-wrap: wrap;
  }
  
  .progress-items {
    justify-content: flex-start;
    gap: var(--space-xs);
  }
  
  .progress-item {
    padding: var(--space-xs);
    font-size: 10px;
  }
  
  .progress-label {
    display: none;
  }
  
  .progress-item:hover .progress-label,
  .progress-item.active .progress-label {
    display: none;
  }
  
  .progress-indicator {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .progress-track {
    height: 3px;
    margin-bottom: var(--space-xs);
  }
  
  .progress-item {
    padding: 4px;
    min-width: 20px;
    justify-content: center;
  }
  
  .progress-indicator {
    width: 8px;
    height: 8px;
  }
}