/* ===== THEME TOGGLE (day/night pill button) ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: 1.25rem;
  transition: border-color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--color-gold);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.theme-toggle__option {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.4;
  white-space: nowrap;
}

.theme-toggle__option:hover {
  background: rgba(201, 168, 76, 0.1);
}

/* Active state: light mode — "ден" is lit */
:root[data-theme="light"] .theme-toggle__option[data-theme-value="light"] {
  background: var(--color-gold);
  color: #fff;
}

/* Active state: dark mode — "нощ" is lit */
:root[data-theme="dark"] .theme-toggle__option[data-theme-value="dark"] {
  background: var(--color-gold);
  color: var(--color-bg);
}

/* ===== HEADER CONTROLS (toggle + lang switch) ===== */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  line-height: 1.4;
  white-space: nowrap;
}

.lang-switch:hover {
  border-color: var(--color-gold);
  background: rgba(201, 168, 76, 0.1);
  color: var(--color-gold);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .theme-toggle {
    margin-left: 0;
    margin-right: 0;
  }

  .theme-toggle__option {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }

  .header-controls {
    gap: 0.5rem;
  }

  .lang-switch {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }
}
