/* ============================================================
   BANDENTEST 2025
   bandenkopen.nl | #1a2740 navy | #e8552a orange
   ============================================================ */

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

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.tr-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 1.2rem 4rem;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #1a2740;
}

/* ============================================================
   HEADER
   ============================================================ */
.tr-header {
    background: #fff;
    border: 1px solid #dce4ed;
    border-radius: 16px;
    padding: 2rem 2.4rem 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26,39,64,0.07);
    z-index: 1;
    
    
}
.tr-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #e8552a, #f5a623);
}
.tr-header-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}
.tr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(232,85,42,0.10);
    color: #e8552a;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid rgba(232,85,42,0.25);
}
.tr-source-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(26,39,64,0.06);
    color: #1a2740;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid #dce4ed;
}
.tr-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
    color: #1a2740;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}
.tr-header h1 span { color: #e8552a; }
.tr-accent-line {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #e8552a, #f5a623);
    border-radius: 2px;
    margin-bottom: 0.9rem;
}
.tr-header-desc {
    color: #4a5568;
    font-size: 0.9rem;
    max-width: 560px;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}
.tr-header-desc strong { color: #1a2740; }

/* Meta pills */
.tr-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.tr-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f4f6f9;
    border: 1.5px solid #dce4ed;
    color: #1a2740;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}
.tr-meta-pill i { color: #e8552a; font-size: 11px; }

/* ============================================================
   LEGEND
   ============================================================ */
.tr-legend {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid #dce4ed;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    
    
}
.tr-legend-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #9aa5b4;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tr-legend-title i { color: #e8552a; font-size: 0.72rem; }
.tr-legend-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dce4ed;
}
.tr-legend-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin-bottom: 16px;
}
.tr-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #1a2740;
}
.tr-legend-sym {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 34px;
}

