﻿/* ================================================================= */
/* GOOGLE REVIEWS WALL - DESIGN ÎMBUNĂTĂȚIT */
/* ================================================================= */

:root {
    --google-bg-primary: #121212;
    --google-bg-secondary: #1e1e1e;
    --google-text-primary: #ffffff;
    --google-text-secondary: #b0b0b0;
    --google-text-muted: #9ca3af;
    --google-brand-orange: #FF4D00;
    --google-brand-orange-hover: #e6440a;
    --google-rating-gold: #FDBB33;
    --google-border: rgba(255, 255, 255, 0.1);
    --google-border-hover: rgba(255, 77, 0, 0.2);
    --google-radius: 12px;
    --google-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --google-shadow-hover: 0 8px 25px rgba(255, 77, 0, 0.15);
}

.google-reviews-wall {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #0a0a0a;
    padding: 32px 0;
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.google-reviews-container {
    width: 100%;
    max-width: 420px;
    background-color: #0a0a0a;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 16px;
}

/* ================================================================= */
/* HEADER CARD - STILURI ÎMBUNĂTĂȚITE */
/* ================================================================= */

.google-header-card {
    background: linear-gradient(135deg, var(--google-bg-secondary) 0%, rgba(30, 30, 30, 0.8) 100%);
    border: 1px solid var(--google-border);
    border-radius: var(--google-radius);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--google-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

    .google-header-card:hover {
        transform: translateY(-2px);
        border-color: var(--google-border-hover);
        box-shadow: var(--google-shadow-hover);
    }

    .google-header-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 20%, rgba(255, 77, 0, 0.05) 0%, transparent 50%);
        pointer-events: none;
    }

.google-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

    .google-logo-container svg {
        width: 48px;
        height: 48px;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    }

