/* =========================================================
   MockVest Portfolio Leaderboard
   Monochrome / Premium
   ========================================================= */

.mv-portfolio-leaderboard {
    width: 100%;
    max-width: 820px;
    margin: 50px auto;
    box-sizing: border-box;
    color: #101014;
}


/* =========================================================
   HEADER
   ========================================================= */

.mv-pl-header {
    margin-bottom: 24px;
}

.mv-pl-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 28px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.7px;

    color: #0b0b0e;
}

.mv-pl-title svg {
    width: 23px;
    height: 23px;

    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;

    flex: 0 0 auto;
}

.mv-pl-subtitle {
    margin: 8px 0 0;

    font-size: 15px;
    line-height: 1.5;

    color: #666670;
}

.mv-pl-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 10px;

    font-size: 12px;
    font-weight: 500;

    color: #9999a3;
}

.mv-pl-meta svg {
    width: 14px;
    height: 14px;

    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.mv-pl-meta-dot {
    color: #c9c9cf;
}


/* =========================================================
   PODIUM
   ========================================================= */

.mv-pl-podium {
    position: relative;

    margin-bottom: 24px;
    padding: 64px 22px 0;

    border-radius: 28px 28px 20px 20px;

    background:
        radial-gradient(
            100% 100% at 50% 0%,
            #292930 0%,
            #111116 42%,
            #07070a 100%
        );

    box-shadow:
        0 30px 60px -32px rgba(0, 0, 0, 0.75);

    overflow: hidden;
    isolation: isolate;
}


/* subtle background grid */

.mv-pl-podium::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 32px 32px;

    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.9),
        transparent 90%
    );

    pointer-events: none;

    z-index: -1;
}


/* soft central light */

.mv-pl-podium::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 260px;

    left: 50%;
    top: -150px;

    transform: translateX(-50%);

    background: radial-gradient(
        ellipse,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(255, 255, 255, 0) 70%
    );

    pointer-events: none;
}


/* =========================================================
   PODIUM GRID
   ========================================================= */

.mv-pl-podium-inner {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns: 1fr 1.15fr 1fr;

    align-items: end;
    gap: 14px;
}


/* =========================================================
   PODIUM CARDS
   ========================================================= */

.mv-pl-podium-card {
    position: relative;

    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 28px 16px 24px;

    text-align: center;

    background: #ffffff;

    border-radius: 20px;

    box-shadow:
        0 20px 40px -24px rgba(0, 0, 0, 0.65);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.mv-pl-podium-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 28px 50px -26px rgba(0, 0, 0, 0.7);
}


/* Order */

.mv-pl-podium-card.rank-2 {
    order: 1;
}

.mv-pl-podium-card.rank-1 {
    order: 2;
}

.mv-pl-podium-card.rank-3 {
    order: 3;
}


/* =========================================================
   FIRST PLACE
   ========================================================= */

.mv-pl-podium-card.rank-1 {
    padding: 34px 18px 30px;

    transform: translateY(-30px);

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f1f1f3 100%
        );

    box-shadow:
        0 34px 60px -28px rgba(0, 0, 0, 0.85),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.mv-pl-podium-card.rank-1:hover {
    transform: translateY(-35px);
}


/* =========================================================
   SECOND / THIRD
   ========================================================= */

.mv-pl-podium-card.rank-2,
.mv-pl-podium-card.rank-3 {
    transform: translateY(-5px);
}

.mv-pl-podium-card.rank-2:hover,
.mv-pl-podium-card.rank-3:hover {
    transform: translateY(-10px);
}


/* =========================================================
   RANK BADGE
   ========================================================= */

.mv-pl-podium-medal {
    position: absolute;

    top: -17px;
    left: 50%;

    transform: translateX(-50%);

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #17171c;
    color: #ffffff;

    border: 3px solid #ffffff;

    font-size: 12px;
    font-weight: 800;

    box-shadow:
        0 7px 16px -7px rgba(0, 0, 0, 0.7);

    z-index: 5;
}


/* First place gets a larger black badge */

.mv-pl-podium-card.rank-1 .mv-pl-podium-medal {
    width: 46px;
    height: 46px;

    top: -22px;

    background: #050507;

    border-width: 4px;

    font-size: 14px;

    box-shadow:
        0 10px 22px -8px rgba(0, 0, 0, 0.8);
}

.mv-pl-podium-medal svg {
    width: 17px;
    height: 17px;

    fill: currentColor;
    stroke: none;
}

.mv-pl-podium-card.rank-1 .mv-pl-podium-medal svg {
    width: 21px;
    height: 21px;
}


/* =========================================================
   AVATAR
   ========================================================= */

