@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

:root {
    --primary-color: #00cc99;
    --fluxer-color: #4641d9;
    --danger-color: #ff0038;
    --warning-color: #fff000;
    --text-color: #ffffff;
    --secondary-text-color: #cfcfcf;
    --bg-color: #1a1a1a;
    --nav-bg-color: #1d1d1d;
    --listing-bg-color: #2a2a2a;

    /* Listing Colors*/
    --listing-status-public: #00cc99;
    --listing-status-review: #f39c12;
    --listing-status-private: #aaa;
    --listing-status-declined: #e30022;
    --listing-status-deleted: #e30022;
}

body {
    font-family: 'Bricolage Grotesque';
    background-color: var(--bg-color);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

::-webkit-scrollbar-track {
    background-color: var(--nav-bg-color);
}

::-webkit-scrollbar-thumb {
    background-color: #555555;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
    filter: brightness(0.9);
}

/*! FLUXER STATUS ==================================================*/

#fluxerStatus {
    background-color: var(--fluxer-color);
    color: white;
    font-weight: bold;
    z-index: 1000;

    div {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;

        img {
            width: 24px;
            height: 24px;
        }

        p {
            margin: 10px;
        }
    }
}

#fluxerStatusDot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: relative;
}

#fluxerStatusDot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    animation: statusPing 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    z-index: 1;
}

@keyframes statusPing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    75%,
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.status-Online {
    background-color: #32cd32;
}

.status-Issues {
    background-color: #ff7e00;
}

.status-Down {
    background-color: #e30022;
}

/*! NAVBAR ==================================================*/

nav {
    width: 70%;
    height: 50px;
    margin: 0 auto;
    margin-top: 1.5rem;
    padding: 10px 30px 10px 30px;
    background-color: var(--nav-bg-color);
    border-radius: 1rem;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0% {
        box-shadow: 0px 2px 10px rgb(from var(--primary-color) r g b / 0.2);
    }

    50% {
        box-shadow: 0px 2px 20px rgb(from var(--primary-color) r g b / 0.4);
    }

    100% {
        box-shadow: 0px 2px 10px rgb(from var(--primary-color) r g b / 0.2);
    }
}

.navContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.navLeft {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;

    img {
        width: 50px;
        height: 50px;
    }

    p {
        /*? Fluxee Text */
        font-size: 2.2rem;
        font-weight: 600;
        color: var(--primary-color);
    }
}

.navRight {
    display: flex;
    align-items: center;
    gap: 10px;

    a {
        text-decoration: none;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-color);
        background-color: var(--primary-color);
        padding: 12px 22px 12px 22px;
        border-radius: 10px;
        transition: filter 0.1s ease;
    }

    a:hover {
        filter: brightness(0.9);
    }
}

.navProfile {
    display: flex !important;
    align-items: center;
    gap: 10px;
    height: 42px;
    box-sizing: border-box;
}

.navModBtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    background-color: var(--primary-color) !important;
    border-radius: 8px !important;
    box-sizing: border-box;
}

.navModBtn img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.navProfileImage {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.span-mobile-hide {
    display: inherit;
}

@media (max-width: 900px) {
    .navUsername {
        display: none;
    }

    .navProfile {
        padding: 8px !important;
        aspect-ratio: 1;
        justify-content: center;
    }

    .navLeft p {
        background-color: transparent !important;
    }

    .footerContainer {
        width: 95%;
        padding: 10px 15px;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .footerTop p {
        font-size: 1.6rem;
    }

    .footerTop {
        margin-bottom: 30px;
        justify-content: center;
        width: 100%;
    }

    .footerTable {
        table-layout: auto;
    }

    .footerTable th {
        font-size: 1rem;
        padding: 5px;
    }

    .footerTable td {
        font-size: 0.85rem;
        padding: 5px;
        word-break: break-word;
    }

    .footerBottom {
        margin-top: 30px;
        font-size: 0.85rem;
    }
}

/*! FOOTER ==================================================*/

footer {
    width: 100%;
    margin-top: auto;
    background-color: var(--nav-bg-color);
}

.footerContainer {
    width: 70%;
    margin: 0 auto;
    padding: 10px 30px 10px 30px;
}

.footerTop {
    margin-bottom: 50px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;

    img {
        width: 50px;
        height: 50px;
    }

    p {
        /*? Fluxee Text */
        font-size: 2.2rem;
        font-weight: 600;
        color: var(--primary-color);
    }
}

.footerTable {
    width: 100%;
    table-layout: fixed;
    text-align: left;
    color: var(--text-color);

    th {
        font-weight: 600;
        font-size: 1.2rem;
        padding: 10px 0px 10px 0px;
    }

    td {
        font-size: 1rem;
        font-weight: 500;
        padding: 5px 0px 5px 0px;

        a {
            text-decoration: none;
            color: var(--primary-color);
        }
    }
}

.footerBottom {
    margin-top: 50px;
    text-align: center;
    color: var(--text-color);
    font-size: 1rem;
}

.lang-bubble {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    vertical-align: middle;
    display: inline-block;
}