/* ═══════════════════════════════════════════════
   Velocity Widgets - Google Reviews Styles
   ═══════════════════════════════════════════════ */

/* ─── Header ─── */
.vw-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    margin-bottom: 16px;
    background: var(--vw-card-bg);
    border-radius: var(--vw-radius);
    box-shadow: var(--vw-shadow);
}

.vw-header-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vw-header-score {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: var(--vw-text);
}

.vw-header-stars .vw-star { font-size: 22px; }

.vw-header-count {
    font-size: 13px;
    color: var(--vw-text-secondary);
}

.vw-header-google {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--vw-text-secondary);
}

/* ─── Review Card ─── */
.vw-review-card {
    background: var(--vw-card-bg);
    border-radius: var(--vw-radius);
    padding: 20px;
    box-shadow: var(--vw-shadow);
    transition: var(--vw-transition);
    border: 1px solid var(--vw-border);
}

.vw-review-card:hover {
    box-shadow: var(--vw-shadow-hover);
    transform: translateY(-2px);
}

.vw-review-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.vw-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.vw-review-author {
    flex: 1;
    min-width: 0;
}

.vw-review-author strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--vw-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vw-review-date {
    display: block;
    font-size: 12px;
    color: var(--vw-text-secondary);
}

.vw-review-google-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.vw-review-stars {
    margin-bottom: 10px;
}

.vw-review-stars .vw-star { font-size: 16px; }

.vw-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--vw-text);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Carousel ─── */
.vw-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.vw-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.vw-carousel-slide {
    flex: 0 0 calc(33.333% - 12px);
    min-width: 280px;
}

.vw-simple .vw-carousel-slide {
    flex: 0 0 calc(50% - 8px);
    min-width: 320px;
}

.vw-simple .vw-review-card {
    border: none;
    box-shadow: none;
    text-align: center;
    background: transparent;
}

.vw-simple .vw-review-top {
    flex-direction: column;
    text-align: center;
}

.vw-simple .vw-review-avatar {
    width: 56px;
    height: 56px;
}

.vw-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px 0 4px;
}

.vw-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vw-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--vw-transition);
}

.vw-carousel-dot.active {
    background: var(--vw-primary);
    transform: scale(1.3);
}

/* ─── Grid ─── */
.vw-grid {
    display: grid;
    grid-template-columns: repeat(var(--vw-cols, 3), 1fr);
    gap: var(--vw-gap, 16px);
}

/* ─── Masonry ─── */
.vw-masonry {
    columns: var(--vw-cols, 3);
    column-gap: var(--vw-gap, 16px);
}

.vw-masonry .vw-review-card {
    break-inside: avoid;
    margin-bottom: var(--vw-gap, 16px);
}

/* ─── Slider (Single) ─── */
.vw-slider {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
}

.vw-slider-slide {
    display: none;
    animation: vwFadeIn 0.5s ease;
}

.vw-slider-slide.active {
    display: block;
}

.vw-slider-card {
    text-align: center;
    padding: 32px;
    border: none;
}

.vw-slider-card .vw-review-top {
    flex-direction: column;
    align-items: center;
}

.vw-slider-card .vw-review-avatar {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
}

.vw-slider-card .vw-review-text {
    font-size: 16px;
    -webkit-line-clamp: 8;
    font-style: italic;
}

.vw-slider-counter {
    text-align: center;
    font-size: 13px;
    color: var(--vw-text-secondary);
    padding: 12px 0;
}

/* ─── List ─── */
.vw-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vw-list-item {
    border-radius: var(--vw-radius);
}

/* ─── Inline Badge ─── */
.vw-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--vw-card-bg);
    border-radius: var(--vw-radius);
    box-shadow: var(--vw-shadow);
    border: 1px solid var(--vw-border);
}

.vw-badge-score {
    font-size: 36px;
    font-weight: 700;
    color: var(--vw-accent, var(--vw-primary));
    line-height: 1;
}

.vw-badge-info {
    display: flex;
    flex-direction: column;
}

.vw-badge-count {
    font-size: 12px;
    color: var(--vw-text-secondary);
}

.vw-badge-google {
    flex-shrink: 0;
}

/* ─── Floating Badge ─── */
.vw-floating-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    animation: vwSlideUp 0.5s ease;
}

.vw-floating-badge-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--vw-card-bg);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: var(--vw-transition);
    border: 1px solid var(--vw-border);
}

.vw-floating-badge-inner:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

.vw-floating-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--vw-text);
}

.vw-floating-stars .vw-star { font-size: 14px; }

.vw-floating-count {
    font-size: 11px;
    color: var(--vw-text-secondary);
}

/* ─── Wall of Love ─── */
.vw-wall {
    columns: 3;
    column-gap: 12px;
}

.vw-wall-item {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: var(--vw-radius);
}

.vw-wall-item .vw-review-text {
    -webkit-line-clamp: unset;
}

/* ─── Compact Strip ─── */
.vw-compact-strip {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
    background: var(--vw-card-bg);
    border-radius: var(--vw-radius);
    box-shadow: var(--vw-shadow);
    overflow: hidden;
}

.vw-compact-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.vw-compact-score {
    font-size: 24px;
    font-weight: 700;
}

.vw-compact-count {
    font-size: 12px;
    color: var(--vw-text-secondary);
}

.vw-compact-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.vw-compact-scroll::-webkit-scrollbar { display: none; }

.vw-compact-review {
    flex-shrink: 0;
    min-width: 200px;
    max-width: 280px;
}

.vw-compact-review-text {
    font-size: 13px;
    color: var(--vw-text);
    font-style: italic;
    margin: 4px 0;
}

.vw-compact-review-author {
    font-size: 11px;
    color: var(--vw-text-secondary);
}

/* ─── Animations ─── */
@keyframes vwFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes vwSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .vw-carousel-slide { flex: 0 0 calc(50% - 8px); }
    .vw-grid { grid-template-columns: repeat(2, 1fr); }
    .vw-masonry, .vw-wall { columns: 2; }
}

@media (max-width: 640px) {
    .vw-carousel-slide,
    .vw-simple .vw-carousel-slide { flex: 0 0 100%; min-width: unset; }

    .vw-grid { grid-template-columns: 1fr; }
    .vw-masonry, .vw-wall { columns: 1; }

    .vw-reviews-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .vw-header-rating { flex-direction: column; }
    .vw-header-score { font-size: 32px; }

    .vw-compact-strip { flex-direction: column; }

    .vw-carousel-btn { width: 32px; height: 32px; font-size: 12px; }
    .vw-prev { left: 2px; }
    .vw-next { right: 2px; }

    .vw-floating-badge { bottom: 12px; right: 12px; }
}
