/*
==========================================================
UET RANKINGS
Premium Frontend Styling
==========================================================
*/

/* ==========================================================
   PAGE
========================================================== */

.uet-rankings-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 80px;
    box-sizing: border-box;
    color: #ffffff;
}


/* ==========================================================
   HERO
========================================================== */

.uet-rankings-hero {
    position: relative;
    margin: 0 0 50px;
    padding: 80px 40px;
    min-height: 300px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 15% 50%,
            rgba(0, 110, 255, 0.28),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 50%,
            rgba(255, 0, 170, 0.22),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #050505 0%,
            #0b0b12 50%,
            #050505 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        inset 0 0 60px rgba(0, 110, 255, 0.04);
}


.uet-rankings-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0, 140, 255, 0.05),
            transparent
        );

    pointer-events: none;
}


.uet-rankings-hero::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -100px;
    top: -100px;

    border-radius: 50%;

    background: rgba(255, 0, 170, 0.10);

    filter: blur(50px);

    pointer-events: none;
}


.uet-rankings-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}


/* ==========================================================
   SECTION HEADINGS
========================================================== */

.uet-section-heading {
    margin-bottom: 28px;
}


.uet-section-heading > span {
    display: inline-block;

    margin-bottom: 10px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 3px;

    color: #4da3ff;
}


.uet-section-heading h1,
.uet-section-heading h2 {
    margin: 0 0 12px;

    font-weight: 900;
    line-height: 1.05;

    color: #ffffff;
}


.uet-section-heading h1 {
    font-size: clamp(38px, 5vw, 68px);

    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #ffffff 45%,
            #4da3ff 70%,
            #ff4dcc 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


.uet-section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
}


.uet-section-heading p {
    max-width: 700px;

    margin: 0;

    color: rgba(255, 255, 255, 0.62);

    font-size: 16px;
    line-height: 1.7;
}


/* ==========================================================
   NAVIGATION
========================================================== */

.uet-ranking-navigation {
    margin-bottom: 50px;
}


.uet-ranking-tabs {
    display: flex;

    gap: 12px;

    overflow-x: auto;

    padding: 5px 3px 14px;

    scrollbar-width: thin;
}


.uet-ranking-tabs::-webkit-scrollbar {
    height: 5px;
}


.uet-ranking-tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}


.uet-ranking-tabs::-webkit-scrollbar-thumb {
    background: linear-gradient(
        90deg,
        #168cff,
        #ff2fbd
    );

    border-radius: 10px;
}


/* ==========================================================
   TAB
========================================================== */

.uet-ranking-tab {
    flex: 0 0 auto;

    min-width: 210px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 15px 18px;

    text-decoration: none !important;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid rgba(255, 255, 255, 0.08);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.uet-ranking-tab:hover {
    transform: translateY(-2px);

    border-color: rgba(77, 163, 255, 0.45);

    background:
        linear-gradient(
            145deg,
            rgba(0, 130, 255, 0.13),
            rgba(255, 0, 170, 0.07)
        );

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3);
}


.uet-ranking-tab.active {
    border-color: transparent;

    background:
        linear-gradient(#0c0c12, #0c0c12) padding-box,
        linear-gradient(
            90deg,
            #168cff,
            #b54dff,
            #ff2fbd
        ) border-box;

    border: 1px solid transparent;

    box-shadow:
        0 0 25px rgba(30, 130, 255, 0.12);
}


.uet-ranking-tab-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.06);

    font-size: 19px;
}


.uet-ranking-tab.active
.uet-ranking-tab-icon {
    background:
        linear-gradient(
            135deg,
            rgba(22, 140, 255, 0.2),
            rgba(255, 47, 189, 0.18)
        );
}


.uet-ranking-tab-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}


.uet-ranking-tab-content strong {
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.uet-ranking-tab-content small {
    color: rgba(255, 255, 255, 0.45);

    font-size: 11px;
}


/* ==========================================================
   RANKING SECTIONS
========================================================== */

.uet-ranking-section {
    margin-bottom: 70px;
}


/* ==========================================================
   CARD
========================================================== */

.uet-ranking-card {
    overflow: hidden;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        );

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);
}


/* ==========================================================
   TABLE HEADER
========================================================== */

.uet-ranking-header {
    display: grid;

    grid-template-columns:
        100px
        1fr
        150px;

    align-items: center;

    padding: 16px 24px;

    background:
        rgba(255, 255, 255, 0.035);

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    color: rgba(255, 255, 255, 0.4);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;
}


.uet-ranking-header span:last-child {
    text-align: right;
}


/* ==========================================================
   RANKING LIST
========================================================== */

.uet-ranking-list {
    width: 100%;
}


/* ==========================================================
   RANKING ROW
========================================================== */

