/* ============================================================
   Boujee Reviews Bar — Styles
   v1.0.3 | blunor.pk
   ============================================================ */

/* ── TOP BAR ────────────────────────────────────────────────── */
.brb-top-bar {
    width: 100%;
    background: transparent;
    padding: 10px 20px;
    box-sizing: border-box;
}

.brb-top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.brb-top-bar__count {
    font-weight: 700;
    font-size: 14px;
}

.brb-top-bar__cta {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.brb-top-bar__cta:hover { opacity: 0.75; }

/* ── CAROUSEL SECTION ───────────────────────────────────────── */
.brb-carousel-section {
    position: relative;
    background: transparent;
    padding: 40px 0;
    /* Full-width breakout from any Elementor column */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    overflow: hidden;
}

.brb-carousel-section__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px; /* room for nav buttons */
}

/* ── CAROUSEL TRACK ─────────────────────────────────────────── */
.brb-carousel {
    position: relative;
    overflow: hidden;
}

.brb-carousel__track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    padding-bottom: 6px; /* prevent shadow clip */
}

/* ── REVIEW CARD ─────────────────────────────────────────────── */
.brb-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px 24px 20px;
    min-width: 280px;
    max-width: 300px;
    flex: 0 0 280px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.brb-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

.brb-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brb-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #3BBFB2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.brb-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.brb-card__initials {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.brb-card__meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.brb-card__author {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brb-card__time {
    font-size: 12px;
    color: #888;
}

.brb-card__google-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.brb-card__stars {
    font-size: 16px;
    color: #FBBC05;
    margin: 0;
    letter-spacing: 1px;
    line-height: 1;
}

.brb-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.brb-card__text {
    font-size: 13.5px;
    color: #444;
    line-height: 1.65;
    margin: 0;
}

.brb-card__read-more {
    display: inline-block;
    color: #3BBFB2;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    margin-top: auto;
    transition: color 0.2s;
}

.brb-card__read-more:hover {
    color: #2da399;
    text-decoration: underline;
}

/* ── NAV BUTTONS ─────────────────────────────────────────────── */
.brb-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    color: #333;
    line-height: 1;
}

.brb-carousel__btn:hover {
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.22);
}

.brb-carousel__btn--prev { left: 0; }
.brb-carousel__btn--next { right: 0; }

/* ── DOTS ────────────────────────────────────────────────────── */
.brb-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.brb-carousel__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.2s;
}

/* If the parent section has a dark/colored background, dots go white */
.brb-carousel-section .brb-carousel__dot {
    background: rgba(255,255,255,0.4);
}

.brb-carousel__dot.is-active {
    background: currentColor;
    transform: scale(1.25);
}

.brb-carousel-section .brb-carousel__dot.is-active {
    background: #fff;
}

/* ── HIDE UTILITY (for old Trustindex section) ───────────────── */
/*
 * Add CSS class  brb-hide  to any Elementor section's
 * Advanced → CSS Classes field to hide it without deleting.
 */
.brb-hide { display: none !important; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .brb-carousel-section__inner {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .brb-carousel-section__inner {
        padding: 0 40px;
    }

    .brb-card {
        min-width: 260px;
        max-width: 280px;
        flex: 0 0 260px;
    }

    .brb-carousel__btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .brb-top-bar__inner {
        font-size: 11px;
    }

    .brb-carousel-section {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .brb-carousel-section__inner {
        padding: 0 36px;
    }

    .brb-card {
        min-width: calc(100vw - 80px);
        flex: 0 0 calc(100vw - 80px);
    }
}

/* ── FLUID CARD WIDTH (fills full row, no empty gaps) ───────── */
/*
 * Cards use CSS custom properties set by JS, but as a CSS-only
 * fallback we use calc() to fill exactly perPage slots.
 * At 1100px+: 4 cards. 700-1099px: 2 cards. <700px: 1 card.
 */
@media (min-width: 1100px) {
    .brb-card {
        min-width: calc((100% - 3 * 20px) / 4);
        max-width: calc((100% - 3 * 20px) / 4);
        flex: 0 0 calc((100% - 3 * 20px) / 4);
    }
}

@media (min-width: 700px) and (max-width: 1099px) {
    .brb-card {
        min-width: calc((100% - 1 * 20px) / 2);
        max-width: calc((100% - 1 * 20px) / 2);
        flex: 0 0 calc((100% - 1 * 20px) / 2);
    }
}

@media (max-width: 699px) {
    .brb-card {
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* ── REVIEW COUNT BADGE ──────────────────────────────────────── */
.brb-review-count {
    text-align: center;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.brb-review-count strong {
    font-weight: 800;
}
