/* ==========================================================================
   SE AGRÍCOLA — AVALIAÇÕES DO VENDEDOR
   Complemento para classificados-single.css
========================================================================== */

/* --------------------------------------------------------------------------
   Resumo compacto na lateral
-------------------------------------------------------------------------- */
.classified-seller-rating {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 16px 0;
    padding: 14px;
    border: 1px solid rgba(20, 127, 43, 0.14);
    border-radius: 14px;
    background:
            linear-gradient(
                    135deg,
                    rgba(20, 127, 43, 0.08),
                    rgba(216, 176, 76, 0.08)
            );
    color: var(--agro-brown-dark, #454545);
    text-decoration: none;
    transition:
            transform 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}

.classified-seller-rating:hover {
    transform: translateY(-1px);
    border-color: rgba(20, 127, 43, 0.28);
    box-shadow: 0 10px 24px rgba(11, 94, 29, 0.08);
    color: var(--agro-brown-dark, #454545);
}

.classified-seller-rating__stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #c7c7c7;
}

.classified-seller-rating__stars svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.8;
}

.classified-seller-rating__stars svg.is-filled {
    color: var(--agro-gold, #d8b04c);
    fill: currentColor;
}

.classified-seller-rating__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.classified-seller-rating__content strong {
    color: var(--agro-green-dark, #0b5e1d);
    font-size: 0.98rem;
    line-height: 1.2;
}

.classified-seller-rating__content small {
    margin-top: 3px;
    color: #6f756f;
    font-size: 0.78rem;
}

.classified-seller-rating__arrow {
    width: 18px;
    height: 18px;
    color: var(--agro-green, #147f2b);
}

/* --------------------------------------------------------------------------
   Card principal de reputação
-------------------------------------------------------------------------- */
.classified-reputation {
    scroll-margin-top: 110px;
}

.classified-reputation__heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.classified-reputation__profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(20, 127, 43, 0.18);
    border-radius: 10px;
    background: #fff;
    color: var(--agro-green-dark, #0b5e1d);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition:
            background 0.2s ease,
            color 0.2s ease,
            border-color 0.2s ease;
}

.classified-reputation__profile-link:hover {
    border-color: var(--agro-green, #147f2b);
    background: var(--agro-green, #147f2b);
    color: #fff;
}

.classified-reputation__profile-link svg {
    width: 16px;
    height: 16px;
}

.classified-reputation__overview {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
    gap: 28px;
    margin-top: 24px;
    padding: 24px;
    border: 1px solid rgba(11, 94, 29, 0.1);
    border-radius: 18px;
    background:
            radial-gradient(
                    circle at top left,
                    rgba(216, 176, 76, 0.12),
                    transparent 42%
            ),
            linear-gradient(
                    180deg,
                    rgba(255, 249, 236, 0.75),
                    #fff
            );
}

.classified-reputation__score {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-right: 28px;
    border-right: 1px solid rgba(11, 94, 29, 0.1);
}

.classified-reputation__score > small {
    color: #737873;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.classified-reputation__score > strong {
    margin: 6px 0 4px;
    color: var(--agro-green-dark, #0b5e1d);
    font-size: clamp(2.8rem, 6vw, 4.4rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.classified-rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 7px;
    color: #c8cbc8;
}

.classified-rating-stars svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.7;
}

.classified-rating-stars svg.is-filled {
    color: var(--agro-gold, #d8b04c);
    fill: currentColor;
}

.classified-reputation__score p {
    max-width: 280px;
    margin: 12px 0 0;
    color: #676d67;
    font-size: 0.86rem;
    line-height: 1.55;
}

.classified-reputation__score p strong {
    color: var(--agro-green-dark, #0b5e1d);
}

.classified-reputation__distribution {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 11px;
}

.classified-rating-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 11px;
}

.classified-rating-row__label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    color: #555c55;
    font-size: 0.83rem;
    font-weight: 700;
}

.classified-rating-row__label svg {
    width: 14px;
    height: 14px;
    color: var(--agro-gold, #d8b04c);
    fill: currentColor;
}

.classified-rating-row__track {
    position: relative;
    display: block;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9ece9;
}

.classified-rating-row__track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
            linear-gradient(
                    90deg,
                    var(--agro-gold, #d8b04c),
                    var(--agro-green-light, #4ea84b)
            );
}

.classified-rating-row > strong {
    color: #636963;
    font-size: 0.78rem;
    text-align: right;
}

.classified-reputation__divider {
    height: 1px;
    margin: 28px 0;
    background: rgba(11, 94, 29, 0.1);
}

/* --------------------------------------------------------------------------
   Lista de avaliações
-------------------------------------------------------------------------- */
.classified-reviews__title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.classified-reviews__title span {
    display: block;
    margin-bottom: 3px;
    color: var(--agro-green, #147f2b);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.classified-reviews__title h3 {
    margin: 0;
    color: var(--agro-brown-dark, #454545);
    font-size: 1.08rem;
    font-weight: 800;
}

.classified-reviews__title > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--agro-green-dark, #0b5e1d);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.classified-reviews__title > a:hover {
    text-decoration: underline;
}

.classified-reviews__title > a svg {
    width: 15px;
    height: 15px;
}

.classified-reviews__list {
    display: grid;
    gap: 14px;
}

.classified-review {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    padding: 17px;
    border: 1px solid rgba(11, 94, 29, 0.09);
    border-radius: 15px;
    background: #fff;
    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            border-color 0.2s ease;
}

.classified-review:hover {
    transform: translateY(-1px);
    border-color: rgba(20, 127, 43, 0.18);
    box-shadow: 0 10px 26px rgba(35, 54, 39, 0.06);
}

.classified-review__avatar img {
    width: 46px;
    height: 46px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(11, 94, 29, 0.12);
}

.classified-review__body {
    min-width: 0;
}

.classified-review__body > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.classified-review__body > header > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.classified-review__body > header strong {
    overflow: hidden;
    color: var(--agro-brown-dark, #454545);
    font-size: 0.9rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.classified-review__body > header small {
    margin-top: 3px;
    color: #8a8f8a;
    font-size: 0.72rem;
}

.classified-review__stars {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 2px;
    color: #d0d2d0;
}

.classified-review__stars svg {
    width: 15px;
    height: 15px;
}

.classified-review__stars svg.is-filled {
    color: var(--agro-gold, #d8b04c);
    fill: currentColor;
}

.classified-review__body p {
    margin: 10px 0 0;
    color: #5e655e;
    font-size: 0.86rem;
    line-height: 1.65;
}

.classified-review__body p.is-muted {
    color: #8a8f8a;
    font-style: italic;
}

.classified-reviews__empty {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    border: 1px dashed rgba(20, 127, 43, 0.25);
    border-radius: 15px;
    background: rgba(20, 127, 43, 0.035);
}

.classified-reviews__empty > span {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: rgba(20, 127, 43, 0.1);
    color: var(--agro-green, #147f2b);
}

.classified-reviews__empty > span svg {
    width: 22px;
    height: 22px;
}

.classified-reviews__empty strong {
    display: block;
    color: var(--agro-green-dark, #0b5e1d);
    font-size: 0.92rem;
}

.classified-reviews__empty p {
    margin: 4px 0 0;
    color: #6e746e;
    font-size: 0.82rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Responsividade
-------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .classified-reputation__overview {
        grid-template-columns: 1fr;
    }

    .classified-reputation__score {
        padding-right: 0;
        padding-bottom: 22px;
        border-right: 0;
        border-bottom: 1px solid rgba(11, 94, 29, 0.1);
    }
}

@media (max-width: 767.98px) {
    .classified-reputation__heading {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .classified-reputation__profile-link {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 8px;
    }

    .classified-reputation__overview {
        gap: 20px;
        padding: 19px;
    }

    .classified-review__body > header {
        flex-direction: column;
        gap: 8px;
    }

    .classified-reviews__title {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 479.98px) {
    .classified-seller-rating {
        grid-template-columns: 1fr auto;
    }

    .classified-seller-rating__stars {
        grid-column: 1 / -1;
    }

    .classified-rating-row {
        grid-template-columns: 44px minmax(0, 1fr) 28px;
        gap: 8px;
    }

    .classified-review {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 14px;
    }

    .classified-review__avatar img {
        width: 38px;
        height: 38px;
    }
}

/* ==========================================================================
   BOTÃO — AVALIAR VENDEDOR
========================================================================== */

.classified-seller-review-action {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    margin-top: 12px;
    padding: 13px 14px;

    color: var(--agro-green-dark, #0b5e1d);
    background:
            linear-gradient(
                    135deg,
                    rgba(216, 176, 76, 0.14),
                    rgba(20, 127, 43, 0.08)
            );

    border: 1px solid rgba(216, 176, 76, 0.45);
    border-radius: 14px;

    text-decoration: none;
    transition:
            transform 0.2s ease,
            border-color 0.2s ease,
            background 0.2s ease,
            box-shadow 0.2s ease;
}

.classified-seller-review-action:hover {
    color: var(--agro-green-dark, #0b5e1d);
    background:
            linear-gradient(
                    135deg,
                    rgba(216, 176, 76, 0.22),
                    rgba(20, 127, 43, 0.13)
            );

    border-color: var(--agro-gold, #d8b04c);

    box-shadow:
            0 10px 24px rgba(11, 94, 29, 0.1),
            0 3px 8px rgba(0, 0, 0, 0.05);

    transform: translateY(-2px);
    text-decoration: none;
}

.classified-seller-review-action:active {
    transform: translateY(0);
}

.classified-seller-review-action:focus-visible {
    outline: 3px solid rgba(216, 176, 76, 0.35);
    outline-offset: 3px;
}

/* ÍCONE PRINCIPAL */

.classified-seller-review-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 42px;
    width: 42px;
    height: 42px;

    color: #fff;
    background:
            linear-gradient(
                    135deg,
                    var(--agro-gold, #d8b04c),
                    #bd8f25
            );

    border-radius: 12px;

    box-shadow:
            0 6px 14px rgba(189, 143, 37, 0.24);
}

.classified-seller-review-action__icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
}

/* TEXTO */

.classified-seller-review-action__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.classified-seller-review-action__content strong {
    display: block;

    margin: 0;

    color: var(--agro-green-dark, #0b5e1d);

    font-size: 0.94rem;
    font-weight: 750;
    line-height: 1.25;
}

.classified-seller-review-action__content small {
    display: block;

    margin-top: 3px;

    color: #66736a;

    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.4;
}

/* SETA */

.classified-seller-review-action__arrow {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    color: var(--agro-green, #147f2b);

    transition:
            transform 0.2s ease,
            color 0.2s ease;
}

.classified-seller-review-action:hover
.classified-seller-review-action__arrow {
    color: var(--agro-green-dark, #0b5e1d);
    transform: translate(2px, -2px);
}

/* ==========================================================================
   RESPONSIVO
========================================================================== */

@media (max-width: 575.98px) {
    .classified-seller-review-action {
        gap: 10px;
        padding: 12px;
        border-radius: 12px;
    }

    .classified-seller-review-action__icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .classified-seller-review-action__icon svg {
        width: 18px;
        height: 18px;
    }

    .classified-seller-review-action__content strong {
        font-size: 0.88rem;
    }

    .classified-seller-review-action__content small {
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   REDUÇÃO DE MOVIMENTO
========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .classified-seller-review-action,
    .classified-seller-review-action__arrow {
        transition: none;
    }

    .classified-seller-review-action:hover,
    .classified-seller-review-action:active {
        transform: none;
    }
}