/* reviews.css - Compact, modern layout */

.reviews-compact-wrapper {
    background: transparent;
    margin: 20px auto;
    max-width: 1200px;
    box-sizing: border-box;
}

.reviews-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-em);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 16px;
}

.reviews-summary-compact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.reviews-summary-compact .summary-score {
    font-size: 48px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.reviews-summary-compact .summary-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reviews-summary-compact .summary-stars {
    color: var(--gold);
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.reviews-summary-compact .summary-count {
    font-size: 13px;
    color: var(--text-muted);
}

.compact-add-btn {
    border-radius: 99px;
}

/* Add Review Form (Hidden by default, slides down) */
.review-form-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin 0.4s ease;
    opacity: 0;
    margin-bottom: 0;
}

.review-form-wrapper.show {
    max-height: 600px;
    opacity: 1;
    margin-bottom: 24px;
    overflow: visible;
}

.add-review-form.compact-form {
    background: var(--surface);
    border: 1px solid var(--border-em);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.add-review-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.add-review-form input,
.add-review-form textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border-em);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.add-review-form textarea {
    height: 100px;
    resize: vertical;
}

.add-review-form input:focus,
.add-review-form textarea:focus {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--surface);
}

.star-rating-picker {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
}

.star-rating-picker button {
    background: none;
    border: none;
    color: var(--border-em);
    font-size: 26px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s, transform 0.2s;
    outline: none;
}

.star-rating-picker button:hover,
.star-rating-picker button:hover ~ button {
    color: var(--gold-light);
    transform: scale(1.1);
}

.star-rating-picker button.active,
.star-rating-picker button.active ~ button {
    color: var(--gold);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-send-clean {
    background: var(--blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 99px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    flex: 1;
}

.btn-send-clean:hover {
    background: var(--blue-mid);
    transform: translateY(-2px);
}

.review-notice {
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
    min-height: 16px;
}

/* Reviews Carousel */
.reviews-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-top: 16px;
    margin-top: -16px;
    padding-bottom: 16px; /* Space for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--border-em) transparent;
}

.reviews-carousel::-webkit-scrollbar {
    height: 6px;
}
.reviews-carousel::-webkit-scrollbar-thumb {
    background: var(--border-em);
    border-radius: 6px;
}

.review-card {
    flex: 0 0 min(100%, 340px);
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border-em);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.25);
}

.review-item-top-clean {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.review-user-clean {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar-clean {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-pale), var(--surface-3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: var(--blue);
    border: 1px solid var(--border-em);
}

.review-user-info-clean {
    display: flex;
    flex-direction: column;
}

.review-user-name-clean {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.review-date-clean {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.review-stars-clean {
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 1px;
}

.review-body-clean {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.review-like-clean {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    font-weight: 600;
}

.review-like-clean:hover {
    color: var(--blue-light);
}

@media (max-width: 768px) {
    .reviews-compact-header {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }
    
    .reviews-summary-compact {
        flex-direction: column;
        gap: 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .review-card {
        flex: 0 0 85vw;
    }
}