@import "../../../Shared/assets/css/index.scss";

* {
    min-height: 0;
    min-width: 0;
}

.error-container,
.loading-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: 17.1875rem;
    width: 100%;
    padding-bottom: 5rem;
    padding-top: 5rem;
}

.error-container {
    flex-direction: column;
}

.screen-reduced {
    padding-bottom: 3.125rem;
    padding-top: 2.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    font-family: 'Noto Sans', sans-serif;

    .highlight-slide {
        display: none;
        margin-bottom: 2rem;

        .slick-dots {
            position: absolute;
            bottom: -1.5625rem;
            display: block;
            width: 100%;
            padding: 0;
            margin: 0;
            list-style: none;
            text-align: center;
        }

        .slick-next,
        .slick-prev .slick-arrow {
            display: none !important;
        }
    }

    .title-container {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .title {
            font-weight: 500;
            font-size: 2.1875rem;
            line-height: 2.5rem;
            letter-spacing: 0%;

        }

        .stat-anacom-icon-link {
            display: flex;
            gap: .5rem;
        }
    }

    .desktop-view {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 1rem;
    }

    .reduced-column {
        display: flex;
        flex-direction: column;
        flex: 1;
        align-items: start;
        text-align: left;
        justify-content: space-between;
        background: #fff;
        padding: 1rem;
        border-radius: 1rem;
        transition: all 0.3s ease-in-out;


        .slick-slide {
            padding: 0 .5rem; // Cria espaçamento horizontal
            box-sizing: border-box;
        }

        &.first {
            min-width: 50%;

            .reduced-column-content {
                h3 {
                    font-weight: 700;
                    font-size: 1.25rem;
                    line-height: 1.75rem;
                    color: #2B363C;
                    margin: 0 0 1rem 0;
                }

            }

        }

        &:hover {
            box-shadow: 0rem 1.875rem 3.75rem 0rem #00000014;
            transform: translateY(-1rem);
        }

        .reduced-column-content {
            display: flex;
            flex-direction: column;
            height: 100%;

            .badge-tag {
                font-weight: 400;
                font-size: .875rem;
                line-height: 1.5rem;
                width: fit-content;
                background-color: #FFE699;
                padding: 0 1rem;
                border-radius: 6.25rem;
                margin-bottom: 1.9375rem;
                justify-content: center;
                align-items: center;
            }

            h3 {
                font-weight: 600;
                font-size: 1rem;
                line-height: 1.75rem;
                color: #2B363C;
                margin: 0 0 1rem 0;
            }

            p {
                font-weight: 400;
                font-size: .875rem;
                line-height: 1.75rem;
                color: #475164;
                margin: 0 0 1rem 0;
            }

            .description * {
                font-weight: 400;
                font-size: .875rem;
                line-height: 1.75rem;
                color: #475164;
            }

            span {
                font-weight: 300;
                font-size: .875rem;
                line-height: 1.75rem;
                color: #475164;
                margin-top: auto;
            }
        }
    }
}

@media (max-width: 48rem) {

    .screen-reduced {
        padding-bottom: 1rem;
        padding-top: 1rem;
        gap: 1.5rem;
        
        .desktop-view {
            display: none;
        }

        .title-container {
            .title {
                font-size: 1.5rem;
                font-weight: 500;
            }

            .stat-anacom-icon-link {
                span {
                    display: none;
                }
            }
        }

        .highlight-slide {
            display: block;

            .column-footer {
                .stat-anacom-icon-link {
                    margin-top: 1.25rem;
                }
            }
        }

        .reduced-column:hover {
            box-shadow: none;
            transform: none;
        }
    }


    .error-container,
    .loading-container {
        padding-bottom: 2rem;
        padding-top: 2rem;
    }
}