/* ============================================================
   Секция 01: Top Utility Bar — Стили (Нейтральная версия)
   ============================================================ */

.setka-topbar {
  background-color: var(--bg-topbar);
  color: var(--text-topbar);
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1;
  border-bottom: 1px solid var(--topbar-border);
  position: relative;
  z-index: 105;
}

.setka-topbar :focus-visible {
  outline: 2px solid var(--text-topbar);
  outline-offset: 2px;
}

.setka-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  gap: 16px;
}

.setka-topbar__left,
.setka-topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.setka-topbar__divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background-color: var(--topbar-divider);
}

.setka-topbar__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.setka-topbar__weather {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.weather-city {
  opacity: 0.8;
}

.weather-temp {
  font-weight: 600;
  color: #ffffff;
}

[data-theme="dark"] .weather-temp {
  color: var(--ink-950);
}

.setka-topbar__currencies {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.setka-topbar__currencies::-webkit-scrollbar {
  display: none;
}

.currency-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.currency-code {
  opacity: 0.65;
  font-family: var(--font-mono);
  font-size: 10px;
}

.currency-rate {
  font-family: var(--font-mono);
  font-weight: 500;
  color: #ffffff;
}

[data-theme="dark"] .currency-rate {
  color: var(--ink-950);
}

.currency-arrow {
  display: inline-flex;
  align-items: center;
  opacity: 0.8;
}

.currency-item--up .currency-arrow {
  color: var(--quote-up);
}

.currency-item--down .currency-arrow {
  color: var(--quote-down);
}

/* Кнопка переключения темы с увеличенным тач-таргетом 44×44px */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-topbar);
  width: 24px;
  height: 24px;
  border-radius: var(--r-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  padding: 0;
  position: relative;
}

.theme-toggle-btn::before {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -10px;
  right: -10px;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.theme-icon--sun { display: none; }
.theme-icon--moon { display: block; }

[data-theme="dark"] .theme-icon--sun { display: block; }
[data-theme="dark"] .theme-icon--moon { display: none; }

@media (max-width: 768px) {
  .setka-topbar__inner {
    height: 30px;
  }
  .setka-topbar__weather,
  .setka-topbar__divider--left {
    display: none;
  }
  .currency-item:nth-child(n+3) {
    display: none;
  }
}
