/**
 *
 * Barra superior do topo: radio ao vivo, data e troca de regiao.
 * handler: pp-topbar
 * deps: pp-layout
 * version: 1.0.0
 *
 * @package theme-headers
 *
 */

.topbar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
}

.topbar__live {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  font-weight: 500;
  font-size: 16px;
}

.topbar__live-label {
  display: none;
}

.topbar__date {
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .topbar {
    font-size: var(--text-sm);
  }

  .topbar__inner {
    gap: var(--space-5);
  }

  .topbar__live {
    gap: var(--space-2);
    font-size: var(--text-md);
  }

  .topbar__live-label {
    display: flex;
  }

  .topbar__live-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-width: 2px;
  }

  .topbar__live-icon::before,
  .topbar__live-icon::after {
    bottom: 1px;
    width: 3px;
    height: 6px;
  }
}
