// Override logo in header to use favicon image
.logo.logo--wordmark {
  // Hide the SVG content
  use {
    display: none;
  }

  // Create a pseudo-element with the favicon
  &::before {
    content: '';
    display: inline-block;
    width: 48px;
    height: 48px;
    background-image: url('/packs/favicon-48x48-ClF1t9GN.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
}

// Alternative: Use the SymbolLogo which already uses an img tag
// and ensure it's sized correctly
.logo.logo--icon {
  width: 48px;
  height: 48px;
}

// Theme Selector
.theme-selector {
  position: relative;
  margin-bottom: 8px;

  &__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: background-color 0.2s ease;

    &:hover {
      background: var(--color-bg-secondary);
    }

    svg {
      width: 24px;
      height: 24px;
    }
  }

  &__dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-primary);
    border-radius: 12px;
    box-shadow: var(--dropdown-shadow);
    margin-bottom: 8px;
    z-index: 1000;
  }

  &__section {
    padding: 12px;
  }

  &__section-title {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-secondary);
  }

  &__options {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  &__option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--color-text-primary);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
    width: 100%;

    &:hover {
      background: var(--color-bg-tertiary);
    }

    &.active {
      background: var(--color-bg-brand-softest);
      color: var(--color-text-brand);

      svg {
        fill: var(--color-text-brand);
      }
    }

    svg {
      width: 18px;
      height: 18px;
    }

    span {
      font-size: 14px;
    }
  }
}
