/* =====================================================
   TG HUNTERS ESPORTS — PREMIUM LIVE POINTS
   points.css
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #070914;
    --bg2: #0d1020;
    --card: rgba(18, 22, 42, 0.88);
    --border: rgba(120, 130, 255, 0.22);
    --text: #f5f7ff;
    --muted: #9ca5c7;
    --primary: #7c5cff;
    --secondary: #00d9ff;
    --gold: #ffd43b;
}

body {
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
    color: var(--text);

    background:
        radial-gradient(circle at 10% 10%, rgba(124, 92, 255, .18), transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(0, 217, 255, .12), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(124, 92, 255, .10), transparent 35%),
        var(--bg);

    overflow-x: hidden;
}


/* =====================================================
   BACKGROUND GRID
===================================================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;

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

    background-size: 45px 45px;

    pointer-events: none;
    z-index: -1;
}


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

.header {
    width: 100%;
    min-height: 75px;

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

    padding: 14px 7%;

    background: rgba(7, 9, 20, .88);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 100;
}

.header h2 {
    font-family: "Orbitron", sans-serif;

    font-size: 20px;
    letter-spacing: 1px;

    background: linear-gradient(
        90deg,
        #ffffff,
        #9f8cff,
        #00d9ff
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow: 0 0 20px rgba(124, 92, 255, .25);
}

.header a {
    text-decoration: none;

    padding: 10px 20px;

    color: #fff;

    font-weight: 600;

    border: 1px solid rgba(124, 92, 255, .5);
    border-radius: 10px;

    background: rgba(124, 92, 255, .12);

    transition: .3s ease;
}

.header a:hover {
    transform: translateY(-2px);

    background: linear-gradient(
        135deg,
        var(--primary),
        #5b8cff
    );

    border-color: transparent;

    box-shadow:
        0 8px 25px rgba(124, 92, 255, .35);
}


/* =====================================================
   PAGE
===================================================== */

.points-page {
    width: min(1250px, 92%);
    margin: 55px auto 80px;
}


/* =====================================================
   TITLE
===================================================== */

.points-page > h1 {
    text-align: center;

    font-family: "Orbitron", sans-serif;

    font-size: clamp(28px, 5vw, 48px);

    letter-spacing: 2px;

    margin-bottom: 10px;

    background: linear-gradient(
        90deg,
        #ffffff,
        #a68cff,
        #00d9ff,
        #ffffff
    );

    background-size: 250% auto;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: titleGlow 5s linear infinite;
}

@keyframes titleGlow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 250% center;
    }
}

.points-page > p {
    text-align: center;

    color: var(--muted);

    font-size: 14px;

    margin-bottom: 35px;
}


/* =====================================================
   TABLE CONTAINER
===================================================== */

.points-page {
    position: relative;
}

.points-page::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    background: var(--primary);

    filter: blur(140px);

    opacity: .12;

    top: 50px;
    left: 50%;

    transform: translateX(-50%);

    pointer-events: none;
}


/* =====================================================
   TABLE
===================================================== */

.points-table {
    width: 100%;

    border-collapse: separate;
    border-spacing: 0 8px;

    position: relative;
    z-index: 2;
}

.points-table thead th {
    padding: 17px 15px;

    background: rgba(124, 92, 255, .13);

    color: #cfd4ff;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: .8px;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.points-table thead th:first-child {
    border-left: 1px solid var(--border);
    border-radius: 13px 0 0 13px;
}

.points-table thead th:last-child {
    border-right: 1px solid var(--border);
    border-radius: 0 13px 13px 0;
}


/* =====================================================
   TABLE ROW
===================================================== */

.points-table tbody tr {
    background:
        linear-gradient(
            90deg,
            rgba(20, 24, 46, .95),
            rgba(15, 19, 37, .92)
        );

    transition: .3s ease;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, .18);
}

.points-table tbody tr:hover {
    transform: translateY(-3px);

    background:
        linear-gradient(
            90deg,
            rgba(36, 40, 75, .98),
            rgba(19, 25, 49, .98)
        );

    box-shadow:
        0 10px 30px rgba(0, 217, 255, .10);
}

.points-table td {
    padding: 17px 15px;

    border-top: 1px solid rgba(255,255,255,.045);
    border-bottom: 1px solid rgba(255,255,255,.045);

    color: #e8ebff;

    font-size: 14px;

    text-align: center;
}

.points-table td:first-child {
    border-left: 1px solid rgba(255,255,255,.045);
    border-radius: 13px 0 0 13px;

    font-family: "Orbitron", sans-serif;

    font-weight: 700;
}

.points-table td:last-child {
    border-right: 1px solid rgba(255,255,255,.045);
    border-radius: 0 13px 13px 0;

    font-family: "Orbitron", sans-serif;

    font-weight: 800;

    color: #72eaff;
}


/* =====================================================
   TEAM NAME
===================================================== */

.points-table td:nth-child(2) {
    text-align: left;

    font-weight: 700;

    color: #ffffff;

    min-width: 180px;
}


/* =====================================================
   RANK COLORS
===================================================== */

.points-table tbody tr:nth-child(1) td:first-child {
    color: var(--gold);

    text-shadow:
        0 0 12px rgba(255, 212, 59, .5);
}

.points-table tbody tr:nth-child(2) td:first-child {
    color: #d8dce8;
}

.points-table tbody tr:nth-child(3) td:first-child {
    color: #d88b55;
}


/* =====================================================
   TOTAL POINT
===================================================== */

.points-table td:last-child {
    font-size: 16px;
}


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

#fullPointsTable:empty::after {
    content: "No points data available";

    display: block;

    text-align: center;

    padding: 35px;

    color: var(--muted);
}


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

@media (max-width: 800px) {

    .header {
        padding: 13px 4%;

        min-height: 65px;
    }

    .header h2 {
        font-size: 15px;
    }

    .header a {
        padding: 8px 14px;
        font-size: 12px;
    }

    .points-page {
        width: 95%;

        margin-top: 35px;
    }

    .points-table {
        min-width: 720px;
    }

    .points-page {
        overflow-x: auto;
    }

    .points-page > h1 {
        font-size: 27px;

        white-space: nowrap;
    }

    .points-page > p {
        font-size: 12px;
    }
}


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

@media (max-width: 480px) {

    .header {
        flex-direction: column;
        gap: 10px;

        padding: 14px 4%;
    }

    .points-page {
        margin-top: 30px;
    }

    .points-page > h1 {
        font-size: 23px;
    }

    .points-table thead th,
    .points-table td {
        padding: 13px 10px;
        font-size: 12px;
    }
}


/* =====================================================
   SCROLLBAR
===================================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #080a15;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--primary),
        var(--secondary)
    );

    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9a8aff;
}


/* =====================================================
   SELECTION
===================================================== */

::selection {
    background: var(--primary);
    color: #fff;
}