.mv-pl-podium-avatar {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    border-radius: 50%;

    background: #eeeeF1;
    color: #151519;

    font-size: 21px;
    font-weight: 750;

    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.mv-pl-podium-card.rank-1 .mv-pl-podium-avatar {
    width: 72px;
    height: 72px;

    font-size: 27px;

    background: #111116;
    color: #ffffff;

    box-shadow:
        0 10px 22px -10px rgba(0, 0, 0, 0.7);
}


/* =========================================================
   USERNAME
   ========================================================= */

.mv-pl-podium-info {
    width: 100%;
    min-width: 0;
}

.mv-pl-podium-username {
    display: block;
    width: 100%;
    max-width: 100%;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;

    color: #121216;
    letter-spacing: -0.2px;

    text-decoration: none;
    transition: opacity 0.15s ease;
}

.mv-pl-podium-username:hover {
    opacity: 0.65;
    text-decoration: none;
}

.mv-pl-podium-card.rank-1 .mv-pl-podium-username {
    font-size: 17px;
}

/* =========================================================
   PERFORMANCE
   ========================================================= */

.mv-pl-podium-performance {
    margin-top: 8px;

    display: inline-flex;
    align-items: baseline;
    gap: 2px;

    font-size: 23px;
    line-height: 1;

    font-weight: 800;
    letter-spacing: -0.7px;

    font-variant-numeric: tabular-nums;

    color: #111115;
}

.mv-pl-podium-card.rank-1 .mv-pl-podium-performance {
    font-size: 31px;
}


/* positive / negative */

.mv-pl-podium-performance.is-up {
    color: #111115;
}

.mv-pl-podium-performance.is-down {
    color: #55555d;
}

.mv-pl-podium-performance.is-flat {
    color: #9999a2;
}

.mv-pl-pct {
    font-size: 13px;
    font-weight: 650;
    opacity: 0.55;
}


/* =========================================================
   LABEL
   ========================================================= */

.mv-pl-podium-label {
    margin-top: 8px;

    font-size: 10px;
    font-weight: 650;

    letter-spacing: 0.7px;
    text-transform: uppercase;

    color: #9999a3;
}


/* =========================================================
   PODIUM BASE
   ========================================================= */

.mv-pl-podium-base {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 46px;

    border-radius: 13px 13px 0 0;

    background: rgba(255, 255, 255, 0.045);

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.55);

    font-size: 10px;
    font-weight: 750;

    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.mv-pl-podium-base.is-1 {
    height: 66px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.025)
        );

    color: #ffffff;

    font-size: 11px;
}

.mv-pl-podium-base.is-2 {
    height: 52px;

    color: rgba(255, 255, 255, 0.65);
}

.mv-pl-podium-base.is-3 {
    height: 42px;

    color: rgba(255, 255, 255, 0.45);
}


/* =========================================================
   NORMAL RANKINGS
   ========================================================= */

.mv-pl-list {
    width: 100%;

    overflow: hidden;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 8px 25px -15px rgba(0, 0, 0, 0.3),
        0 0 0 1px #e8e8ec;
}

.mv-pl-row {
    display: grid;

    grid-template-columns: 52px minmax(0, 1fr) auto;

    align-items: center;

    gap: 14px;

    min-height: 68px;

    padding: 10px 20px;

    box-sizing: border-box;

    border-bottom: 1px solid #eeeeF1;

    transition:
        background 0.15s ease,
        padding 0.15s ease;
}

.mv-pl-row:last-child {
    border-bottom: none;
}

.mv-pl-row:hover {
    background: #f8f8fa;
}


/* rank */

.mv-pl-rank {
    text-align: center;

    font-size: 13px;
    font-weight: 650;

    color: #9999a2;

    font-variant-numeric: tabular-nums;
}


/* user */

.mv-pl-user {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;
}

.mv-pl-avatar {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f0f0f2;
    color: #202025;

    font-size: 14px;
    font-weight: 750;

    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.045);
}

.mv-pl-username {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 14px;
    font-weight: 650;

    color: #202025;
}


/* performance */

.mv-pl-performance {
    min-width: 88px;

    display: inline-flex;
    align-items: center;
    justify-content: flex-end;

    gap: 5px;

    font-size: 14px;
    font-weight: 750;

    font-variant-numeric: tabular-nums;
    letter-spacing: -0.2px;

    color: #111115;
}

.mv-pl-performance.is-up {
    color: #111115;
}

.mv-pl-performance.is-down {
    color: #66666e;
}

.mv-pl-performance.is-flat {
    color: #a0a0a8;
}

.mv-pl-performance svg {
    width: 13px;
    height: 13px;

    stroke: currentColor;
    stroke-width: 2.2;

    fill: none;
}


/* =========================================================
   EMPTY
   ========================================================= */

.mv-pl-empty {
    padding: 58px 20px;

    text-align: center;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 8px 25px -15px rgba(0, 0, 0, 0.25),
        0 0 0 1px #e8e8ec;
}

.mv-pl-empty svg {
    width: 32px;
    height: 32px;

    margin-bottom: 12px;

    stroke: #b6b6be;
    stroke-width: 1.8;

    fill: none;
}

.mv-pl-empty p {
    margin: 0;

    font-size: 14px;

    color: #888891;
}

