@use '../../../../styles';

.nft-list {
    .nft-list__header {
        display: flex;
        align-items: center;
        padding-top: 12px;
        margin-bottom: 0;

        .nft-list__header-buttons {
            position: relative;
            display: flex;
            align-items: center;
            gap: 20px;
            margin-left: auto;
        }

        .nft-list__header-btn {
            @include styles.button-reset;
            width: 24px;
            height: 24px;
            color: styles.$grey;
            transition: color styles.$trans-fast;

            &:hover {
                color: styles.$primary;
            }
        }
    }

    .nft-list__content {
        padding-top: 12px;
    }

    .nft-list__desc {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0.1px;
        color: styles.$neutral-400;

        &._expandable {
            + .nft-list__more-btn {
                display: inline-block;
            }
        }

        &._expanded {
            display: block;
        }
    }

    .nft-list__more-btn {
        @include styles.button-reset;
        display: none;
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0.1px;
        color: styles.$primary;
        margin-top: 8px;
    }

    .nft-list__grid {
        margin-top: 28px;
    }

    .nft-list__loader {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 16px;
    }

    .nft-list__item {
        cursor: pointer;

        &._tile {
            position: relative;

            .nft-list__item-dot {
                position: absolute;
                top: 8px;
                right: 8px;
                z-index: 10;
            }
        }

        &._row {
            display: flex;
            align-items: center;
            gap: 8px;
            overflow: hidden;

            .nft-list__item-dot {
                flex: 0 0 auto;
            }
        }

        .nft-list__item-dot {
            width: 8px;
            height: 8px;
            border-radius: 4px;
            background-color: styles.$primary;
        }

        .nft-item__collection {
            display: none;
        }
    }
}
