/* RTSC Reviews Carousel Widget v1.0.0 */

.rtsc-reviews-widget {
    display: flex;
    align-items: stretch;
    background: #f0f2f5;
    border-radius: 12px;
    padding: 24px;
    gap: 24px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Summary Panel (Left) ────────────────────────────────────── */

.rtsc-reviews-summary {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 8px;
}

.rtsc-reviews-rating-label {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.rtsc-reviews-stars-display {
    font-size: 28px;
    color: #ffc107;
    margin-bottom: 8px;
    line-height: 1;
}

.rtsc-reviews-count {
    font-size: 14px;
    color: #606060;
    margin-bottom: 16px;
}

.rtsc-reviews-count strong {
    font-weight: 700;
}

.rtsc-reviews-platforms {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.rtsc-reviews-platform-logo-wrap {
    width: 160px;
    max-width: 100%;
}

.rtsc-reviews-platform-logo-wrap svg {
    width: 100%;
    height: auto;
}

/* ─── Carousel Wrapper ───────────────────────────────────────── */

.rtsc-reviews-carousel-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.rtsc-reviews-carousel {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.rtsc-reviews-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rtsc-reviews-track.swiping {
    transition: none;
}

/* ─── Navigation Arrows ──────────────────────────────────────── */

.rtsc-reviews-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
}

.rtsc-reviews-nav:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.rtsc-reviews-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.rtsc-reviews-nav-prev {
    left: -18px;
}

.rtsc-reviews-nav-next {
    right: -18px;
}

/* ─── Review Cards ───────────────────────────────────────────── */

.rtsc-review-card {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 180px;
}

.rtsc-review-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rtsc-review-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rtsc-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rtsc-review-avatar-initials {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.rtsc-review-meta {
    flex: 1;
    min-width: 0;
}

.rtsc-review-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rtsc-review-date {
    display: block;
    font-size: 12px;
    color: #90caf9;
}

.rtsc-review-platform-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.rtsc-review-platform-icon svg,
.rtsc-review-platform-icon img {
    width: 100%;
    height: 100%;
}

/* ─── Star Rating ────────────────────────────────────────────── */

.rtsc-review-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rtsc-review-stars {
    font-size: 16px;
    color: #ffc107;
    letter-spacing: 1px;
    line-height: 1;
}

.rtsc-review-stars .star-empty {
    color: #ddd;
}

.rtsc-review-verified {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rtsc-review-verified svg {
    width: 16px;
    height: 16px;
}

/* ─── Review Text ────────────────────────────────────────────── */

.rtsc-review-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

.rtsc-review-text p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rtsc-review-readmore {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: #90caf9;
    text-decoration: none;
    font-weight: 500;
}

.rtsc-review-readmore:hover {
    color: #42a5f5;
    text-decoration: underline;
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {
    .rtsc-reviews-widget {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .rtsc-reviews-summary {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 16px;
        padding: 8px;
    }

    .rtsc-reviews-rating-label {
        font-size: 18px;
    }

    .rtsc-reviews-stars-display {
        font-size: 22px;
    }

    .rtsc-reviews-platforms {
        flex-direction: row;
    }

    .rtsc-review-card {
        flex: 0 0 250px;
    }

    .rtsc-reviews-nav-prev {
        left: -8px;
    }

    .rtsc-reviews-nav-next {
        right: -8px;
    }
}

@media (max-width: 480px) {
    .rtsc-reviews-summary {
        flex-direction: column;
    }

    .rtsc-review-card {
        flex: 0 0 220px;
        padding: 14px;
    }
}
