@use 'design-system' as *;

.communityMenu {
    z-index: 1;
    display: flex;
    padding: $spacing-size-4 0px;
    list-style-type: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    // margin-top: $spacing-size-5; margin for title
    gap: 8px;
    flex-wrap: wrap;
}

.community-menu-item {
    padding: $spacing-size-2;
    padding-left: $spacing-size-4;
    padding-right: $spacing-size-4;
    cursor: pointer;
    opacity: 0.7;
    transition:
        background-color 0.2s,
        opacity 0.2s;
    display: inline-block;
    border-radius: var(--radius-4xl);

    margin-bottom: 0;
    a {
        color: var(--color-fg-secondary);
        text-decoration: none;
        display: block;
    }

    &:hover,
    &.selected {
        opacity: 1;
        background-color: var(--color-util-brand-100);
        color: var(--color-fg-primary);

        #{$selector-darkmode} & {
            background-color: color-mix(in srgb, var(--color-bg-primary), var(--color-fg-primary) 10%);
        }
    }
}