/* =========================================================
   YOUR POSITION
   ========================================================= */

.mv-pl-your-position {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 24px;
    padding: 18px 22px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #17171c 0%,
            #0b0b0e 100%
        );

    color: #ffffff;

    box-shadow:
        0 14px 30px -20px rgba(0, 0, 0, 0.65);

    overflow: hidden;
}


/* subtle highlight */

.mv-pl-your-position::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            80% 120% at 100% 0%,
            rgba(255, 255, 255, 0.08),
            transparent 65%
        );

    pointer-events: none;
}


/* label */

.mv-pl-your-position-label {
    position: relative;
    z-index: 1;

    font-size: 11px;
    font-weight: 750;

    letter-spacing: 1px;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.55);
}


/* main content */

.mv-pl-your-position-main {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;

    gap: 16px;
}


/* rank */

.mv-pl-your-position-rank {
    font-size: 24px;
    line-height: 1;

    font-weight: 800;
    letter-spacing: -0.7px;

    font-variant-numeric: tabular-nums;

    color: #ffffff;
}

.mv-pl-your-position-rank span {
    margin-right: 1px;

    font-size: 13px;
    font-weight: 650;

    color: rgba(255, 255, 255, 0.5);
}


/* divider */

.mv-pl-your-position-divider {
    width: 1px;
    height: 28px;

    background: rgba(255, 255, 255, 0.14);
}


/* performance */

.mv-pl-your-position-performance {
    font-size: 22px;
    line-height: 1;

    font-weight: 800;
    letter-spacing: -0.5px;

    font-variant-numeric: tabular-nums;

    color: #ffffff;
}

.mv-pl-your-position-performance span {
    margin-left: 1px;

    font-size: 12px;
    font-weight: 650;

    color: rgba(255, 255, 255, 0.5);
}


/* caption */

.mv-pl-your-position-caption {
    display: none;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .mv-portfolio-leaderboard {
        width: calc(100% - 32px);
        margin: 35px auto;
    }

    .mv-pl-title {
        font-size: 23px;
    }

    .mv-pl-podium {
        padding: 52px 12px 0;
        border-radius: 22px 22px 18px 18px;
    }

    .mv-pl-podium-inner {
        grid-template-columns: 1fr 1fr;

        grid-template-areas:
            "first first"
            "second third";

        gap: 10px;
    }

    .mv-pl-podium-card.rank-1 {
        grid-area: first;

        transform: translateY(0);

        padding: 30px 16px 26px;

        margin-top: 8px;
    }

    .mv-pl-podium-card.rank-1:hover {
        transform: translateY(-4px);
    }

    .mv-pl-podium-card.rank-2 {
        grid-area: second;
        transform: translateY(0);
    }

    .mv-pl-podium-card.rank-3 {
        grid-area: third;
        transform: translateY(0);
    }

    .mv-pl-podium-card.rank-2:hover,
    .mv-pl-podium-card.rank-3:hover {
        transform: translateY(-4px);
    }

    .mv-pl-podium-card.rank-1 .mv-pl-podium-avatar {
        width: 62px;
        height: 62px;
        font-size: 24px;
    }

    .mv-pl-podium-card.rank-1 .mv-pl-podium-performance {
        font-size: 27px;
    }

    .mv-pl-podium-base {
        display: none;
    }

    .mv-pl-podium-card {
        margin-bottom: 14px;
    }

    .mv-pl-row {
        grid-template-columns: 36px minmax(0, 1fr) auto;

        gap: 10px;

        padding: 10px 14px;

        min-height: 62px;
    }

    .mv-pl-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;

        font-size: 13px;
    }

    .mv-pl-performance {
        min-width: 72px;
        font-size: 13px;
    }

    .mv-pl-performance svg {
        width: 11px;
        height: 11px;
    }

        .mv-pl-your-position {
        padding: 16px 16px;
        border-radius: 16px;
    }

    .mv-pl-your-position-label {
        font-size: 10px;
        letter-spacing: 0.8px;
    }

    .mv-pl-your-position-main {
        gap: 12px;
    }

    .mv-pl-your-position-rank {
        font-size: 21px;
    }

    .mv-pl-your-position-performance {
        font-size: 19px;
    }

    .mv-pl-your-position-divider {
        height: 24px;
    }
}

.mv-pl-podium-bases {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 14px;

    margin-top: -6px;
}
.mv-pl-podium-base.is-2 {
    order: 1;
}

.mv-pl-podium-base.is-1 {
    order: 2;
}

.mv-pl-podium-base.is-3 {
    order: 3;
}

.mv-pl-podium-username,
.mv-pl-username {
    text-decoration: none;
}

.mv-pl-podium-username:hover,
.mv-pl-username:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mv-pl-podium-username {
    transition: opacity 0.15s ease;
}

.mv-pl-podium-username:hover {
    opacity: 0.65;
    text-decoration: none;
}

.mv-pl-username {
    transition: color 0.15s ease;
}

.mv-pl-username:hover {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

