/* ═══════════════════════════════════════════════════════════════
   Trusted Reviews — shared section component
   Used by every page that wants the "Trusted by Developers Worldwide"
   social-proof block. Rendered by Views/Shared/_TrustedReviewsPartial.cshtml
   and styled here so the design stays consistent across pages.

   This is a self-contained namespace (db-treviews-*) — no dependency
   on Index or page-specific design tokens. Dark navy background by
   intent so the section nests cleanly under any page chrome.
   ═══════════════════════════════════════════════════════════════ */

.db-treviews {
    background: #091B36;
    color: #fff;
}

.db-treviews__inner {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.db-treviews__wrap {
    position: relative;
    z-index: 1;
    max-width: 1232px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Atmospheric blurred orbs mirror the Index reviews section background. */
.db-treviews__mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.db-treviews__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.db-treviews__orb--1 {
    width: 420px;
    height: 420px;
    background: rgba(61,127,252,0.12);
    top: -120px;
    left: -80px;
}

.db-treviews__orb--2 {
    width: 360px;
    height: 360px;
    background: rgba(21,193,230,0.08);
    bottom: -100px;
    right: -80px;
}

/* Section header — eyebrow label + h2 + dek. */
.db-treviews__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.db-treviews__label {
    display: inline-block;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    padding: 0.3125rem 0.75rem;
    margin-bottom: 0.875rem;
}

.db-treviews__head h2 {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.db-treviews__head p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
}

/* Two static platform cards (Trustpilot + Google). */
.db-treviews__platforms {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.db-treviews__platform {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 260px;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.db-treviews__platform:hover,
.db-treviews__platform:focus-visible {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.20);
    text-decoration: none;
    color: inherit;
}

.db-treviews__platform-logo {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-treviews__platform-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.db-treviews__platform-brand {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.02em;
}

.db-treviews__score-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.db-treviews__score {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.db-treviews__stars {
    display: flex;
    gap: 1px;
}

.db-treviews__platform-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.02em;
}

/* Carousel — prev/next buttons + scroll-snap track. CSS handles the snap
   and the mobile swipe; the JS in the partial nudges the track by one
   card width on button click for desktop users without a trackpad. */
.db-treviews__track-wrap {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    position: relative;
}

.db-treviews__nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    transition: all 0.22s;
    flex-shrink: 0;
    padding: 0;
}

.db-treviews__nav:hover {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.db-treviews__track {
    display: flex;
    gap: 1.125rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.375rem 0;
    flex: 1;
    scroll-behavior: smooth;
}

.db-treviews__track::-webkit-scrollbar {
    display: none;
}

.db-treview {
    flex: 0 0 300px;
    scroll-snap-align: start;
    padding: 1.625rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: background 0.25s, border-color 0.25s;
}

.db-treview:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.11);
}

.db-treview__stars {
    display: flex;
    gap: 2px;
    margin-bottom: 0.875rem;
}

.db-treview h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #fff;
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

.db-treview p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.55);
    margin: 0 0 1rem;
}

.db-treview__author {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 720px) {
    .db-treviews__inner {
        padding: 4rem 0;
    }
    .db-treviews__platforms {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .db-treviews__platform {
        min-width: auto;
    }
    .db-treviews__nav {
        display: none;
    }
    .db-treviews__track {
        padding-bottom: 0.5rem;
    }
    .db-treview {
        flex: 0 0 260px;
        padding: 1.25rem;
    }
}
