@use '../../styles/mixins' as *;

// =============================================================================
// Status Bar — top bar with brand name, connection indicator, and env count
// =============================================================================

.container {
  @include surface-panel;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--font-size-lg);

  @include mobile {
    padding: var(--space-xs) var(--space-sm);
    z-index: 101;
  }
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--font-size-xl);
  cursor: pointer;
  padding: var(--space-xs);
  line-height: 1;

  @include mobile {
    display: block;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: var(--font-weight-heavy);
  font-size: var(--font-size-xl);
  letter-spacing: -0.5px;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color var(--transition-fast);

  &:hover {
    color: var(--accent-green);
  }
}

.brandLogo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.info {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  align-items: center;

  @include mobile {
    gap: var(--space-sm);
    font-size: var(--font-size-xs);
  }
}

.connectionLabel {
  @include mobile {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.connectionDot {
  font-size: var(--font-size-sm);

  &.connected {
    color: var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
  }

  &.disconnected {
    color: var(--accent-red);
  }

  &.connecting {
    color: var(--accent-yellow);
    animation: pulse 1.5s ease-in-out infinite;
  }
}