.uet-ranking-row {
    position: relative;

    display: grid;

    grid-template-columns:
        100px
        1fr
        150px;

    align-items: center;

    min-height: 76px;

    padding: 10px 24px;

    box-sizing: border-box;

    border-bottom: 1px solid rgba(255, 255, 255, 0.055);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.uet-ranking-row:last-child {
    border-bottom: 0;
}


.uet-ranking-row:hover {
    background:
        linear-gradient(
            90deg,
            rgba(22, 140, 255, 0.07),
            rgba(255, 47, 189, 0.035)
        );
}


/* ==========================================================
   POSITION
========================================================== */

.uet-ranking-position {
    display: flex;
    align-items: center;

    font-size: 18px;
    font-weight: 900;
}


.uet-position-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.055);

    color: rgba(255, 255, 255, 0.65);

    font-size: 14px;
}


.uet-medal {
    font-size: 27px;

    filter:
        drop-shadow(
            0 4px 8px rgba(0, 0, 0, 0.35)
        );
}


/* ==========================================================
   PLAYER
========================================================== */

.uet-ranking-player {
    display: flex;
    flex-direction: column;

    gap: 4px;

    min-width: 0;
}


.uet-ranking-player strong {
    display: block;

    overflow: hidden;

    color: #ffffff;

    font-size: 16px;
    font-weight: 800;

    white-space: nowrap;
    text-overflow: ellipsis;
}


.uet-ranking-player small {
    color: rgba(255, 255, 255, 0.35);

    font-size: 11px;
}


/* ==========================================================
   POINTS
========================================================== */

.uet-ranking-points {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;

    gap: 7px;
}


.uet-ranking-points strong {
    color: #ffffff;

    font-size: 21px;
    font-weight: 900;
}


.uet-ranking-points span {
    color: #4da3ff;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;
}


/* ==========================================================
   TOP 3
========================================================== */

.uet-ranking-row.rank-gold {
    background:
        linear-gradient(
            90deg,
            rgba(255, 196, 0, 0.06),
            transparent
        );
}


.uet-ranking-row.rank-silver {
    background:
        linear-gradient(
            90deg,
            rgba(190, 200, 210, 0.045),
            transparent
        );
}


.uet-ranking-row.rank-bronze {
    background:
        linear-gradient(
            90deg,
            rgba(180, 100, 45, 0.045),
            transparent
        );
}


.uet-ranking-row.rank-gold .uet-ranking-points strong {
    color: #ffd84d;
}


.uet-ranking-row.rank-silver .uet-ranking-points strong {
    color: #d8e0e8;
}


.uet-ranking-row.rank-bronze .uet-ranking-points strong {
    color: #e2a46d;
}


/* ==========================================================
   EMPTY STATE
========================================================== */

.uet-ranking-empty {
    padding: 70px 30px;

    text-align: center;
}


.uet-ranking-empty-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(22, 140, 255, 0.12),
            rgba(255, 47, 189, 0.12)
        );

    border: 1px solid rgba(255, 255, 255, 0.07);

    font-size: 30px;
}


.uet-ranking-empty h3 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: 21px;
}


.uet-ranking-empty p {
    max-width: 520px;

    margin: 0 auto;

    color: rgba(255, 255, 255, 0.45);

    font-size: 14px;
    line-height: 1.7;
}


/* ==========================================================
   TOURNAMENT DATE
========================================================== */

.uet-ranking-date {
    display: inline-block;

    margin-top: 14px;

    padding: 8px 13px;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.045);

    color: rgba(255, 255, 255, 0.55);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;
}


/* ==========================================================
   STORE POINTS
========================================================== */

.uet-ranking-store-info {
    margin-top: 20px;
}


.uet-ranking-store-card {
    display: flex;
    align-items: center;

    gap: 22px;

    padding: 28px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(22, 140, 255, 0.06),
            rgba(255, 47, 189, 0.045)
        );

    border: 1px solid rgba(255, 255, 255, 0.07);
}


.uet-ranking-store-icon {
    width: 60px;
    height: 60px;

    flex: 0 0 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(22, 140, 255, 0.15),
            rgba(255, 47, 189, 0.12)
        );

    font-size: 27px;
}


.uet-ranking-store-card strong {
    display: block;

    margin-bottom: 6px;

    color: #ffffff;

    font-size: 17px;
}


.uet-ranking-store-card p {
    margin: 0;

    color: rgba(255, 255, 255, 0.48);

    font-size: 13px;
    line-height: 1.6;
}


/* ==========================================================
   ALL-TIME EMPHASIS
========================================================== */

.uet-ranking-all-time .uet-ranking-card {
    border-color:
        rgba(22, 140, 255, 0.15);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(22, 140, 255, 0.035);
}


/* ==========================================================
   CTA
========================================================== */

