.component-LB {
    display: block;
    padding: 40px 0;
}

.component-LB-container {
    @include outer-container;
}

.component-LB-header {
    @include shift(2);
    @include span-columns(8);

    display: flex !important;
    align-items: flex-start;
    justify-content: center;
}

.component-LB-header-content {
    padding: 0 70px;

    position: relative;
}

.component-LB-header-title {
    color: black;
    font-family: lucien-bold, sans-serif;
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-align: center;
}

.component-LB-header-period {
    margin-top: 5px;

    color: $color-golden;
    font-family: lucien-bold, sans-serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-align: center;
}

.component-LB-header-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    position: absolute;
    left: 0;
    top: 75%;
    transform: translateY(-50%);
}

.component-LB-header-controls-arrow {
    cursor: pointer;
    height: 60px;
    width: 40px;

    transition: transform 0.3s ease;

    svg {
        display: block;
        fill: #A0A0A0;
        height: 100%;
        width: 100%;
    }
    &.inactif {
        visibility: hidden;
    }
}

.component-LB-header-controls-arrow--prev {
    transform: rotate(90deg);

}

.component-LB-header-controls-arrow--prev:hover {
    transform: rotate(90deg) translateY(10px);
}

.component-LB-header-controls-arrow--next {
    transform: rotate(-90deg);
}

.component-LB-header-controls-arrow--next:hover {
    transform: rotate(-90deg) translateY(10px);
}

.component-LB-menu {
    @include shift(2);
    @include span-columns(8);

    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-top: 90px;
}

.component-LB-menu-search {
    display: flex;
}

.component-LB-menu-search-field {
    width: 330px;
}

.component-LB-menu-search-submit {
    margin-left: 20px;
    padding: 0 1.5em !important;
}

.component-LB-menu-share {
    display: flex;
    align-items: center;
}