/* Score symbol colours - shared by .tr-legend-sym and .tr-mc-val */
.sym-pp { color: #d4900a; }
.sym-p  { color: #2e9e6b; }
.sym-op { color: #2a5ce8; }
.sym-o  { color: #9aa5b4; }
.sym-om { color: #c87941; }
.sym-m  { color: #e8552a; }
.sym-mm { color: #c0392b; }

/* Criteria grid */
.tr-criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px 24px;
    padding-top: 14px;
    border-top: 1px solid #dce4ed;
}
.tr-crit-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: #9aa5b4;
}
.tr-crit-item strong { color: #1a2740; }
.tr-crit-item i { font-size: 0.65rem; width: 12px; text-align: center; }

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

/* ============================================================
   DIVIDER
   ============================================================ */
.tr-divider {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 8px 0 4px;
    
    
}
.tr-divider-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #9aa5b4;
    white-space: nowrap;
}
.tr-divider-line {
    flex: 1;
    height: 1px;
    background: #dce4ed;
}

/* ============================================================
   CARD
   ============================================================ */
.tr-card {
    background: #fff;
    border: 1px solid #dce4ed;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    color: #1a2740 !important;
    box-shadow: 0 2px 12px rgba(26,39,64,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    opacity: 0; /* beginwaarde voor animatie */
    animation: tr-fadeUp 0.5s ease both;  
}
.tr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(26,39,64,0.10);
    border-color: rgba(232,85,42,0.3);
    text-decoration: none !important;
    color: #1a2740 !important;
}

/* Rank border colours */
.tr-card.rank-1 { border-left: 4px solid #e8552a; }
.tr-card.rank-2 { border-left: 4px solid #1a2740; }
.tr-card.rank-3 { border-left: 4px solid #2e9e6b; }
.tr-card.rank-4 { border-left: 4px solid #95b8d1; }
.tr-card.rank-5,
.tr-card.rank-6,
.tr-card.rank-7 { border-left: 4px solid #dce4ed; }

/* Card inner grid */
.tr-card-main {
    display: grid;
    grid-template-columns: 56px 88px 1fr auto;
    align-items: stretch;
    width: 100%;
}

/* Rank column */
.tr-col-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 20px 14px;
    background: #f4f6f9;
    border-right: 1px solid #dce4ed;
}
.tr-col-rank .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-card.rank-1 .tr-col-rank .tr-rank-num {
    color: #e8552a;
    -webkit-text-stroke: 0;
}
.tr-card.rank-2 .tr-col-rank .tr-rank-num {
    color: #1a2740;
    -webkit-text-stroke: 0;
}
.tr-card.rank-3 .tr-col-rank .tr-rank-num {
    color: #2e9e6b;
    -webkit-text-stroke: 0;
}

/* Image column */
.tr-col-img {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    border-right: 1px solid #dce4ed;
}
.tr-col-img img.tr-tire-img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    transition: transform 0.2s ease;
}
.tr-card:hover .tr-col-img img.tr-tire-img { transform: scale(1.07); }
.tr-col-img svg.tr-tire-svg {
    width: 54px;
    height: 54px;
    opacity: 0.18;
    display: none;
    transition: opacity 0.2s;
}
.tr-card:hover .tr-col-img svg.tr-tire-svg { opacity: 0.35; }
.tr-card.rank-1 .tr-col-img svg.tr-tire-svg { opacity: 0.5; }

/* Body column */
.tr-col-body { padding: 18px 16px; min-width: 0; }
.tr-card-brand {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9aa5b4;
    margin-bottom: 2px;
}
.tr-card-model {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a2740;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}
.tr-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.7rem;
}
.tr-score-bar-bg {
    flex: 1;
    max-width: 180px;
    height: 6px;
    background: #dce4ed;
    border-radius: 3px;
    overflow: hidden;
}
.tr-score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e8552a, #f5a623);
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.tr-score-note {
    font-size: 0.72rem;
    font-weight: 600;
    color: #9aa5b4;
    white-space: nowrap;
}

/* Mini criteria */
.tr-mini-crits {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 10px;
    margin-top: 8px;
}
.tr-mc {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    color: #9aa5b4;
}
.tr-mc-val {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
}

/* Verdict column */
.tr-col-verdict {
    padding: 18px 20px 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    border-left: 1px solid #dce4ed;
}
.tr-winner-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8552a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}
.tr-verdict {
    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-warn,
.tr-verdict-badge.tr-verdict-warn {
    background: rgba(200,121,65,0.10);
    color: #c87941;
    border: 1px solid rgba(200,121,65,0.28);
}
.tr-verdict-bad,
.tr-verdict-badge.tr-verdict-bad {
    background: rgba(192,57,43,0.08);
    color: #c0392b;
    border: 1px solid rgba(192,57,43,0.22);
}

/* Price */
.tr-price-wrap { text-align: right; }
.tr-price-from {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #9aa5b4;
    line-height: 1;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tr-price-val {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #1a2740;
    line-height: 1;
}

/* "Bekijk band" button */
.tr-btn-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #1a2740 !important;
    color: #fff !important;
    text-decoration: none !important;
    font-family: 'Barlow', 'Open Sans', 'Segoe UI', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    transition: background 0.18s ease, transform 0.15s ease !important;
    line-height: 1 !important;
}
.tr-btn-link:hover {
    background: #e8552a !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}
.tr-btn-link i { font-size: 0.6rem; }

/* tr-btn base (used alongside tr-btn-p / tr-btn-s) */
.tr-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: opacity 0.18s, transform 0.15s;
    cursor: pointer;
}

/* ============================================================
   FOOTER CTA
   ============================================================ */
.tr-footer-cta {
    margin-top: 1.8rem;
    background: #fff;
    border: 1px solid #dce4ed;
    border-radius: 14px;
    padding: 1.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(26,39,64,0.06);
    position: relative;
    z-index: 1;
}
.tr-footer-cta-text { flex: 1; min-width: 0; }
.tr-footer-cta h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a2740;
    margin-bottom: 0.25rem;
}
.tr-footer-cta h3 span,
.tr-footer-cta h3 em {
    color: #e8552a;
    font-style: normal;
}
.tr-footer-cta p {
    color: #9aa5b4;
    font-size: 0.85rem;
    max-width: 380px;
}
.tr-footer-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.tr-btn-p {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e8552a;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    transition: opacity 0.18s, transform 0.15s;
}
.tr-btn-p:hover { opacity: 0.88; transform: translateY(-1px); }
.tr-btn-s {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f4f6f9;
    color: #1a2740 !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1.5px solid #dce4ed;
    transition: border-color 0.18s;
}
.tr-btn-s:hover { border-color: #1a2740; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .tr-card-main {
        grid-template-columns: 44px 64px 1fr;
    }
    .tr-col-verdict { display: none; }
    .tr-col-body { padding: 12px 10px; }
    .tr-col-img { padding: 10px 6px; border-right: none; }
    .tr-col-rank { padding: 12px 0 12px 10px; }
    .tr-legend { padding: 16px 18px; }
    .tr-criteria-grid { grid-template-columns: 1fr 1fr; }
    .tr-mini-crits { gap: 2px 8px; }
    .tr-price-val { font-size: 1.1rem; }
    .tr-col-img img.tr-tire-img { width: 50px; height: 50px; }
    .tr-footer-cta { flex-direction: column; }
    .tr-header { padding: 1.4rem 1.2rem; }
}