@import '../../../../assets/scss/abstracts/variables';
@import '../../../../assets/scss/abstracts/mixins';

@property --color-ranking-bookie-title {syntax: "<color>";inherits: true;initial-value: #000000;}
@property --color-ranking-bookie-ranking-since {syntax: "<color>";inherits: true;initial-value: #7f8c8d;}
@property --color-ranking-bookie-description {syntax: "<color>";inherits: true;initial-value: #000000;}

.rdg-blocks .rdg-ranking-bookie {
    width: 100%;

    .content {
        width: 100%;
        display: flex;
        flex-direction: column;

        @include title;

        .ranking-title {
            margin: 0;
            margin-bottom: .5rem;
            color: var(--color-ranking-bookie-title);
        }

        .ranking-data {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: .5rem;

            .ranking-since {
                color: var(--color-ranking-bookie-ranking-since);
            }

            .stars {
                display: flex;
                margin-left: .5rem;
                justify-content: center;
                align-items: center;
                gap: .2rem;

                &.ml-0 {
                    margin-left: 0;
                }

                .star {
                    width: 16px;
                    height: 16px;

                    &.star-fill {
                        background-repeat: no-repeat;
                        background-position: center center;
                        background-image: url('../images/star-fill.svg');
                    }

                    &.star-half {
                        background-repeat: no-repeat;
                        background-position: center center;
                        background-image: url('../images/star-half.svg');
                    }

                    &.star-empty {
                        background-repeat: no-repeat;
                        background-position: center center;
                        background-image: url('../images/star.svg');
                    }
                }
            }
        }

        .ranking-description {
            color: var(--color-ranking-bookie-description);
        }

        @include message;
    }
}

.acf-block-preview {
    .rdg-ranking-bookie {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