.component-LB-menu-share-label {
    margin-right: 20px;

    font-family: lucien-book, sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.component-LB-menu-share-links {
    display: flex;
    align-items: center;
}

.component-LB-menu-share-links-item {
    cursor: pointer;
    display: block;

    transition: transform 0.3s ease;

    &:not(:first-child) {
        margin-left: 5px;
    }
}

.component-LB-menu-share-links-item:hover {
    transform: scale(1.1);
}

.component-LB-grid {
    @include shift(2);
    @include span-columns(8);

    margin-top: 30px;
}

.component-LB-grid-content {
    width: 100%;
}

.component-LB-grid-row {
    border-bottom: 1px solid black;
}

.component-LB-grid-cell {
    padding: 18px 0 18px 25px;
    vertical-align: middle;

    &:first-child {
        .component-LB-grid-cell-content {
            padding-left: 0;

            &::before {
                display: none;
            }
        }
    }
    &:last-child {
        .component-LB-grid-cell-content {
            padding-right: 25px;
        }
    }
}

.component-LB-grid-cell[data-name="rank"] {
    width: 48px;

    .component-LB-grid-cell-content {
        color: #000000;
        font-family: lucien-bold, sans-serif;
        font-size: 1.5rem;
        text-align: center;
    }
}

.component-LB-grid-cell[data-name="player"] {
    .component-LB-grid-cell-content {
        color: $color-golden;
        font-family: lucien-bold, sans-serif;
        font-size: 1.25rem;
    }
}

.component-LB-grid-cell[data-name="evolution"] {
    width: 48px;

    .component-LB-grid-cell-content {
        text-align: center;
    }
    &[data-evolution="up"] {
        .component-LB-grid-icon {
            svg {
                fill: #39B54A;
            }
        }
    }
    &[data-evolution="none"] {
        .component-LB-grid-icon {
            transform: rotate(90deg);

            svg {
                fill: #FFA54A;
            }
        }
    }
    &[data-evolution="down"] {
        .component-LB-grid-icon {
            transform: rotate(180deg);

            svg {
                fill: #ED1C24;
            }
        }
    }
}

.component-LB-grid-cell[data-name="points"] {
    .component-LB-grid-cell-content {
        color: #000000;
        font-family: lucien-bold, sans-serif;
        font-size: 1rem;

        & > * {
            vertical-align: middle;
        }
        .component-LB-grid-icon {
            display: inline-block;
            margin-left: 5px;
            transform: translateY(-3px);
        }
    }
}

.component-LB-grid-cell-content {
    padding-left: 25px;
    position: relative;

    &::before {
        background: #D1D1D1;
        content: '';
        display: block;
        height: 25px;
        width: 1px;

        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

.component-LB-grid-cell-content--numeric {
    text-align: right;
}

.component-LB-grid-icon {
    display: inline-block;
    height: 20px;
    width: 20px;

    svg {
        display: block;
        height: 100%;
        width: 100%;
    }
    img {
        display: block;
        width: 100%;
    }
}

.component-LB-grid-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.component-LB-grid-pagination-button {
    display: block;
    font-family: lucien-book, sans-serif;
    font-size: 1rem;

    position: relative;
    transition: color 0.3s ease;

    &::before {
        content: '';

        position: absolute;
        top: 50%;
        transform: translateY(-64%);
        transition: transform 0.3s ease;
    }
}

.component-LB-grid-pagination-button--prev {
    padding-left: 20px;

    &::before {
        @include triangle(12px, gray, left);

        left: 0;
    }

    &.hidden {
        visibility: hidden;
    }
}

.component-LB-grid-pagination-button--next {
    padding-right: 20px;

    &::before {
        @include triangle(12px, gray, right);

        right: 0;
    }
    &.hidden {
        visibility: hidden;
    }
}

.component-LB-grid-pagination-button:hover {
    color: $color-golden;
}

.component-LB-grid-pagination-button--prev:hover {
    &::before {
        transform: translateX(-5px) translateY(-64%);
    }
}

.component-LB-grid-pagination-button--next:hover {
    &::before {
        transform: translateX(5px) translateY(-64%);
    }
}

.component-LB-grid-pagination-pages {
    display: flex;
    align-items: flex-end;
    margin: 0 40px;
}

.component-LB-grid-pagination-pages-item {
    display: block;
    font-family: lucien-book, sans-serif;
    font-size: 1rem;
    text-decoration: underline;

    transition: color 0.3s ease;

    &:not(:first-child) {
        margin-left: 10px;
    }
    &.active {
        color: $color-golden;
    }
}

.component-LB-grid-pagination-pages-item:hover {
    color: $color-golden;
}

.component-LB-grid-pagination-pages-ellipsis {
    display: block;
    font-family: lucien-book, sans-serif;
    font-size: 0.9rem;
    margin-left: 10px;
}

@include tablet-landscape-and-below {
    .component-LB-header-controls-arrow--prev:hover {
        transform: rotate(90deg);
    }
    .component-LB-header-controls-arrow--next:hover {
        transform: rotate(-90deg);
    }

    .component-LB-menu {
        @include shift(1);
        @include span-columns(10);
    }
    .component-LB-menu-search-field {
        width: 250px;
    }

    .component-LB-grid {
        @include shift(1);
        @include span-columns(10);
    }
}

@include mobile-landscape-and-below {
    .component-LB-container {
        padding: 0 20px;
    }

    .component-LB-header {
        float: none;
        margin: 0;
        width: 100%;
    }
    .component-LB-header-content {
        padding: 0 40px;
    }
    .component-LB-header-title {
        font-size: 0.7rem;
    }
    .component-LB-header-period {
        border: 1px solid $color-golden;
        padding: 0.8em;

        font-size: 0.7rem;
    }
    .component-LB-header-controls {
        width: auto;

        left: -10px;
        right: -10px;
        top: 70%;
    }
    .component-LB-header-controls-arrow {
        height: 30px;
        width: 30px;
    }

    .component-LB-menu {
        display: block !important;
        float: none;
        margin: 0;
        width: 100%;
    }
    .component-LB-menu-search {
        margin-top: 40px;
    }
    .component-LB-menu-search-field {
        flex-grow: 2;
        flex-shrink: 2;
        width: auto;
    }
    .component-LB-menu-search-submit {
        flex-grow: 1;
        flex-shrink: 1;
        padding: 1em !important;
    }
    .component-LB-menu-share {
        justify-content: center;
        margin-top: 20px;
    }

    .component-LB-grid {
        display: block !important;
        float: none;
        margin: 20px 0 0;
        width: 100%;
    }
    .component-LB-grid-icon {
        height: 16px;
        width: 16px;
    }
    .component-LB-grid-cell {
        padding: 6px 0 6px 10px;

        &:last-child {
            .component-LB-grid-cell-content {
                padding-right: 10px;
            }
        }
    }
    .component-LB-grid-cell[data-name="rank"] {
        width: auto;

        .component-LB-grid-cell-content {
            font-size: 0.9rem;
        }
    }
    .component-LB-grid-cell[data-name="evolution"] {
        width: 24px;
    }
    .component-LB-grid-cell[data-name="player"] {
        .component-LB-grid-cell-content {
            font-size: 0.8rem;
        }
    }
    .component-LB-grid-cell[data-name="points"] {
        .component-LB-grid-cell-content {
            font-size: 0.7rem;
        }
    }
    .component-LB-grid-cell-content {
        padding-left: 10px;

        &::before {
            height: 18px;
        }
    }
    .component-LB-grid-pagination-button {
        font-size: 0.8rem;

        &::before {
            transform: translateY(-56%);
        }
    }
    .component-LB-grid-pagination-button--prev:hover {
        &::before {
            transform: translateX(-5px) translateY(-56%);
        }
    }
    .component-LB-grid-pagination-button--next:hover {
        &::before {
            transform: translateX(5px) translateY(-56%);
        }
    }
    .component-LB-grid-pagination-pages {
        margin: 0 20px;
    }
    .component-LB-grid-pagination-pages-item {
        font-size: 0.8rem;
    }
}