/* ================================
   TRI-ESTER / VP RACING LANDING STYLE
   Light landing page + racing red/blue accents
================================ */

:root {
    --vp-bg: #f3f6fa;
    --vp-bg-soft: #eef2f7;
    --vp-surface: #ffffff;
    --vp-surface-2: #f8fafc;

    --vp-black: #05070d;
    --vp-graphite: #0b1020;
    --vp-graphite-2: #101827;

    --vp-blue: #0057b8;
    --vp-blue-bright: #1677ff;
    --vp-blue-soft: rgba(22, 119, 255, 0.10);

    --vp-red: #e10600;
    --vp-red-dark: #a90500;
    --vp-red-soft: rgba(225, 6, 0, 0.10);

    --vp-text: #111827;
    --vp-text-soft: #334155;
    --vp-muted: #64748b;
    --vp-border: #d9e2ee;

    --vp-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
    --vp-shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.16);
}


/* ================================
   GLOBAL
================================ */

.triester-block,
.triester-core {
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.triester-block *,
.triester-block *::before,
.triester-block *::after,
.triester-core *,
.triester-core *::before,
.triester-core *::after {
    box-sizing: border-box;
}

.triester-block {
    position: relative;
    width: 100%;
    margin: 0 0 34px;
    color: var(--vp-text);
}

.triester-core {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}


/* ================================
   CARD BASE
================================ */

.triester-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    border: 1px solid var(--vp-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--vp-shadow);
}

.triester-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--vp-blue), var(--vp-red));
}

.triester-card::after {
    content: "";
    position: absolute;
    top: -110px;
    right: -110px;
    width: 240px;
    height: 240px;
    background:
        radial-gradient(circle, rgba(22, 119, 255, 0.13), transparent 68%);
    pointer-events: none;
}

.triester-card h2 {
    position: relative;
    z-index: 2;
    font-size: 28px;
    line-height: 1.22;
    font-weight: 900;
    color: var(--vp-text);
    margin: 0 0 18px;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.triester-card h2::after {
    content: "";
    display: block;
    width: 76px;
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--vp-blue-bright), var(--vp-red));
}

.triester-card p {
    position: relative;
    z-index: 2;
    color: var(--vp-text-soft);
    font-size: 16px;
    line-height: 1.7;
    margin-top: 0;
}

.triester-small-text {
    max-width: 880px;
    font-size: 15.5px !important;
    color: var(--vp-muted);
    line-height: 1.68;
    margin-bottom: 26px;
}


/* ================================
   OIL SYSTEM
================================ */

.triester-oil-system .triester-card {
    background:
        radial-gradient(circle at top right, rgba(22, 119, 255, 0.10), transparent 35%),
        linear-gradient(180deg, #ffffff, #f8fafc);
}

.triester-oil-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.triester-oil-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--vp-border);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.triester-oil-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 999px;
    background: #cbd5e1;
}

.triester-oil-item span {
    font-weight: 900;
    color: var(--vp-text);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.triester-oil-item p {
    margin: 0;
    font-size: 14.5px;
    color: var(--vp-text-soft);
    text-align: right;
}

.triester-oil-blue {
    background:
        linear-gradient(90deg, rgba(22,119,255,0.08), #ffffff);
    border-color: rgba(22, 119, 255, 0.26);
}

.triester-oil-blue::before {
    background: var(--vp-blue-bright);
}

.triester-oil-blue span {
    color: var(--vp-blue);
}

.triester-oil-highlight {
    background:
        linear-gradient(110deg, rgba(225, 6, 0, 0.10), rgba(22, 119, 255, 0.10), #ffffff);
    border: 1px solid rgba(225, 6, 0, 0.34);
    box-shadow: 0 18px 40px rgba(225, 6, 0, 0.13);
    transform: scale(1.012);
}

.triester-oil-highlight::before {
    background: var(--vp-red);
}

.triester-oil-highlight::after {
    content: "CẤP CAO NHẤT";
    position: absolute;
    top: -1px;
    right: 16px;
    padding: 5px 10px;
    border-radius: 0 0 10px 10px;
    background: var(--vp-red);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.triester-oil-highlight span {
    color: var(--vp-red);
    font-size: 18px;
}

.triester-oil-highlight p {
    font-weight: 900;
    color: var(--vp-text);
}


/* ================================
   CHART BASE
================================ */

.triester-chart-box {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 370px;
    max-height: 440px;
    padding: 16px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid var(--vp-border);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
}

.triester-chart-box::before {
    content: "";
    position: absolute;
    // inset: 12px;
    border-radius: 16px;
    border: 1px dashed rgba(15, 23, 42, 0.08);
    pointer-events: none;
}

.triester-chart-box canvas {
    position: relative;
    z-index: 2;
    width: 100% !important;
    height: 100% !important;
}


/* ================================
   RADAR CHART BLOCK
================================ */

.triester-radar-chart .triester-card {
    background:
        radial-gradient(circle at top right, rgba(22,119,255,0.12), transparent 34%),
        linear-gradient(180deg, #ffffff, #f8fafc);
    border-color: rgba(22, 119, 255, 0.28);
}


/* ================================
   TEMPERATURE BLOCK - GRAPHITE FEATURE
================================ */

.triester-temp-chart .triester-card {
    background:
        radial-gradient(circle at top right, rgba(225, 6, 0, 0.18), transparent 36%),
        radial-gradient(circle at bottom left, rgba(22, 119, 255, 0.18), transparent 36%),
        linear-gradient(135deg, var(--vp-graphite-2), var(--vp-black));
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: var(--vp-shadow-strong);
}

.triester-temp-chart .triester-card::before {
    background: linear-gradient(90deg, var(--vp-red), var(--vp-blue-bright));
}

.triester-temp-chart .triester-card h2 {
    color: #ffffff;
}

.triester-temp-chart .triester-card p,
.triester-temp-chart .triester-small-text {
    color: #cbd5e1;
}

.triester-temp-chart .triester-chart-box {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,245,249,0.96));
    border-color: rgba(255,255,255,0.18);
}


/* ================================
   FRICTION BLOCK
================================ */

.triester-friction-chart .triester-card {
    background:
        radial-gradient(circle at top right, rgba(225, 6, 0, 0.10), transparent 34%),
        linear-gradient(180deg, #ffffff, #f8fafc);
    border-color: rgba(225, 6, 0, 0.25);
}

.triester-friction-chart .triester-card::before {
    background: linear-gradient(90deg, var(--vp-red), var(--vp-blue));
}


/* ================================
   CORE SHORTCODE SPACING
================================ */

.triester-core .triester-block:last-child {
    margin-bottom: 0;
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
    .triester-card {
        padding: 26px;
        border-radius: 20px;
    }

    .triester-card h2 {
        font-size: 23px;
    }

    .triester-chart-box {
        height: 320px;
    }
}

@media (max-width: 640px) {
    .triester-block {
        margin-bottom: 24px;
    }

    .triester-card {
        padding: 22px;
        border-radius: 18px;
    }

    .triester-card h2 {
        font-size: 21px;
    }

    .triester-card h2::after {
        width: 58px;
        height: 3px;
    }

    .triester-chart-box {
        height: 285px;
        padding: 10px;
        border-radius: 16px;
    }

    .triester-chart-box::before {
        // inset: 8px;
        border-radius: 12px;
    }

    .triester-oil-item {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
    }

    .triester-oil-item p {
        text-align: left;
    }

    .triester-oil-highlight {
        transform: none;
        padding-top: 32px;
    }

    .triester-oil-highlight::after {
        left: 18px;
        right: auto;
    }
}