/* Trustpilot-score in de homepage-hero — 2 december 2026.
   Tom: "ik wil hier ergens bij homepage bovenaan prachtig mooi, net zoals we doen bij
   thomas super store, trustpilot balkje hebben dat live synct".
   Score, label, sterren en aantal komen live van Trustpilot (v5-trust.js); nooit vaste
   cijfers in de HTML. Basis = donker thema (zoals v5.css), [data-theme="light"] past aan.
   Klassennamen bewust zonder "ad", "banner", "promo" of "trustpilot" (adblockers). */

.v5-trust-row { display: flex; justify-content: center; margin: -12px auto 30px; }

.v5-trust {
    --vt-ink: var(--text-primary, #f0f0f5);
    --vt-muted: var(--text-secondary, #8a8a9a);
    position: relative;
    display: inline-flex; align-items: center; gap: 14px;
    max-width: 100%; min-height: 76px; box-sizing: border-box;
    padding: 9px 12px 9px 9px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 50px -26px rgba(0, 0, 0, .75);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    color: var(--vt-ink); text-decoration: none; text-align: left; line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.v5-trust:hover, .v5-trust:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, .35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 28px 56px -24px rgba(0, 0, 0, .8), 0 0 0 4px rgba(245, 158, 11, .08);
}
.v5-trust:focus-visible { outline: 2px solid var(--v5-amber, #f59e0b); outline-offset: 3px; }

/* Scoretegel: navy met het getal groot en "TrustScore" in helder geel; zo leesbaar als de
   Super Store-tegel (Tom, 2-12-2026: "is wat beter leesbaarder") */
.v5-trust-score {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 78px; height: 60px; padding: 0 9px; box-sizing: border-box;
    border-radius: 15px;
    background: linear-gradient(160deg, #1b3a72 0%, #0f1f45 72%);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 18px -10px rgba(8, 12, 40, .8);
    color: #fff;
}
.v5-trust-value { font-size: 31px; font-weight: 900; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.v5-trust-value-label {
    margin-top: 4px; font-size: 9.5px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase;
    color: #ffcd00;
}

/* Midden: label + sterren, daaronder aantal + Trustpilot-logo */
.v5-trust-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v5-trust-line1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v5-trust-label { font-size: 19px; font-weight: 900; letter-spacing: -.025em; color: var(--vt-ink); }
.v5-trust-stars { display: block; width: 112px; height: 21px; flex: 0 0 auto; }
.v5-trust-line2 {
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
    font-size: 14px; font-weight: 600; color: var(--vt-muted);
}
.v5-trust-line2 .v5-trust-logo { margin-left: 2px; }
.v5-trust-count strong { color: var(--vt-ink); font-weight: 800; }
.v5-trust-logo { display: block; width: 80px; height: 20px; flex: 0 0 auto; margin-top: -2px; }
.v5-trust-logo-dark { display: none; }

/* Pijl: rustig rondje, bij aanwijzen het amber-oranje van de koopknop */
.v5-trust-go {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; margin-left: 4px; border-radius: 50%;
    background: rgba(255, 255, 255, .07); color: var(--vt-ink);
    transition: background .18s ease, color .18s ease;
}
.v5-trust-go svg { width: 17px; height: 17px; transition: transform .18s ease; }
.v5-trust:hover .v5-trust-go, .v5-trust:focus-visible .v5-trust-go {
    background: linear-gradient(135deg, var(--v5-amber, #f59e0b), #f97316); color: #1a1204;
}
.v5-trust:hover .v5-trust-go svg, .v5-trust:focus-visible .v5-trust-go svg { transform: translateX(2px); }

/* Licht thema: witte glaskaart zoals het platform-dock */
[data-theme="light"] .v5-trust {
    background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .8));
    border-color: rgba(17, 17, 40, .07);
    box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(30, 30, 70, .05), 0 24px 48px -26px rgba(30, 30, 70, .38);
}
[data-theme="light"] .v5-trust:hover, [data-theme="light"] .v5-trust:focus-visible {
    border-color: rgba(245, 158, 11, .45);
    box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(30, 30, 70, .06), 0 28px 54px -24px rgba(30, 30, 70, .42), 0 0 0 4px rgba(245, 158, 11, .1);
}
[data-theme="light"] .v5-trust-score { border-color: rgba(15, 31, 69, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 14px -6px rgba(15, 31, 69, .45); }
[data-theme="light"] .v5-trust-go { background: rgba(17, 17, 40, .05); }
[data-theme="light"] .v5-trust-logo-light { display: none; }
[data-theme="light"] .v5-trust-logo-dark { display: block; }

/* Laden: rustige vlakken op de plek van de cijfers, geen verspringen */
.v5-trust[data-state="loading"] .v5-trust-value,
.v5-trust[data-state="loading"] .v5-trust-label,
.v5-trust[data-state="loading"] .v5-trust-count {
    color: transparent; border-radius: 6px;
    background: linear-gradient(90deg, rgba(128, 128, 150, .12), rgba(128, 128, 150, .24), rgba(128, 128, 150, .12));
    background-size: 200% 100%;
    animation: v5-trust-shimmer 1.4s ease-in-out infinite;
}
.v5-trust[data-state="loading"] .v5-trust-value { display: block; width: 38px; height: 24px; background: rgba(255, 255, 255, .14); animation: none; }
.v5-trust[data-state="loading"] .v5-trust-label { display: inline-block; min-width: 96px; height: 21px; }
.v5-trust[data-state="loading"] .v5-trust-count { display: inline-block; min-width: 70px; }
.v5-trust[data-state="loading"] .v5-trust-stars { visibility: hidden; }
.v5-trust[data-state="loading"] .v5-trust-fallback,
.v5-trust[data-state="ready"] .v5-trust-fallback { display: none; }
@keyframes v5-trust-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Klaar: cijfers komen zacht tevoorschijn */
.v5-trust[data-state="ready"] .v5-trust-value,
.v5-trust[data-state="ready"] .v5-trust-main { animation: v5-trust-in .45s ease both; }
@keyframes v5-trust-in { from { opacity: 0; } to { opacity: 1; } }

/* Geen live gegevens: alleen een nette link naar het profiel, zonder cijfers */
.v5-trust-fallback { display: none; }
.v5-trust[data-state="fallback"] { min-height: 56px; padding-left: 18px; }
.v5-trust[data-state="fallback"] .v5-trust-score,
.v5-trust[data-state="fallback"] .v5-trust-line1,
.v5-trust[data-state="fallback"] .v5-trust-count,
.v5-trust[data-state="fallback"] [data-tp="on"] { display: none; }
.v5-trust[data-state="fallback"] .v5-trust-fallback { display: inline; font-size: 15px; font-weight: 800; color: var(--vt-ink); }

/* Telefoon */
@media (max-width: 640px) {
    .v5-trust-row { margin: -16px auto 26px; }
    .v5-trust { max-width: 100%; min-height: 66px; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 19px; }
    .v5-trust-score { min-width: 64px; height: 52px; border-radius: 13px; }
    .v5-trust-value { font-size: 26px; }
    .v5-trust-value-label { font-size: 8.5px; letter-spacing: .07em; }
    .v5-trust-main { flex: 1 1 auto; gap: 5px; }
    .v5-trust-line1 { gap: 8px; }
    .v5-trust-label { font-size: 16.5px; }
    .v5-trust-stars { width: 92px; height: 17px; }
    .v5-trust-line2 { font-size: 13px; gap: 4px; }
    .v5-trust-logo { width: 68px; height: 17px; }
    .v5-trust-go { width: 30px; height: 30px; margin-left: auto; }
    .v5-trust-go svg { width: 15px; height: 15px; }
}
/* Smalle telefoons: de hele kaart is al de link; het pijltje maakt plaats zodat ook
   "Hervorragend" + sterren en "9 Bewertungen auf Trustpilot" op één regel blijven. */
@media (max-width: 480px) {
    .v5-trust-go { display: none; }
}
@media (max-width: 374px) {
    .v5-trust { gap: 10px; }
    .v5-trust-score { min-width: 0; padding: 0 7px; }
    .v5-trust-value { font-size: 24px; }
    .v5-trust-value-label { font-size: 7.5px; letter-spacing: .05em; }
    .v5-trust-label { font-size: 15.5px; }
    .v5-trust-stars { width: 82px; height: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .v5-trust, .v5-trust-go, .v5-trust-go svg { transition: none; }
    .v5-trust:hover, .v5-trust:focus-visible { transform: none; }
    .v5-trust:hover .v5-trust-go svg { transform: none; }
    .v5-trust[data-state="loading"] .v5-trust-label,
    .v5-trust[data-state="loading"] .v5-trust-count,
    .v5-trust[data-state="ready"] .v5-trust-value,
    .v5-trust[data-state="ready"] .v5-trust-main { animation: none; }
}
