/* =========================================================
   THULTHUL — EXERCISE LIBRARY
========================================================= */

.tt-exercise-page {
    background: #070708;
    color: #f5f5f7;
}

.tt-exercise-page .tt-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}


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

.tt-exercise-hero {
    padding: 85px 0 72px;

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

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(79,70,255,.15),
            transparent 35%
        ),
        #070708;
}

.tt-exercise-hero-content {
    max-width: 800px;
}

.tt-exercise-eyebrow {
    display: flex;

    align-items: center;

    gap: 9px;

    color: #8178ff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.6px;
}

.tt-exercise-eyebrow span {
    width: 24px;
    height: 1px;

    background: #8178ff;
}

.tt-exercise-hero h1 {
    margin: 18px 0 20px;

    color: #ffffff;

    font-size: clamp(45px, 6vw, 74px);

    line-height: .98;

    letter-spacing: -3px;
}

.tt-exercise-hero h1 span {
    color: #8178ff;
}

.tt-exercise-hero p {
    max-width: 620px;

    margin: 0;

    color: #898991;

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   LIBRARY
========================================================= */

.tt-exercise-library {
    padding: 42px 0 90px;
}


/* =========================================================
   FILTERS
========================================================= */

.tt-exercise-filters {
    display: grid;

    grid-template-columns:
        minmax(230px, 1.7fr)
        repeat(4, minmax(135px, 1fr))
        auto;

    align-items: end;

    gap: 8px;

    padding: 14px;

    background: #111113;

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

.tt-exercise-search span,
.tt-exercise-filter span {
    display: block;

    margin-bottom: 6px;

    color: #676770;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.2px;
}

.tt-exercise-search input,
.tt-exercise-filter select {
    width: 100%;
    height: 44px;

    box-sizing: border-box;

    padding: 0 12px;

    color: #eeeeef;

    background: #070708;

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

    outline: none;

    font-family: inherit;

    font-size: 11px;
}

.tt-exercise-search input:focus,
.tt-exercise-filter select:focus {
    border-color: #5148ff;
}

.tt-exercise-search input::placeholder {
    color: #55555d;
}

.tt-exercise-filters .tt-btn {
    height: 44px;

    white-space: nowrap;
}


/* =========================================================
   RESULTS
========================================================= */

.tt-exercise-results-bar {
    display: flex;

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

    padding: 15px 2px 18px;
}

.tt-exercise-results-bar > span {
    color: #686871;

    font-size: 10px;
}

.tt-exercise-results-bar a {
    color: #9188ff;

    font-size: 10px;

    font-weight: 700;

    text-decoration: none;
}


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

.tt-exercise-grid {
    display: grid;

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

    gap: 14px;
}


/* =========================================================
   EXISTING EXERCISE CARD
========================================================= */

.tt-exercise-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    color: inherit;

    background: #111113;

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

    text-decoration: none;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.tt-exercise-card:hover {
    transform: translateY(-3px);

    background: #151518;

    border-color: rgba(79,70,255,.5);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.tt-exercise-image {
    position: relative;

    height: 210px;

    overflow: hidden;

    background: #18181b;
}

.tt-exercise-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .35s ease;
}

.tt-exercise-card:hover
.tt-exercise-image img {
    transform: scale(1.04);
}

.tt-exercise-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #66666e;

    background:
        radial-gradient(
            circle,
            rgba(79,70,255,.16),
            transparent 55%
        );

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;
}

.tt-exercise-image-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(7,7,8,.65),
            transparent 55%
        );

    pointer-events: none;
}

.tt-exercise-type {
    position: absolute;

    left: 12px;
    bottom: 11px;

    padding: 6px 8px;

    color: #ffffff;

    background: rgba(7,7,8,.8);

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

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.tt-exercise-content {
    padding: 17px 18px 16px;
}

.tt-exercise-heading {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}

.tt-exercise-heading h3 {
    margin: 0;

    color: #ffffff;

    font-size: 18px;

    line-height: 1.15;

    letter-spacing: -.3px;
}

.tt-exercise-arrow {
    flex-shrink: 0;

    color: #8178ff;

    font-size: 14px;
}

.tt-exercise-content p {
    margin: 8px 0 14px;

    color: #777781;

    font-size: 10px;

    line-height: 1.55;
}


/* =========================================================
   CARD META
========================================================= */

.tt-exercise-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;
}

.tt-exercise-meta span {
    color: #8178ff;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .9px;

    text-transform: uppercase;
}

.tt-exercise-meta span + span {
    padding-left: 8px;

    color: #686870;

    border-left: 1px solid #34343a;
}


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

.tt-exercise-empty {
    grid-column: 1 / -1;

    padding: 75px 30px;

    text-align: center;

    background: #111113;

    border: 1px dashed rgba(255,255,255,.1);
}

.tt-exercise-empty > span {
    color: #8178ff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.tt-exercise-empty h3 {
    margin: 9px 0 6px;

    color: #ffffff;

    font-size: 21px;
}

.tt-exercise-empty p {
    margin: 0;

    color: #6e6e77;

    font-size: 11px;
}


/* =========================================================
   PAGINATION
========================================================= */

.tt-exercise-pagination {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-top: 32px;
}

.tt-exercise-pagination a {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    color: #ffffff;

    background: #151518;

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

    text-decoration: none;
}

.tt-exercise-pagination span {
    color: #777781;

    font-size: 10px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .tt-exercise-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .tt-exercise-search {
        grid-column: 1 / -1;
    }

    .tt-exercise-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


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

@media (max-width: 650px) {

    .tt-exercise-page .tt-container {
        width: min(100% - 28px, 600px);
    }

    .tt-exercise-hero {
        padding: 60px 0 55px;
    }

    .tt-exercise-hero h1 {
        font-size: 45px;

        letter-spacing: -2px;
    }

    .tt-exercise-filters {
        grid-template-columns: 1fr;

        padding: 11px;
    }

    .tt-exercise-search {
        grid-column: auto;
    }

    .tt-exercise-grid {
        grid-template-columns: 1fr;
    }

    .tt-exercise-image {
        height: 220px;
    }
}


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

@media (max-width: 420px) {

    .tt-exercise-page .tt-container {
        width: calc(100% - 24px);
    }

    .tt-exercise-image {
        height: 190px;
    }

    .tt-exercise-content {
        padding: 15px;
    }
}