/* Cognitive Status Light — Phase 1 (restyled for dark gradient) */
.cognitive-status {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 820px;
  margin: 12px auto 0;
  padding: 0 4px;
  height: 20px;
}

.cog-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background var(--duration-normal, 0.3s) var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
              box-shadow var(--duration-normal, 0.3s) var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
  flex-shrink: 0;
}

.cog-dot.active {
  background: rgba(255, 255, 255, 0.4);
}

.cog-dot.idle {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: none;
  transition: background 0.4s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) 150ms;
}

.cog-dot.ready {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: none;
  transition: background 0.4s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) 150ms;
}

.cog-dot.thinking {
  background: #2a9dcf;
  box-shadow: 0 0 8px rgba(42, 157, 207, 0.4);
  animation: cog-pulse 1.2s ease-in-out infinite;
}

.cog-dot.response {
  background: #1e7fa8;
  box-shadow: 0 0 8px rgba(30, 127, 168, 0.3);
  animation: cog-settle 0.6s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

@keyframes cog-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes cog-settle {
  0% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}

.cog-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.cog-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2a9dcf, #1e7fa8);
  transform: scaleX(0);
  transform-origin: left;
  transition:
    transform var(--morph-duration, 0.6s) var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) 80ms,
    opacity var(--duration-normal, 0.3s) var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) 80ms;
  opacity: 0;
}

.hero[data-state="thinking"] .cog-bar-fill {
  background: linear-gradient(90deg, #2a9dcf, #1e7fa8);
}

.hero[data-state="response"] .cog-bar-fill {
  background: linear-gradient(90deg, #1e7fa8, #2a9dcf);
}

.cog-date {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.hero[data-state="response"] .cognitive-status {
  height: 14px;
  margin: 10px auto 0;
  gap: 6px;
}

.hero[data-state="response"] .cog-bar {
  height: 2px;
}

.hero[data-state="ready"] .cognitive-status {
  height: 12px;
  margin: 8px auto 0;
  gap: 4px;
}

.hero[data-state="ready"] .cog-dot {
  width: 8px;
  height: 8px;
}

.hero[data-state="ready"] .cog-bar {
  height: 2px;
}

@media (max-width: 768px) {
  .cog-date { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cog-dot.thinking { animation: none; opacity: 1; }
  .cog-dot.response { animation: none; }
  .cog-dot.idle { transition-delay: 0ms; }
  .cog-dot.ready { transition-delay: 0ms; }
  .cog-bar-fill { transition-delay: 0ms; }
}
