// (C) 2024-2025 GoodData Corporation
@use "../../../styles/scss/mixins";

.gd-ui-kit-breadcrumb {
    $root: &;

    display: flex;
    align-items: center;
    align-self: stretch;
    font-family: var(--gd-font-family);

    // reset styles
    ol {
        list-style: none;
        margin: 0;
        padding: 0;

        li {
            display: inline-flex;

            button {
                border: none;
                background: none;
            }
        }
        li:last-of-type #{$root}__item {
            cursor: default;

            &:hover {
                background: none;
            }
        }
    }

    &__item {
        border-radius: 3px;
        display: flex;
        padding: 0 5px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        cursor: pointer;

        color: var(--gd-palette-complementary-8);
        font-feature-settings:
            "liga" off,
            "clig" off;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 23px;

        &:hover {
            background: var(--gd-palette-complementary-2);
        }
    }

    &__separator {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    // Paired with a page heading rather than a dialog title, so the trail carries the page's own
    // type scale and the roomier hit area that goes with it.
    &--size-large {
        #{$root}__item {
            padding: 5px;
            font-size: 17px;

            &:hover {
                background: var(--gd-palette-complementary-3);
            }
        }

        #{$root}__separator {
            margin: 0 5px;
        }
    }
}