.uet-final-cta {
    position: relative;

    overflow: hidden;

    margin-top: 80px;
    padding: 70px 30px;

    text-align: center;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(22, 140, 255, 0.16),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 50%,
            rgba(255, 47, 189, 0.14),
            transparent 35%
        ),
        #08080d;

    border: 1px solid rgba(255, 255, 255, 0.08);
}


.uet-final-cta h2 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: clamp(28px, 4vw, 44px);

    font-weight: 900;
}


.uet-final-cta p {
    max-width: 600px;

    margin: 0 auto 28px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 15px;
    line-height: 1.7;
}


/* ==========================================================
   BUTTON
========================================================== */

.uet-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 25px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #168cff,
            #b54dff,
            #ff2fbd
        );

    color: #ffffff !important;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none !important;

    box-shadow:
        0 10px 30px rgba(22, 140, 255, 0.2);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.uet-btn-primary:hover {
    transform: translateY(-2px);

    color: #ffffff !important;

    box-shadow:
        0 14px 35px rgba(255, 47, 189, 0.2);
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .uet-rankings-page {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 50px;
    }


    .uet-rankings-hero {
        min-height: 250px;

        padding: 55px 25px;

        border-radius: 18px;

        margin-bottom: 35px;
    }


    .uet-section-heading h1 {
        font-size: 40px;
    }


    .uet-section-heading h2 {
        font-size: 30px;
    }


    .uet-ranking-header {
        grid-template-columns:
            65px
            1fr
            100px;

        padding: 13px 15px;
    }


    .uet-ranking-row {
        grid-template-columns:
            65px
            1fr
            100px;

        min-height: 68px;

        padding: 8px 15px;
    }


    .uet-ranking-points strong {
        font-size: 18px;
    }


    .uet-ranking-player strong {
        font-size: 14px;
    }


    .uet-ranking-tabs {
        margin-right: -15px;
        padding-right: 15px;
    }


    .uet-ranking-tab {
        min-width: 190px;
    }


    .uet-ranking-section {
        margin-bottom: 50px;
    }


    .uet-ranking-store-card {
        align-items: flex-start;

        padding: 22px;
    }


    .uet-final-cta {
        margin-top: 50px;

        padding: 50px 20px;

        border-radius: 18px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .uet-rankings-hero {
        padding: 45px 20px;
    }


    .uet-section-heading h1 {
        font-size: 34px;
    }


    .uet-ranking-header {
        grid-template-columns:
            50px
            1fr
            85px;

        padding-left: 12px;
        padding-right: 12px;

        font-size: 8px;
    }


    .uet-ranking-row {
        grid-template-columns:
            50px
            1fr
            85px;

        padding-left: 12px;
        padding-right: 12px;
    }


    .uet-ranking-points {
        gap: 4px;
    }


    .uet-ranking-points strong {
        font-size: 16px;
    }


    .uet-ranking-points span {
        font-size: 8px;
    }


    .uet-position-number {
        width: 32px;
        height: 32px;

        font-size: 12px;
    }


    .uet-medal {
        font-size: 22px;
    }


    .uet-ranking-store-card {
        flex-direction: column;
    }

}
/* Weekly store-points selector. */
.uet-store-week-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.uet-store-week-filter label { display: flex; flex-direction: column; gap: 8px; }
.uet-store-week-filter input { color-scheme: dark; color: #fff; background: #151920; border: 1px solid #596273; border-radius: 8px; padding: 10px 12px; font: inherit; }
#store-points { scroll-margin-top: 100px; }
#store-points h3 { margin-top: 32px; }
.uet-ranking-search{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:20px 0;color:#e8f1ff}
.uet-ranking-search label{flex:1;min-width:180px;font-size:13px;font-weight:600}
.uet-ranking-search input[type=search]{display:block;width:100%;box-sizing:border-box;margin-top:8px;padding:12px 14px;min-height:46px;border:1px solid #667a99;border-radius:8px;background:#101c30;color:#fff;font:inherit}
.uet-ranking-search button,.uet-ranking-pagination a{display:inline-block;border:1px solid #75ddff;border-radius:8px;padding:12px 18px;background:#173b50;color:#c2f4ff;font:inherit;font-weight:700;text-decoration:none;min-height:46px;cursor:pointer}
.uet-ranking-search a{padding:12px;color:#9feaff}.uet-ranking-search-summary{font-size:12px;color:#b6c9e0;margin:0 0 18px}
.uet-ranking-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:18px;margin:22px 0;color:#d4e7ff;font-size:13px}
.uet-ranking-search input:focus-visible,.uet-ranking-search button:focus-visible,.uet-ranking-pagination a:focus-visible{outline:2px solid #d2a4ff;outline-offset:3px}
#store-points,#tournament-all-time{scroll-margin-top:110px}
@media(max-width:600px){.uet-ranking-search label{flex-basis:100%}.uet-ranking-search{padding:16px 0}.uet-ranking-pagination{gap:10px}.uet-ranking-pagination a{padding:12px}}
