@import url("../../../fonts.googleapis.com/css2.family_Inter_wght_100_200_300_400_500_600_700_800_900_display_swap.css");

.review-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    font-family: Inter;
    padding: 30px 40px;
}

.review-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.review-card-container.dragging {
    user-select: none;
    cursor: grabbing;
    scroll-behavior: auto;
    /* Importante para evitar conflito com transição suave */
}

.review-resume {
    display: flex;
    flex-direction: column;
}

.review-resume h1 {
    font-size: 20px;
    font-weight: 700;
}

.review-resume-number {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid;
    padding-right: 40px;
}

.review-resume-star {
    position: relative;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 5px;
    align-items: center;
}

.review-resume-star svg {
    z-index: 3;
}

.review-resume-star-background {
    position: absolute;
    display: flex !important;
    width: 98%;
    height: 95%;
    background: #ddd;
    z-index: 1;
    margin-left: 4px;
}

.review-resume-star-background-full {
    position: absolute;
    display: flex !important;
    width: 0%;
    height: 90%;
    background: #ffc107;
    z-index: 2;
    padding: 5px;
}

.review-resume-number h2 {
    text-align: center;
    font-size: 35px;
    font-weight: 900;
    margin: 0px;
}

.review-resume-number h3 {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    margin: 0px;
}

.review-resume-info {
    display: flex;
}

.review-resume-star-count {
    display: flex;
    flex-direction: column;
    padding-left: 40px;
    padding-right: 40px;
}

.review-resume-star-count-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 270px;
}

.review-resume-star-count-bar p {
    margin: 0px;
}

.ez-resume-number-and-star {
    display: flex;
    align-items: center;
    gap: 5px;
    /* Espaçamento entre o número e a estrela SVG */
    flex-shrink: 0;
    /* Impede que este elemento encolha */
}

.ez-resume-number-and-star p {
    flex-shrink: 0;
    /* Impede que o número encolha */
    margin: 0;
    /* Remove margens indesejadas */
    text-align: right;
    margin: 0;
    /* Já está no seu código, evita margens indesejadas */
}

.review-progress {
    background-color: #ddd;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    flex-grow: 1;
    flex-shrink: 0;
}

.review-progress-fill {
    display: flex !important;
    background-color: #ffc107;
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}

.review-write-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.review-btn {
    padding: 10px 30px;
    background: #333333;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

#review-view-options label {
    font-size: 15px;
}

.ez-select-model-review-style {
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px 26px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    width: auto;
    display: inline-block;
    white-space: nowrap;
}

.ez-option-model-review-style {
    background-color: white;
    border: 1px solid #ccc;
    cursor: pointer;
    font-weight: 600;
    border-radius: 8px;
}

#review-view-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 0px 0px;
}

.review-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 250px;
    border-radius: 15px;
    padding: 20px;
    gap: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    overflow: hidden;
}

.review-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.review-card h1 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.description-review {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    max-height: 80px;
    /* Altura limitada para exibir apenas 3 linhas */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
    transition: max-height 0.3s ease;
}

/* Quando expandido, remove a limitação */
.description-review.expanded {
    max-height: none;
    -webkit-line-clamp: unset;
}

/* Estilo para o link "Ver mais" */
.description-review-wrapper .read-more {
    display: block;
    color: #0287cf;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 5px;
}

.review-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Mantém a proporção sem distorcer */
}

.review-image:hover {
    transform: scale(1.1);
    /* Efeito de zoom suave ao passar o mouse */
    cursor: pointer;
}

.star {
    cursor: pointer;
}

.review-field-to-send {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#reviewer-name,
#reviewer-image-url,
#review-text {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#review-text {
    min-height: 6em;
    background: transparent;
}

.review-avaliation {
    display: flex;
    justify-content: start;
    margin-bottom: 10px;
    gap: 5px;
}

#submit-review {
    padding: 10px 30px;
    background: #333333;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.4rem;
}

.review-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 9999;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black with opacity */
}

.review-modal-content {
    position: fixed;
    /* Fixes the content in the viewport */
    top: 50%;
    /* Center vertically */
    left: 50%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    /* Adjust position to truly center */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: 95%;
    /* Prevents it from going too wide */
    height: auto;
    /* Adjust height to fit the content */
    max-height: 80%;
    /* Prevents it from going too tall */
    padding: 2px;
    background: white;
    /* Background for the modal content */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
    /* Optional shadow for a better look */
    overflow: auto;
    /* Ensures scrolling if the content is too large */
}

.review-modal-content img {
    max-width: 100%;
    height: 90%;
    /* ou um valor que se ajuste bem no seu layout */
    object-fit: contain;
    display: block;
    /* Remove espaços extras abaixo da imagem */
}

/* O Botão de Fechar (x) */
.review-close {
    position: absolute;
    color: red;
    float: right;
    right: 10px;
    top: -8px;
    font-size: 25px;
    font-weight: bold;
}

.review-close:hover,
.review-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#error-message {
    color: red;
    display: block;
    text-align: center;
    font-size: 1.3rem;
    padding: 0px 5px;
}

.review-card-container.carousel-mode {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
}

.review-card-container.carousel-mode .review-card {
    flex: 0 0 auto;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover {
    background-color: #f0f0f0;
}

.page-btn.active {
    background-color: #d1dce5;
    color: black;
    border: 1px solid #aaa;
    font-weight: bold;
}

.page-ellipsis {
    padding: 10px 16px;
    color: #888;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1000px) {
    .review-resume h1 {
        text-align: center;
    }

    #review-view-options {
        justify-content: center;
        padding: 0px 30px;
    }

    .review-resume-number {
        border: none;
        padding-right: 0px;
    }

    .review-resume-info {
        flex-direction: column;
        gap: 20px;
    }

    .review-resume-star-count {
        justify-content: center;
        align-items: center;
        padding-left: 5px;
        padding-right: 5px;
    }

    .review-container {
        padding: 30px 0px;
    }

    .review-card-container:not(.carousel-mode) {
        justify-content: center;
    }

    .review-resume-star {
        width: 60%;
        margin: auto;
    }

    .pagination {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .page-ellipsis {
        font-size: 14px;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .review-progress {
        width: 140px;
    }
}