/* ============================================================
   BANDENTEST DETAIL — Banden-kopen.nl
   Locatie: app/design/frontend/<vendor>/<theme>/web/css/bandentest-detail.css
   ============================================================ */

/* -- BG TIRES -- */
.tr-bg-tire {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    opacity: 0.045;
}
.tr-bg-tire-r {
    top: 10%;
    right: -120px;
    width: 420px;
    height: 420px;
    animation: tr-spin 22s linear infinite;
}
.tr-bg-tire-l {
    bottom: 8%;
    left: -110px;
    width: 340px;
    height: 340px;
    animation: tr-spin 30s linear infinite reverse;
}
@keyframes tr-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* -- PAGE WRAPPER -- */
.tr-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    position: relative;
    z-index: 1;
    font-family: 'Barlow', 'Segoe UI', sans-serif;
    color: #1a2740;
}

/* -- TEST HEADER -- */
.tr-test-header {
    position: relative;
    z-index: 1;
    margin-bottom: 48px;
    animation: tr-fadeUp 0.6s 0.05s ease both;
    opacity: 0;
}
.tr-test-header-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.tr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8552a;
    color: #fff;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 3px;
}
.tr-test-year {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9aa5b4;
}
.tr-h1 {
    font-family: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif !important;
    font-size: clamp(2rem, 5vw, 3.4rem) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    line-height: 1.0 !important;
    letter-spacing: -0.5px !important;
    color: #1a2740 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.tr-h1 em { color: #e8552a; font-style: normal; }

.tr-accent-line {
    width: 56px;
    height: 4px;
    background: #e8552a;
    border-radius: 2px;
    margin: 16px 0;
}
.tr-test-header p {
    color: #4a5568 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    max-width: 560px;
    margin: 0 !important;
}
.tr-size-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a2740;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 4px;
    margin-top: 18px;
}
.tr-size-pill i { color: #e8552a; font-size: 0.75rem; }

/* -- RESULTS GRID -- */
.tr-results-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* -- RESULT CARD -- */
.tr-result-card {
    display: grid !important;
    grid-template-columns: 56px 80px 1fr auto !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    overflow: hidden;
    text-decoration: none !important;
    color: #1a2740 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    animation: tr-fadeUp 0.5s ease both;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
.tr-result-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 32px rgba(26,39,64,0.10) !important;
    border-color: rgba(232,85,42,0.3) !important;
    text-decoration: none !important;
    color: #1a2740 !important;
}
.tr-result-card:hover .tr-card-detail-link { color: #e8552a; }

.tr-result-card.rank-1 { border-left: 4px solid #e8552a !important; }
.tr-result-card.rank-2 { border-left: 4px solid #1a2740 !important; }
.tr-result-card.rank-3 { border-left: 4px solid #1a2740 !important; }
.tr-result-card.rank-4 { border-left: 4px solid #c0c9d6 !important; }
.tr-result-card.rank-5,
.tr-result-card.rank-6,
.tr-result-card.rank-7 { border-left: 4px solid #e2e8f0 !important; }

/* rank number */
.tr-card-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px 0 20px 14px;
}
.tr-rank-num {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(26,39,64,0.15);
}
.tr-result-card.rank-1 .tr-rank-num {
    color: #e8552a;
    -webkit-text-stroke: 0px;
}

/* tire visual */
.tr-card-tire {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
}
.tr-card-tire svg {
    width: 54px;
    height: 54px;
    opacity: 0.18;
    transition: opacity 0.2s;
}
.tr-result-card:hover .tr-card-tire svg { opacity: 0.35; }
.tr-result-card.rank-1 .tr-card-tire svg { opacity: 0.5; }

/* card body */
.tr-card-body { padding: 18px 16px; }
.tr-card-brand {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9aa5b4;
    margin-bottom: 3px;
}
.tr-card-model {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    color: #1a2740 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.tr-result-card.rank-1 .tr-card-model { color: #e8552a !important; }

/* score bar */
.tr-score-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.tr-score-bar-bg {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    max-width: 180px;
}
.tr-score-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: #1a2740;
    transition: width 1s ease;
}
.tr-result-card.rank-1 .tr-score-bar-fill { background: #e8552a; }
.tr-score-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #9aa5b4;
    white-space: nowrap;
}

/* verdict */
.tr-card-verdict {
    padding: 18px 20px 18px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.tr-verdict-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.tr-verdict-zeer-goed {
    background: rgba(232,85,42,0.10);
    color: #e8552a;
    border: 1px solid rgba(232,85,42,0.25);
}
.tr-verdict-goed {
    background: rgba(26,39,64,0.07);
    color: #1a2740;
    border: 1px solid rgba(26,39,64,0.15);
}
.tr-verdict-badge i { font-size: 0.6rem; }

.tr-card-detail-link {
    font-size: 0.75rem;
    color: #9aa5b4;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
}
.tr-card-detail-link:hover { color: #e8552a !important; }

.tr-winner-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #e8552a;
}

/* -- SECTION DIVIDER -- */
.tr-section-divider {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 32px 0 16px;
    animation: tr-fadeUp 0.5s ease both;
    opacity: 0;
}
.tr-section-divider-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #9aa5b4;
    white-space: nowrap;
}
.tr-section-divider-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* -- FOOTER CTA -- */
.tr-footer-cta {
    position: relative;
    z-index: 1;
    margin-top: 56px;
    background: #1a2740;
    border-radius: 8px;
    padding: 40px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    overflow: hidden;
    animation: tr-fadeUp 0.6s ease both;
    opacity: 0;
}
.tr-footer-cta::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    border: 40px solid rgba(255,255,255,0.04);
}
.tr-footer-cta-text h3 {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    color: #fff !important;
    margin-bottom: 6px !important;
}
.tr-footer-cta-text h3 em { color: #e8552a; font-style: normal; }
.tr-footer-cta-text p {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}
.tr-footer-cta-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* -- BUTTONS -- */
.tr-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 13px 28px !important;
    border-radius: 4px !important;
    font-family: 'Barlow', 'Segoe UI', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}
.tr-btn-p {
    background: #e8552a !important;
    color: #ffffff !important;
    border: 2px solid #e8552a !important;
}
.tr-btn-p:hover {
    background: #c94220 !important;
    border-color: #c94220 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(232,85,42,0.30) !important;
    text-decoration: none !important;
}
.tr-btn-s {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
}
.tr-btn-s:hover {
    border-color: rgba(255,255,255,0.6) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
}

/* -- ANIMATIONS -- */
@keyframes tr-fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* -- RESPONSIVE -- */
@media (max-width: 640px) {
    .tr-result-card { grid-template-columns: 44px 60px 1fr !important; }
    .tr-card-verdict { display: none; }
    .tr-footer-cta { flex-direction: column; }
    .tr-footer-cta-btns { width: 100%; }
    .tr-btn { width: 100% !important; justify-content: center !important; }
    .tr-bg-tire-l { display: none; }
    .tr-bg-tire-r { width: 260px; height: 260px; right: -50px; opacity: 0.03; }
}