/**
 * KSPROD Reviews - Frontend Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* === SECTION CONTAINER === */
.ksprod-reviews-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Poppins', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* === HEADER === */
.ksprod-reviews-header {
    text-align: center;
    margin-bottom: 48px;
}

.ksprod-reviews-badge {
    display: inline-block;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    color: #4F46E5;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.ksprod-reviews-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.ksprod-reviews-subtitle {
    font-size: 16px;
    color: #6B7280;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.ksprod-reviews-note {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    padding: 10px 20px;
    border-radius: 50px;
}

.ksprod-note-stars {
    font-size: 16px;
    letter-spacing: 2px;
}

.ksprod-note-text {
    color: #92400E;
    font-size: 14px;
    font-weight: 500;
}

/* === GRID === */
.ksprod-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    align-items: start;
}

.ksprod-reviews-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.ksprod-reviews-grid[data-columns="1"] {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === CARD === */
.ksprod-review-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    position: relative;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.ksprod-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-color: #D1D5DB;
}

.ksprod-review-quote {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #2C5F8D;
}

.ksprod-review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    font-size: 18px;
}

.ksprod-review-stars span {
    animation: ksprod-starPop 0.3s ease backwards;
}

.ksprod-review-stars span:nth-child(1) { animation-delay: 0.1s; }
.ksprod-review-stars span:nth-child(2) { animation-delay: 0.15s; }
.ksprod-review-stars span:nth-child(3) { animation-delay: 0.2s; }
.ksprod-review-stars span:nth-child(4) { animation-delay: 0.25s; }
.ksprod-review-stars span:nth-child(5) { animation-delay: 0.3s; }

@keyframes ksprod-starPop {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ksprod-review-text {
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 24px 0;
    font-style: italic;
}

/* === AUTHOR === */
.ksprod-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #F3F4F6;
}

/* Card sans commentaire - version compacte en hauteur */
.ksprod-review-card:not(:has(.ksprod-review-text)) {
    padding: 20px;
}

.ksprod-review-card:not(:has(.ksprod-review-text)) .ksprod-review-stars {
    margin-bottom: 12px;
}

.ksprod-review-card:not(:has(.ksprod-review-text)) .ksprod-review-quote {
    display: none;
}

.ksprod-review-card:not(:has(.ksprod-review-text)) .ksprod-review-author {
    padding-top: 12px;
    border-top: none;
}

.ksprod-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2C5F8D 0%, #4ECAE0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(44, 95, 141, 0.25);
}

.ksprod-author-info {
    flex: 1;
}

.ksprod-author-info strong {
    display: block;
    color: #111827;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.ksprod-author-info span {
    color: #9CA3AF;
    font-size: 13px;
}

.ksprod-author-verified {
    flex-shrink: 0;
}

/* === CTA GOOGLE === */
.ksprod-reviews-cta {
    text-align: center;
}

.ksprod-google-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.ksprod-google-btn:hover {
    border-color: #2C5F8D;
    background: #F9FAFB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: #2C5F8D;
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    .ksprod-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ksprod-reviews-grid[data-columns="2"],
    .ksprod-reviews-grid[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ksprod-reviews-section {
        padding: 40px 16px;
    }

    .ksprod-reviews-header {
        margin-bottom: 32px;
    }

    .ksprod-reviews-title {
        font-size: 26px;
    }

    .ksprod-reviews-subtitle {
        font-size: 14px;
    }

    .ksprod-reviews-note {
        flex-direction: column;
        gap: 6px;
        padding: 12px 20px;
    }

    .ksprod-reviews-grid,
    .ksprod-reviews-grid[data-columns="2"],
    .ksprod-reviews-grid[data-columns="3"] {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ksprod-review-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .ksprod-review-quote {
        top: 16px;
        right: 16px;
    }

    .ksprod-review-quote svg {
        width: 24px;
        height: 24px;
    }

    .ksprod-review-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .ksprod-author-avatar {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }

    .ksprod-author-info strong {
        font-size: 14px;
    }

    .ksprod-google-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }
}
