/* ═══════════════════════════════════════════════════════════
   reviews-ticker.css — __REVIEWS_TICKER_PR8__
   Homepage reviews ticker (namespace: idx-rv-*).
   Pure-CSS marquee, no JS. Tokens from index.css (--bp-*).
   ═══════════════════════════════════════════════════════════ */

.idx-reviews {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.idx-reviews-header {
    margin-bottom: 36px;
}

.idx-reviews-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bp-text);
    margin: 0;
    line-height: 1.2;
}

.idx-reviews-sub {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--bp-text-secondary);
}

/* ── viewport ─────────────────────────────────────────────── */

.idx-rv-viewport {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.idx-rv-row {
    display: flex;
    width: -webkit-max-content;
    width: max-content;
    will-change: transform;
}

.idx-rv-row--a { animation: idxRvScrollA 64s linear infinite; }
.idx-rv-row--b { animation: idxRvScrollB 78s linear infinite; margin-top: 16px; }

.idx-rv-viewport:hover .idx-rv-row,
.idx-rv-viewport:focus-within .idx-rv-row {
    animation-play-state: paused;
}

@keyframes idxRvScrollA {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes idxRvScrollB {
    from { transform: translate3d(-50%, 0, 0); }
    to   { transform: translate3d(0, 0, 0); }
}

/* ── card ─────────────────────────────────────────────────── */

.idx-rv-card {
    flex: 0 0 320px;
    width: 320px;
    box-sizing: border-box;
    min-height: 152px;
    margin-right: 16px;
    padding: 20px;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease;
}

.idx-rv-card:hover {
    border-color: var(--bp-border-hover);
}

.idx-rv-text {
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--bp-text);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.idx-rv-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 12px;
    color: var(--bp-text-secondary);
}

.idx-rv-author {
    font-weight: 600;
    color: var(--bp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.idx-rv-num {
    opacity: 0.55;
    white-space: nowrap;
}

.idx-rv-badge {
    margin-left: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: 11px;
    color: var(--bp-text-secondary);
    border: 1px solid var(--bp-border);
    border-radius: 999px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.idx-rv-badge:hover {
    border-color: var(--bp-border-hover);
    color: var(--bp-text);
}

.idx-rv-badge svg {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
}

/* ── footer actions ───────────────────────────────────────── */

.idx-rv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

/* ── responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .idx-reviews { padding: 80px 0; }
    .idx-reviews-title { font-size: 24px; }
    .idx-rv-card { flex-basis: 268px; width: 268px; padding: 18px; min-height: 140px; }
    .idx-rv-text { font-size: 14px; -webkit-line-clamp: 5; }
    .idx-rv-row--a { animation-duration: 48s; }
    .idx-rv-row--b { animation-duration: 58s; }
}

/* ── reduced motion: static grid, no marquee ──────────────── */

@media (prefers-reduced-motion: reduce) {
    .idx-rv-viewport {
        -webkit-mask-image: none;
                mask-image: none;
    }
    .idx-rv-row {
        animation: none;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0;
    }
    .idx-rv-card[aria-hidden="true"] { display: none; }
    .idx-rv-card { margin: 0 8px 16px; }
}

/* __REVIEWS_TICKER_PR8__ kicker — declarations mirrored from .idx-uc-kicker */
.idx-reviews-kicker {
    font-size: 12px;
    font-weight: 600;
    color: var(--bp-accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.6;
    margin: 0 0 12px;
}

/* __REVIEWS_TICKER_PR8__ centered header */
.idx-reviews-header {
    text-align: center;
}

.idx-reviews-sub {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* __REVIEWS_TICKER_PR8__ separator before final CTA */
.idx-reviews {
    padding-bottom: 72px;
}

.idx-reviews + .idx-cta {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
    .idx-reviews { padding-bottom: 56px; }
}
