/* =========================================================
   AGILITY UNITED - MEMBER PAGE
   ========================================================= */


/* =========================================================
   ROOT
   ========================================================= */

:root {

    --black: #0d0d0d;
    --dark: #151515;
    --dark-2: #1b1b1b;

    --orange: #ff5a1f;
    --orange-dark: #b8380f;

    --white: #f4efe6;
    --gray: #d6d6d6;
    --gray-dark: #8f8f8f;

    --border: rgba(255,255,255,.07);

}


/* =========================================================
   RESET
   ========================================================= */

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


html {
    scroll-behavior: smooth;
}


body {

    background: var(--black);

    color: var(--white);

    font-family: "Work Sans", sans-serif;

    min-height: 100vh;

}


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

.navbar {

    position: relative;

    width: 100%;

    height: 70px;

    padding: 0 5%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: rgba(13,13,13,.96);

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

    z-index: 1000;

}


.nav-brand {

    display: flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;

    color: var(--white);

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 1px;

}


.nav-brand strong {

    color: var(--orange);

}


.nav-logo {

    width: 40px;

    height: 40px;

    object-fit: contain;

}


.nav-menu {

    display: flex;

    align-items: center;

    gap: 28px;

}


.nav-menu a {

    position: relative;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: .3px;

    transition: .3s ease;

}


.nav-menu a:hover,
.nav-menu a.active {

    color: var(--orange);

}


.nav-menu a.active::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: -8px;

    height: 2px;

    background: var(--orange);

}


.menu-toggle {

    display: none;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 30px;

    font-weight: 700;

    cursor: pointer;

    line-height: 1;

    padding: 5px;

}


/* =========================================================
   HERO
   ========================================================= */

.member-hero {

    min-height: 360px;

    display: flex;

    align-items: center;

    padding: 80px 8%;

    background:
        radial-gradient(
            circle at 80% 40%,
            rgba(255,90,31,.14),
            transparent 35%
        );

}


.hero-content {

    max-width: 800px;

}


.hero-label {

    color: var(--orange);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 15px;

}


.hero-content h1 {

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

    font-size: clamp(55px, 8vw, 105px);

    line-height: .95;

    letter-spacing: 1px;

}


.hero-content h1 span {

    color: var(--orange);

}


.hero-description {

    margin-top: 25px;

    max-width: 600px;

    color: #bdbdbd;

    font-size: 15px;

    line-height: 1.7;

}


/* =========================================================
   MAIN SECTION
   ========================================================= */

.member-section {

    max-width: 1250px;

    margin: auto;

    padding: 90px 5% 110px;

}


.section-heading {

    margin-bottom: 45px;

}


.section-label {

    color: var(--orange);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 10px;

}


.section-heading h2 {

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

    font-size: 45px;

    letter-spacing: 1px;

}


.section-heading h2 span {

    color: var(--orange);

}


.section-heading > p:last-child {

    margin-top: 12px;

    color: var(--gray-dark);

    font-size: 14px;

}


/* =========================================================
   MEMBER TOOLS
   ========================================================= */

.member-tools {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 25px;

}


.search-box {

    position: relative;

    width: 100%;

    max-width: 430px;

}


.search-box input {

    width: 100%;

    height: 48px;

    padding:
        0 18px 0 48px;

    background: var(--dark);

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

    border-radius: 8px;

    outline: none;

    color: var(--white);

    font-family: inherit;

    font-size: 13px;

    transition: .3s ease;

}


.search-box input::placeholder {

    color: #777;

}


.search-box input:focus {

    border-color:
        rgba(255,90,31,.6);

    box-shadow:
        0 0 0 3px
        rgba(255,90,31,.08);

}


.search-icon {

    position: absolute;

    left: 18px;

    top: 50%;

    transform: translateY(-50%);

    color: var(--orange);

    font-size: 21px;

    z-index: 2;

}


/* =========================================================
   ROLE FILTER
   ========================================================= */

.role-filters {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;

}


.role-filter {

    min-width: 48px;

    height: 38px;

    padding: 0 14px;

    border:
        1px solid rgba(255,255,255,.1);

    border-radius: 6px;

    background: var(--dark);

    color: #ffffff;

    font-family: inherit;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;

    transition: .25s ease;

}


.role-filter:hover {

    border-color:
        rgba(255,90,31,.5);

    color: var(--orange);

}


.role-filter.active {

    background: var(--orange);

    border-color: var(--orange);

    color: #ffffff;

}


/* =========================================================
   MEMBER INFO
   ========================================================= */

.member-info {

    margin-bottom: 18px;

}


#memberCount {

    color: #858585;

    font-size: 12px;

    font-weight: 600;

}


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

.member-table-wrapper {

    width: 100%;

    overflow-x: auto;

    overflow-y: hidden;

    border:
        1px solid
        rgba(255,90,31,.2);

    border-radius: 10px;

    background: var(--dark);

    -webkit-overflow-scrolling: touch;

}


.member-table {

    width: 100%;

    border-collapse: collapse;

    background: var(--dark);

}


.member-table thead {

    background: var(--orange);

}


.member-table th {

    padding: 16px 20px;

    color: #ffffff;

    text-align: left;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;

    white-space: nowrap;

}


.member-table td {

    padding: 15px 20px;

    color: var(--gray);

    font-size: 14px;

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

    white-space: nowrap;

}


.member-table tbody tr {

    transition:
        background .2s ease;

}


.member-table tbody tr:hover {

    background: var(--dark-2);

}


.member-table tbody tr:last-child td {

    border-bottom: none;

}


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

.member-table th:nth-child(1),
.member-table td:nth-child(1) {

    width: 70px;

    text-align: center;

}


.member-table th:nth-child(2),
.member-table td:nth-child(2) {

    width: auto;

}


.member-table th:nth-child(3),
.member-table td:nth-child(3) {

    width: 180px;

}


.member-table th:nth-child(4),
.member-table td:nth-child(4) {

    width: 100px;

    text-align: center;

}


/* =========================================================
   MEMBER NUMBER
   ========================================================= */

.member-number {

    color: #777 !important;

    font-weight: 700;

}


/* =========================================================
   MEMBER NICKNAME
   ========================================================= */

.member-nickname {

    color: #ffffff !important;

    font-weight: 700;

}


/* =========================================================
   MEMBER ID
   ========================================================= */

.member-id {

    color: #999999 !important;

}


/* =========================================================
   MEMBER ROLE
   ========================================================= */

.member-role {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 42px;

    padding: 5px 10px;

    border-radius: 5px;

    background:
        rgba(255,90,31,.1);

    border:
        1px solid
        rgba(255,90,31,.25);

    color: var(--orange);

    font-size: 11px;

    font-weight: 800;

}


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

.empty-state {

    text-align: center;

    padding: 80px 20px;

}


.empty-icon {

    font-size: 40px;

    color: var(--orange);

    margin-bottom: 15px;

}


.empty-state h3 {

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

    font-size: 25px;

    margin-bottom: 8px;

}


.empty-state p {

    color: #777;

    font-size: 13px;

}


/* =========================================================
   LOADING
   ========================================================= */

.loading-state {

    padding: 70px 20px;

    text-align: center;

}


.loading-spinner {

    width: 35px;

    height: 35px;

    margin: auto;

    border:
        3px solid
        rgba(255,255,255,.1);

    border-top-color:
        var(--orange);

    border-radius: 50%;

    animation:
        spin .8s linear infinite;

}


.loading-state p {

    margin-top: 15px;

    color: #777;

    font-size: 13px;

}


@keyframes spin {

    to {

        transform: rotate(360deg);

    }

}


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

.footer {

    padding: 45px 5%;

    text-align: center;

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

    background: #101010;

}


.footer-logo {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-bottom: 15px;

}


.footer-logo img {

    width: 35px;

    height: 35px;

    object-fit: contain;

}


.footer-logo span {

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 1px;

}


.footer-logo strong {

    color: var(--orange);

}


.footer p {

    color: var(--orange);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 12px;

}


.footer small {

    color: #555;

    font-size: 10px;

}


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

@media (max-width: 768px) {

    .navbar {

        height: 65px;

        padding: 0 5%;

    }


    .nav-menu {

        display: none;

        position: absolute;

        top: 70px;

        right: 5%;

        width: 210px;

        padding: 15px;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        background: #151515;

        border:
            1px solid
            rgba(255,90,31,.3);

        border-radius: 12px;

        box-shadow:
            0 15px 35px
            rgba(0,0,0,.5);

    }


    .nav-menu.show {

        display: flex;

    }


    .nav-menu a {

        padding: 13px 10px;

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

        color: #ffffff !important;

        background: transparent;

        border-radius: 8px;

    }


    .nav-menu a:last-child {

        border-bottom: none;

    }


    .nav-menu a::after {

        display: none;

    }


    /* ACTIVE TAB */

    .nav-menu a.active {

        color: var(--orange) !important;

        background:
            rgba(255,90,31,.08);

    }


    /* HOVER TAB */

    .nav-menu a:hover {

        color: #ffffff !important;

        background: transparent;

    }


    /* Keep active color when hovering */

    .nav-menu a.active:hover {

        color: var(--orange) !important;

        background:
            rgba(255,90,31,.08);

    }


    .menu-toggle {

        display: block;

    }


    /* MEMBER TOOLS */

    .member-tools {

        flex-direction: column;

        align-items: stretch;

    }


    .search-box {

        max-width: none;

    }


    /* MEMBER TABLE */

    .member-table-wrapper {

        width: 100%;

        overflow-x: auto;

    }


    .member-table {

        min-width: 600px;

    }


    .member-table th {

        padding: 14px 16px;

        font-size: 10px;

    }


    .member-table td {

        padding: 14px 16px;

        font-size: 13px;

    }


    .member-table th:nth-child(1),
    .member-table td:nth-child(1) {

        width: 55px;

    }


    .member-table th:nth-child(2),
    .member-table td:nth-child(2) {

        width: 220px;

    }


    .member-table th:nth-child(3),
    .member-table td:nth-child(3) {

        width: 170px;

    }


    .member-table th:nth-child(4),
    .member-table td:nth-child(4) {

        width: 100px;

    }

}


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

@media (max-width: 420px) {

    .navbar {

        padding: 0 15px;

    }


    .nav-brand {

        gap: 8px;

    }


    .nav-logo {

        width: 36px;

        height: 36px;

    }


    .nav-brand span {

        display: inline-block;

        font-size: 10px;

        letter-spacing: .5px;

        white-space: nowrap;

    }


    .menu-toggle {

        display: block;

        font-size: 28px;

        color: #ffffff;

    }


    /* HERO */

    .member-hero {

        min-height: 300px;

        padding: 65px 6%;

    }


    .hero-content h1 {

        font-size: 55px;

    }


    .hero-description {

        font-size: 13px;

    }


    /* MAIN */

    .member-section {

        padding:
            65px 5% 80px;

    }


    .section-heading {

        margin-bottom: 35px;

    }


    .section-heading h2 {

        font-size: 36px;

    }


    .section-heading > p:last-child {

        font-size: 13px;

        line-height: 1.6;

    }


    /* ROLE FILTER */

    .role-filters {

        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 7px;

    }


    .role-filter {

        width: 100%;

        min-width: 0;

        padding: 0 8px;

    }


    /* MEMBER COUNT */

    .member-info {

        margin-bottom: 15px;

    }


    #memberCount {

        font-size: 11px;

    }


    /* TABLE */

    .member-table-wrapper {

        margin-top: 5px;

        border-radius: 8px;

    }


    .member-table {

        min-width: 550px;

    }


    .member-table th {

        padding: 12px;

        font-size: 9px;

        letter-spacing: .7px;

    }


    .member-table td {

        padding: 12px;

        font-size: 12px;

    }


    .member-table th:nth-child(1),
    .member-table td:nth-child(1) {

        width: 50px;

    }


    .member-table th:nth-child(2),
    .member-table td:nth-child(2) {

        width: 200px;

    }


    .member-table th:nth-child(3),
    .member-table td:nth-child(3) {

        width: 160px;

    }


    .member-table th:nth-child(4),
    .member-table td:nth-child(4) {

        width: 90px;

    }


    .member-role {

        min-width: 38px;

        padding: 4px 8px;

        font-size: 10px;

    }


    /* FOOTER */

    .footer {

        padding: 35px 5%;

    }

}
