﻿

.rating-summary-wrapper-combinat {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.rating-summary-multiline {
    display: flex;
    flex-direction: column; /* Așează cele 3 niveluri pe verticală */
    align-items: center; /* Centrează totul pe orizontală */
    gap: 4px; /* Spațiu vertical mic între cele 3 linii */
    width: 100%;
}

/* Nivelul 1: Stil pentru nota de sus */
.nota-top {
    text-align: center;
}



.aprobat-text-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Am modificat aici */
    line-height: 1.1;
}

.nota-top, .numar-recenzii-bottom {
    text-align: center;
}

.nota-top {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center; /* Am modificat aici */
    gap: 0.5rem;
}

.logos-calificativ-wrapper {
    display: flex;
    align-items: center; /* Aliniază vertical logo-urile și textul */
    justify-content: center;
    gap: 8px; /* Spațiu între logo-uri și text */
}

.numar-recenzii-bottom {
    text-align: center;
}

.logo-container {
    flex-shrink: 0;
}

.info-recenzie-wrapper {
    flex-grow: 1; /* Forțează acest div să ocupe tot spațiul rămas */
}

/* Acum centrăm textul în interiorul noului container */
.info-recenzie-combinata {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrează conținutul pe orizontală */
    line-height: 1.2;
}

.aprobat-text {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    font-weight: 700;
    color: white;
    white-space: nowrap;
}


.nota-combinata {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.calificativ-combinat,
.numar-recenzii {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.logo-wrapper-combinat {
    display: flex;
    align-items: center;
    gap: 8px; /* Spațiu între cele două logo-uri */
    flex-shrink: 0; /* Previne micșorarea logo-urilor */
}

.info-recenzie-combinata {
    font-size: clamp(0.75rem, 3.5vw, 0.95rem); /* Font adaptiv */
    font-weight: 400;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrează textul pe orizontală */
    line-height: 1.2;
    flex-grow: 1; /* Permite acestui element să umple spațiul gol */
}

#BaraRecenzii {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 6px 5px 6px 8px;
    border-radius: 12px;
    font-family: var(--font-corp);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    color: white;
    opacity: 0;
    transform: translateY(10px);
    animation: animatie-bara-recenzii 0.5s 0.2s ease-out forwards;
}

.rating-summary-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.recenzie-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    transition: transform 0.2s ease-out;
}

    .recenzie-item:hover {
        transform: scale(1.05);
    }

.logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-google, .logo-olx {
    width: 45px; /* Set a consistent width for both logos */
    height: auto; /* Height will adjust to maintain aspect ratio */
}

/* --- Progress Bars --- */
.performance-bars-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
}

.performance-bar {
    width: 100%;
}

.bar-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.bar-title {
    font-weight: 500;
    color: white;
}

.bar-value {
    font-weight: 400;
    color: #ddd;
    opacity: 0.9;
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: #3a3a3c;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #f5b904;
    border-radius: 4px;
}

.info-recenzie {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.calificativ {
    font-size: 15px;
    font-weight: 400;
}

.nota {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
}

.separator-vertical {
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.25);
    display:none;
}

.review-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Împinge elementele la capete */
    flex-wrap: wrap; /* PERMITE elementelor să treacă pe rândul următor */
    gap: 10px; /* Spațiu minim între elemente */
    width: 100%;
    margin-top: 12px;
}

.review-user-details {
    display: flex;
    flex-direction: column; /* Pune numele deasupra steluțelor */
    align-items: flex-start; /* Aliniază-le la stânga */
    gap: 2px; /* Spațiu mic între nume și stele */
}

.review-meta-line-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    font-weight: 700;
}

/* Stil pentru afișarea ratingului general în noua linie */
.overall-rating-display {
    font-family: var(--font-titluri);
    font-size: 1.8rem; /* Ajustăm dimensiunea pentru a se potrivi mai bine */
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.review-slider-container {
    display: flex; /* Adăugăm flex pentru a alinia corect elementele copil */
    flex-direction: column; /* Aliniere pe verticală */
    align-items: stretch; /* Elementele copil vor ocupa toată lățimea */
    align-self: flex-end;
    max-width: 450px;
    width: 100%;
    padding: 0 12px; /* Un padding mai generos */
    color: white;
    font-family: 'Roboto', sans-serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    box-sizing: border-box;
    gap: 8px; /* Spațiu între elementele copil */
}

.review-arrow-placeholder {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.7);
    padding: 0 10px;
    align-self: stretch;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s ease-out;
    display: none;
}

    .review-arrow-placeholder:hover {
        color: white;
    }

.review-pagination-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding-bottom: 5px;
}

    .review-pagination-dots .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: #fff;
        opacity: 0.4;
        transition: opacity 0.3s ease;
        cursor: pointer;
    }

        .review-pagination-dots .dot.active {
            opacity: 1;
        }