.header-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--google-text-primary);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.header-card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0 20px;
    font-size: 1.125rem;
    color: var(--google-text-secondary);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

    .header-card-rating .rating-number {
        color: var(--google-text-primary);
        font-weight: 700;
        font-size: 1.25rem;
    }

    .header-card-rating .stars {
        color: var(--google-rating-gold);
        font-size: 1.5rem;
        letter-spacing: 2px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

.header-card-button {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    color: #000000;
    border: none;
    border-radius: 100px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .header-card-button:hover {
        background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

/* ================================================================= */
/* REVIEW CARDS - STILURI ÎMBUNĂTĂȚITE (DE BAZĂ) */
/* ================================================================= */

#google-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.review-card-review {
    background: #0a0a0a;
    border: 1px solid var(--google-border);
    border-radius: var(--google-radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--google-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-text-review.truncated {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 0;
}

    .review-text-review.truncated::before {
        content: none;
    }

.avatar-fallback-review {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--google-brand-orange) 0%, #FF8C00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Loading and Error States */
.loading-container-review,
.error-container-review {
    background: var(--google-bg-secondary);
    border: 1px solid var(--google-border);
    border-radius: var(--google-radius);
    padding: 40px 20px;
    text-align: center;
    color: var(--google-text-secondary);
}

    .loading-container-review p,
    .error-container-review p {
        margin: 0;
        font-size: 1rem;
    }

/* Load More Button */
.btn-review.btn--primary-review {
    background: linear-gradient(135deg, var(--google-brand-orange) 0%, #FF8C00 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--google-radius);
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
}

    .btn-review.btn--primary-review:hover {
        background: linear-gradient(135deg, var(--google-brand-orange-hover) 0%, #e67d00 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 77, 0, 0.4);
    }

/* ================================================================= */
/* RESPONSIVE DESIGN */
/* ================================================================= */

@media (min-width: 768px) {
    .google-reviews-container {
        max-width: 500px;
        gap: 24px;
    }

    .google-header-card,
    .review-card-review {
        padding: 28px;
    }

    .header-card-title {
        font-size: 1.75rem;
    }

    .review-avatar-review {
        width: 64px;
        height: 64px;
    }
}

@media (min-width: 1024px) {
    .google-reviews-container {
        max-width: 600px;
    }

    .google-header-card,
    .review-card-review {
        padding: 32px;
    }
}

/* ================================================================= */
/* ANIMAȚII SPECIALE */
/* ================================================================= */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card-review {
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

    .review-card-review:nth-child(1) {
        animation-delay: 0.1s;
    }

    .review-card-review:nth-child(2) {
        animation-delay: 0.2s;
    }

    .review-card-review:nth-child(3) {
        animation-delay: 0.3s;
    }

    .review-card-review:nth-child(4) {
        animation-delay: 0.4s;
    }

    .review-card-review:nth-child(5) {
        animation-delay: 0.5s;
    }

/* ================================================================= */
/* STILURI NOI - PENTRU A SE POTRIVI CU IMAGINEA FURNIZATĂ */
/* ================================================================= */

/* Stilul principal al cardului de review */
.review-card-review {
    background: #0a0a0a !important; /* Fundal gri închis ca în imagine */
    border-radius: 20px !important; /* Colțuri mai rotunjite */
    padding: 16px !important;
    border: 1px solid #2a2a2a !important;
    box-shadow: none !important; /* Eliminăm umbra existentă */
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    margin-bottom: 16px; /* Adăugăm spațiu între carduri */
}

    /* Efect de hover subtil */
    .review-card-review:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        border-color: rgba(255, 77, 0, 0.2) !important;
    }

    /* Eliminăm pseudo-elementele care adăugau ghilimele și linii */
    .review-card-review::before,
    .review-card-review::after {
        display: none !important;
    }

/* Antetul cu avatar și informații */
.review-header-review {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important; /* Spațiu între avatar și text */
    margin-bottom: 12px !important;
}

/* Stilul pentru avatar (imaginea utilizatorului) */
.review-avatar-review {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    border: none !important; /* Fără bordura portocalie */
    box-shadow: none !important;
    flex-shrink: 0 !important;
    overflow: hidden; /* Asigură că imaginea rămâne în cerc */
}

    .review-avatar-review img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

/* Containerul pentru informațiile utilizatorului (nume, rating, dată) */
.reviewer-info-review {
    flex: 1;
}

/* Numele autorului */
.review-author-review {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #E8EAED !important; /* Culoare text Google */
    margin: 0 0 4px 0 !important;
}

/* Container pentru rating și dată */
.review-meta-review {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

/* Rating-ul cu steluțe */
.review-rating-review {
    color: #FDBB33 !important; /* Galben pentru stele */
    font-size: 1rem !important;
    letter-spacing: 1px !important;
    margin: 0 !important;
}

/* Data publicării review-ului */
.review-time-review {
    color: #BDC1C6 !important; /* Gri mai deschis pentru dată */
    font-size: 0.875rem !important;
}

/* Conținutul (textul) review-ului */
.review-content-review {
    margin: 0 !important;
}

.review-text-review {
    font-size: 0.9375rem !important; /* ~15px */
    line-height: 1.5 !important;
    color: #E8EAED !important;
    margin: 0 !important;
    padding: 0 !important; /* Fără padding-ul care făcea loc ghilimelelor */
}

/* Stil pentru butonul "Citește mai mult" */
.read-more-btn-review {
    color: #FF8C00 !important; /* Portocaliu specific */
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    display: inline-block;
    transition: all 0.2s ease;
}

    .read-more-btn-review:hover {
        text-decoration: underline;
        color: var(--google-brand-orange-hover) !important;
        transform: none !important;
    }

/* Basic body styling */
.body-reviewur-scrise {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #e5e7eb;
    margin: 0;
}

/* Main section container */
.transition-section {
    background-color: #0a0a0a;
}

/* Inner container for content */
.transition-section__container {
    max-width: 36rem; /* 576px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* 16px */
    padding-right: 1rem; /* 16px */
    text-align: center;
}

/* Main title styling */
.transition-section__title {
    font-family: 'Teko', sans-serif;
    font-size: 3rem; /* 48px */
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

/* Highlighted part of the title */
.transition-section__title--highlight {
    color: #FF4D00;
}

/* Subtitle styling */
.transition-section__subtitle {
    margin-top: 1.5rem; /* 24px */
    font-size: 1.25rem; /* 20px */
    color: #d1d5db; /* gray-300 */
    line-height: 1.75;
    max-width: 27rem; /* 576px */
    margin-left: auto;
    margin-right: auto;
}
