* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #07090f;
    --card: #10141e;
    --card2: #151a27;
    --border: rgba(255,255,255,0.08);

    --blue: #31a8ff;
    --blue2: #087bd0;

    --text: #ffffff;
    --muted: #8992a5;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(35, 145, 255, 0.20),
            transparent 40%
        ),
        #07090f;

    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* BACKGROUND */

.background {
    position: fixed;

    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.02) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.02) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent
    );
}


/* HEADER */

.header {
    height: 76px;

    padding: 0 7%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--border);

    background: rgba(5,7,12,0.85);

    backdrop-filter: blur(15px);

    position: relative;

    z-index: 2;
}

.logo {
    display: flex;

    flex-direction: column;
}

.logo-main {
    font-size: 22px;

    font-weight: 900;

    letter-spacing: 2px;
}

.logo-sub {
    font-size: 9px;

    color: var(--blue);

    letter-spacing: 3px;

    margin-top: 2px;
}

.header-status {
    font-size: 11px;

    color: #aeb7c8;

    display: flex;

    align-items: center;

    gap: 8px;
}

.status-dot {
    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #42e878;

    box-shadow: 0 0 10px #42e878;
}


/* MAIN */

main {
    width: min(1100px, 92%);

    margin: auto;

    position: relative;

    z-index: 1;
}


/* SEARCH */

.search-section {
    padding: 90px 0 55px;

    text-align: center;
}

.search-title h1 {
    font-size: clamp(32px, 5vw, 58px);

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: -2px;

    margin-bottom: 12px;
}

.search-title p {
    color: var(--muted);

    font-size: 15px;

    margin-bottom: 35px;
}


.search-box {
    width: min(650px, 100%);

    margin: auto;

    display: flex;

    padding: 6px;

    background: #10141e;

    border: 1px solid var(--border);

    border-radius: 8px;

    box-shadow:
        0 20px 70px rgba(0,0,0,0.35);
}

.search-box input {
    flex: 1;

    min-width: 0;

    background: transparent;

    border: 0;

    outline: 0;

    color: white;

    font-size: 15px;

    padding: 16px;
}

.search-box input::placeholder {
    color: #667085;
}

.search-box button {
    border: 0;

    background: linear-gradient(
        135deg,
        var(--blue),
        var(--blue2)
    );

    color: white;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1px;

    padding: 0 27px;

    border-radius: 6px;

    cursor: pointer;

    transition: 0.2s;
}

.search-box button:hover {
    transform: translateY(-1px);

    filter: brightness(1.15);
}

.search-box button:disabled {
    opacity: 0.6;

    cursor: wait;
}


/* ERROR */

.error {
    width: min(650px, 100%);

    margin: 15px auto 0;

    padding: 12px;

    border-radius: 6px;

    color: #ff7c7c;

    background: rgba(255,70,70,0.08);

    border: 1px solid rgba(255,70,70,0.15);

    font-size: 13px;

    display: none;
}


/* LOADING */

.loading {
    text-align: center;

    padding: 40px;

    color: var(--muted);

    font-size: 13px;
}

.spinner {
    width: 38px;

    height: 38px;

    border: 3px solid rgba(255,255,255,0.1);

    border-top-color: var(--blue);

    border-radius: 50%;

    margin: 0 auto 15px;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


/* PROFILE */

.profile {
    padding-bottom: 80px;
}


/* PROFILE CARD */

.profile-card {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            rgba(30,40,60,0.9),
            rgba(12,16,25,0.95)
        );

    border: 1px solid var(--border);

    border-radius: 12px;

    margin-bottom: 35px;
}

.profile-left {
    display: flex;

    align-items: center;

    gap: 20px;
}

.avatar-container {
    width: 86px;

    height: 86px;

    border-radius: 10px;

    overflow: hidden;

    background: #171c28;

    border: 1px solid rgba(255,255,255,0.1);
}

.avatar-container img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.player-info h2 {
    font-size: 25px;

    margin-bottom: 8px;

    word-break: break-word;
}

.country {
    color: #929bad;

    font-size: 13px;

    display: flex;

    gap: 7px;

    align-items: center;
}

#flag {
    font-size: 20px;
}

.tracker-link {
    text-align: right;
}

.tracker-link span {
    display: block;

    color: #697386;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 5px;
}

.tracker-link a {
    color: var(--blue);

    font-size: 12px;

    text-decoration: none;
}

.tracker-link a:hover {
    text-decoration: underline;
}


/* SECTION TITLE */

.section-title {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 13px;

    font-weight: 900;

    letter-spacing: 2px;

    margin-bottom: 15px;

    color: #bfc7d6;
}

.section-title span {
    width: 4px;

    height: 16px;

    background: var(--blue);

    border-radius: 2px;
}

.placements-title {
    margin-top: 35px;
}


/* STATS */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}

.stat-card {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 22px;

    transition: 0.2s;
}

.stat-card:hover {
    border-color: rgba(49,168,255,0.3);

    transform: translateY(-2px);
}

.stat-label {
    color: #6f788b;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 10px;
}

.stat-value {
    font-size: 27px;

    font-weight: 800;

    color: white;
}


/* PLACEMENTS */

.placements {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}

.placement {
    padding: 20px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 8px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.placement-number {
    font-size: 11px;

    color: #778094;

    font-weight: 800;

    letter-spacing: 1px;
}

.placement > div:last-child {
    font-size: 22px;

    font-weight: 900;
}


/* FOOTER */

footer {
    text-align: center;

    padding: 30px;

    border-top: 1px solid var(--border);

    color: #626b7b;

    font-size: 12px;

    position: relative;

    z-index: 1;
}

.footer-small {
    margin-top: 5px;

    font-size: 10px;

    color: #414958;
}


/* HELPERS */

.hidden {
    display: none !important;
}


/* MOBILE */

@media (max-width: 700px) {

    .header {
        padding: 0 5%;
    }

    .search-section {
        padding-top: 60px;
    }

    .search-box {
        flex-direction: column;

        padding: 7px;
    }

    .search-box input {
        padding: 15px;
    }

    .search-box button {
        height: 48px;
    }

    .profile-card {
        flex-direction: column;

        align-items: flex-start;
    }

    .tracker-link {
        text-align: left;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .placements {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 430px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-left {
        align-items: flex-start;
    }

    .avatar-container {
        width: 70px;

        height: 70px;
    }

    .player-info h2 {
        font-size: 20px;
    }

}