/* --- Linia de separare --- */
.review-main-separator {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

#review-content-wrapper {
    flex-grow: 1;
    overflow: hidden;
}

.review-slide {
    display: none;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    animation: fadeIn 0.5s ease-in-out;
}

    .review-slide.active {
        display: flex;
    }

.review-top-line,
.review-bottom-line {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.review-top-line {
    margin-bottom: 6px;
}

    .review-top-line::after {
        content: '✔ COMANDĂ\A VERIFICATĂ';
        white-space: pre;
        line-height: 1.1;
        text-align: right;
        margin-left: auto;
        color: #006400;
        background-color: #f0fff0;
        border-radius: 4px;
        font-weight: 500;
        font-size: 0.7em;
        padding: 6px 8px;
        flex-shrink: 0;
    }

.review-user-icon {
    width: clamp(20px, 5vw, 30px);
    height: clamp(20px, 5vw, 30px);
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-user-name {
    font-family: var(--font-corp);
    font-weight: 700;
    font-size: clamp(0.75rem, 3vw, 0.85rem); /* Valoare corectată */
    white-space: nowrap;
}

.review-stars {
    color: #f5b904;
    font-size: clamp(0.7rem, 2.8vw, 1.5rem); /* Valoare corectată */
    line-height: 1;
}

.review-date {
    font-size: clamp(0.7rem, 2.8vw, 0.8rem); /* Valoare corectată */
    white-space: nowrap;
    color: #FFFFFF;
    flex-shrink: 0;
}

.review-slider-container .review-slide .review-text {
    margin: 0;
    font-family: var(--font-corp);
    color: white;
    font-size: clamp(0.67rem, 0.5vw, 2rem); /* Adjusted for better responsive scaling */
    white-space: normal;
    text-align: left;
    margin-top: 10px; /* Increased top margin as requested */
}

.verified-purchase {
    display: none; /* Ascuns by default */
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.75em;
    font-weight: 600;
    color: #a5d6a7;
    line-height: 1.2;
    flex-shrink: 0;
}

    .verified-purchase .check-icon {
        margin-left: 3px;
        font-size: 1em;
    }

@media (max-width: 768px) {
    .rating-summary-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .separator-vertical {
        width: 100%;
        height: 2px;
    }

    #google-review-snippet {
        display: flex;
        align-items: center;
        gap: 12px;
        background-color: rgba(25, 25, 25, 0.35);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 12px;
        padding: 10px 15px;
        max-width: 90%;
        width: 450px;
        margin-top: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: opacity 0.5s ease-in-out;
        opacity: 0;
    }

        #google-review-snippet.visible {
            opacity: 1;
        }

    .reviewer-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.5);
        flex-shrink: 0;
    }

    .review-content-wrapper {
        display: flex;
        flex-direction: column;
        color: #FFFBF2;
        text-align: left;
    }

    .review-text-snippet {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
        font-family: 'Noto Serif', serif;
        margin: 0 0 8px 0;
        line-height: 1.4;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }

    .review-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        font-size: clamp(0.75rem, 1.8vw, 0.8rem);
    }

}

/* Stilizare responsivă pentru insigna "COMANDĂ VERIFICATĂ" */
@media (max-width: 409px) {

    /* NOU: Permitem containerului principal să afișeze conținutul care depășește
     limitele verticale, făcând vizibilă insigna de pe rândul nou. */
    #review-content-wrapper {
        overflow: visible;
    }

    .review-slide.active {
        overflow: visible;
    }

    /* 1. Permitem elementelor din containerul-părinte să treacă pe rândul următor */
    .review-top-line {
        flex-wrap: wrap;
        row-gap: 8px; /* Adaugă un spațiu vertical între linii */
    }

        /* 2. Forțăm insigna să ocupe toată lățimea și să formeze o linie nouă */
        .review-top-line::after {
            order: 3;
            width: 100%;
            margin-left: 0;
            text-align: center;
        }
}


/* Stil de "insigna" pentru garantia performantei, varianta rafinata si finala */
.garantia-performantei {
    text-align: center;
    margin-top: 16px;
    padding: 16px 12px; /* Padding-ul corect, care acum se va aplica */
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    background: linear-gradient(to bottom, rgba(245, 185, 4, 0.1), rgba(245, 185, 4, 0.03));
    line-height: 1.4;
    color: #E0E0E0;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    font-weight: 500;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

    /* Stil pentru titlul <strong> */
    .garantia-performantei strong {
        display: block;
        font-size: clamp(1rem, 4vw, 1.15rem);
        font-weight: 700;

        text-transform: uppercase;
        line-height: 1.1;
        margin-bottom: 8px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }