/* =====================================================
   ATHLETES PAGE
   ===================================================== */


/* =====================================================
   HERO
   ===================================================== */

.athletes-hero {

    min-height: 75vh;

    display: flex;

    align-items: flex-end;

    padding: 100px 7%;

    background:
        linear-gradient(
            90deg,
            rgba(5,7,8,0.96),
            rgba(5,7,8,0.45)
        ),
        url("../images/ugo21.png")
        center / cover no-repeat;
}


.athletes-hero-content {

    max-width: 900px;
}


.athletes-hero h1 {

    margin: 0;

    font-size: clamp(55px, 8vw, 105px);

    line-height: 0.9;

    letter-spacing: -5px;
}


.athletes-hero h1 span {

    display: block;

    color: rgba(255,255,255,0.35);
}


.athletes-hero-content > p:last-child {

    max-width: 600px;

    margin-top: 30px;

    color: rgba(255,255,255,0.55);

    line-height: 1.8;
}


/* =====================================================
   INTRO
   ===================================================== */

.athletes-intro {

    padding: 140px 0;

    background: #090b0d;
}


.athletes-intro-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;
}


.athletes-intro h2 span {

    display: block;

    color: rgba(255,255,255,0.35);
}


.athletes-intro-grid > div:last-child {

    padding-top: 20px;
}


.athletes-intro-grid > div:last-child p {

    margin-bottom: 25px;

    color: rgba(255,255,255,0.5);

    line-height: 1.9;
}


/* =====================================================
   DIRECTORY
   ===================================================== */

.athlete-directory {

    padding: 120px 0;

    background: #0d1012;
}


/* =====================================================
   SEARCH / FILTER
   ===================================================== */

.athlete-tools {

    display: flex;

    gap: 15px;

    margin-bottom: 50px;
}


.athlete-search {

    flex: 1;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 18px;

    border: 1px solid rgba(255,255,255,0.1);

    background: #090b0d;
}


.athlete-search i {

    color: rgba(255,255,255,0.3);

    font-size: 12px;
}


.athlete-search input {

    width: 100%;

    padding: 16px 0;

    border: none;

    outline: none;

    background: transparent;

    color: #ffffff;

    font-size: 12px;
}


.athlete-search input::placeholder {

    color: rgba(255,255,255,0.25);
}


#discipline-filter {

    min-width: 200px;

    padding: 0 18px;

    border: 1px solid rgba(255,255,255,0.1);

    outline: none;

    background: #090b0d;

    color: rgba(255,255,255,0.6);

    font-size: 10px;

    text-transform: uppercase;

    cursor: pointer;
}


/* =====================================================
   ATHLETE GRID
   ===================================================== */

.athlete-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}


.athlete-card {

    background: #090b0d;

    border: 1px solid rgba(255,255,255,0.07);

    overflow: hidden;

    transition: 0.3s ease;
}


.athlete-card:hover {

    transform: translateY(-5px);

    border-color: rgba(255,255,255,0.15);
}


/* =====================================================
   ATHLETE IMAGE
   ===================================================== */

.athlete-photo {

    position: relative;

    height: 350px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            rgba(255,255,255,0.03),
            rgba(0,0,0,0.5)
        );
}


.athlete-photo > span {

    color: rgba(255,255,255,0.15);

    font-size: 9px;

    letter-spacing: 2px;
}


.athlete-rank {

    position: absolute;

    top: 15px;

    right: 15px;

    padding: 8px 10px;

    background: #ffffff;

    color: #080a0c;

    font-size: 9px;

    font-weight: 700;
}


/* =====================================================
   ATHLETE CONTENT
   ===================================================== */

.athlete-content {

    padding: 25px;
}


.athlete-discipline {

    margin-bottom: 8px;

    color: rgba(255,255,255,0.3);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


.athlete-content h3 {

    margin-bottom: 7px;

    font-size: 20px;
}


.athlete-academy {

    margin-bottom: 20px;

    color: rgba(255,255,255,0.3);

    font-size: 10px;
}


/* =====================================================
   PROFILE BUTTON
   ===================================================== */

.athlete-profile-button {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 0;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;
}


.athlete-profile-button i {

    transition: transform 0.2s ease;
}


.athlete-profile-button:hover i {

    transform: translateX(5px);
}


/* =====================================================
   PROFILE DETAILS

   Hidden until the user clicks View Profile.
   ===================================================== */

.athlete-profile {

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition:
        max-height 0.4s ease,
        opacity 0.3s ease;
}


.athlete-profile.open {

    max-height: 300px;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,0.08);

    opacity: 1;
}


/* =====================================================
   PROFILE STATISTICS
   ===================================================== */

.profile-stats {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    margin-bottom: 20px;
}


.profile-stats div {

    padding-right: 10px;

    border-right: 1px solid rgba(255,255,255,0.08);
}


.profile-stats div:last-child {

    border: none;
}


.profile-stats span {

    display: block;

    margin-bottom: 5px;

    color: rgba(255,255,255,0.25);

    font-size: 7px;

    letter-spacing: 1px;
}


.profile-stats strong {

    font-size: 20px;
}


.athlete-profile > p {

    color: rgba(255,255,255,0.4);

    font-size: 10px;

    line-height: 1.7;
}


/* =====================================================
   NO RESULTS
   ===================================================== */

.no-athletes {

    display: none;

    padding: 60px 0;

    text-align: center;

    color: rgba(255,255,255,0.3);

    font-size: 12px;
}


/* =====================================================
   CTA
   ===================================================== */

.athletes-cta {

    padding: 130px 0;

    background: #ffffff;

    color: #080a0c;

    text-align: center;
}


.athletes-cta-content {

    max-width: 700px;

    margin: auto;
}


.athletes-cta .section-label {

    color: rgba(0,0,0,0.4);
}


.athletes-cta h2 {

    color: #080a0c;
}


.athletes-cta h2 span {

    color: rgba(0,0,0,0.3);
}


.athletes-cta-content > p:not(.section-label) {

    color: rgba(0,0,0,0.5);

    line-height: 1.8;
}


.athletes-cta .btn {

    display: inline-block;

    margin-top: 25px;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1100px) {

    .athlete-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}


@media (max-width: 700px) {

    .athletes-hero {

        min-height: 650px;

        padding: 70px 5%;

    }


    .athletes-hero h1 {

        font-size: 55px;

        letter-spacing: -3px;

    }


    .athletes-intro,
    .athlete-directory {

        padding: 90px 0;

    }


    .athletes-intro-grid {

        grid-template-columns: 1fr;

        gap: 50px;

    }


    .athlete-tools {

        flex-direction: column;

    }


    #discipline-filter {

        min-height: 50px;

    }


    .athlete-grid {

        grid-template-columns: 1fr;

    }


    .athlete-photo {

        height: 320px;

    }


    .athletes-cta {

        padding: 90px 20px;

    }

}