.c-tournaments-filter
{
    display: block;
    margin-bottom: 1rem;
}
.c-tournaments-filter-minimized-container
{
    background: #ECECEC;
    padding-top: 1rem;
    position: relative;
}
.c-tournaments-filter-minimized-title
{
    color: $color-golden;
    font-family: lucien-regular, Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    text-align: center;
}
.c-tournaments-filter-minimized-content
{
    max-height: 0;
    overflow: hidden;
    margin-top: 2rem;

    position: relative;
    transition: max-height 0.3s ease-in-out;
}
.c-tournaments-filter-minimized-content.is-expanded
{
    max-height: 999px;
}
.c-tournaments-filter-minimized-submit
{
    appearance: none;
    background: $color-golden;
    border: none;
    display: block;
    padding: 1.4rem;
    width: 100%;

    color: #FFF;
}

.c-tournaments-filter-minimized-button
{
    appearance: none;
    background: #000000;
    border: 3px solid #FFF;
    border-radius: 50%;
    box-sizing: content-box;
    height: 40px;
    margin: 0;
    padding: 0;
    width: 40px;

    position: absolute;
        left: 50%;
        bottom: 0;
    transform: translateX(-50%) translateY(50%);
    transition: transform 0.3s ease-in-out 0.5s;
}
.c-tournaments-filter-minimized-button.is-expanded
{
    transform: translateX(200%) translateY(50%) rotate(180deg);
}
.c-tournaments-filter-minimized-button-icon
{
    display: block;
    height: 50%;
    width: 50%;

    position: absolute;
        left: 50%;
        top: 50%;
    transform: translateX(-50%) translateY(-50%);

    svg
    {
        display: block;
        height: 100%;
        width: 100%;

        fill: #FFF;
        stroke: #FFF;
        stroke-width: 15px;
    }
}

.c-tournaments-filter-minimized-section
{
    margin-top: 1rem;
}
.c-tournaments-filter-minimized-section-title
{
    display: flex;
        align-items: center;
        justify-content: space-between;

    &::before, &::after
    {
        background: #7C7C7C;
        content: "";
        display: block;
        height: 1px;
        flex: 1 1;
    }
}
.c-tournaments-filter-minimized-section-title-text
{
    margin: 0 0.5rem;

    color: #7C7C7C;
    font-family: lucien-bold, Arial, Helvetica, sans-serif;
}
.c-tournaments-filter-minimized-section-content
{
    padding: 1rem;
}

.c-tournaments-filter-grid
{
    display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 1rem;
        grid-auto-rows: 1fr;
}
.c-tournaments-filter-grid-item
{
    display: flex;
        align-items: center;
}

.c-tournaments-filter-checkbox
{
    display: block;
    height: 100%;
    margin: 0;
    width: 100%;
}
.c-tournaments-filter-checkbox-input
{
    display: none;
}
.c-tournaments-filter-checkbox-input:checked + .c-tournaments-filter-checkbox-ui
{
    background-color: $color-golden;
    border-color: $color-golden;

    .c-tournaments-filter-checkbox-ui-label
    {
        color: #FFF;
    }
}
.c-tournaments-filter-checkbox-ui
{
    border: 1px solid #000;
    display: flex;
        align-items: center;
    height: 100%;
    padding: 1.4rem 0.5rem;
    width: 100%;

    transition: border-color 0.3s ease-in-out,
                background-color 0.3s ease-in-out;
}
.c-tournaments-filter-checkbox-ui-label
{
    display: block;
    width: 100%;

    color: #000;
    font-size: 0.9rem;
    font-weight: normal;
    text-align: center;

    transition: color 0.3s ease-in-out;

    strong
    {
        font-family: lucien-bold, Arial, Helvetica, sans-serif;
    }
}

.c-tournaments-filter-date
{
    width: 100%;
}
.c-tournaments-filter-date.is-selected
{
    .c-tournaments-filter-date-button-ui
    {
        background-color: $color-golden;
    }
    .c-tournaments-filter-date-button-ui-icon
    {
        color: #FFF;
    }
    .c-tournaments-filter-date-button-ui-label
    {
        margin-left: 0.5rem;
        text-align: left;
    }
    .c-tournaments-filter-date-button-ui-label-day
    {
        color: #FFF;
    }
    .c-tournaments-filter-date-button-ui-label-date
    {
        color: #FFF;
    }
}
.c-tournaments-filter-date-label
{
    width: 100%;

    font-family: lucien-book, Arial, Helvetica, sans-serif;
    text-align: center;
}
.c-tournaments-filter-date-button
{
    display: block;
    width: 100%;
}
.c-tournaments-filter-date-button-input
{
    display: block;
    height: 0 !important;
    width: 0 !important;
    opacity: 0;
}
.c-tournaments-filter-date-button-ui
{
    background: #FFF;
    display: flex;
        align-items: center;
        justify-content: center;
    height: 4rem;
    margin-top: 0.2rem;
    padding: 0 1rem;
    width: 100%;

    transition: background-color 0.3s ease-in-out;
}
.c-tournaments-filter-date-button-ui-icon
{
    display: block;
    height: 1.5rem;
    width: 1.5rem;

    color: #7B7B7B;

    transition: color 0.3s ease-in-out;

    svg
    {
        display: block;
        height: 100%;
        width: 100%;
    }
}
.c-tournaments-filter-date-button-ui-label
{
    flex: 1 1;
    line-height: 1;

    text-align: center;
}
.c-tournaments-filter-date-button-ui-label-day
{
    color: $color-golden;
    font-family: lucien-bold, Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
}
.c-tournaments-filter-date-button-ui-label-date
{
    font-size: 0.7rem;
}
.c-tournaments-filter-date-picker
{
    display: none;
}

.c-tournaments-filter-extended
{
    display: none;
}

@include tablet-portrait-and-up
{
    $tournaments-filter-nav-margin: 2rem;
    $tournaments-filter-nav-marker-hidden-pos: $tournaments-filter-nav-margin + 1.4rem;
    $tournaments-filter-nav-marker-visible-pos: $tournaments-filter-nav-margin + 0.1rem;

    .c-tournaments-filter-grid
    {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .c-tournaments-filter-grid--buy-in
    {
        grid-template-columns: 1fr 1fr;
        margin: 0 auto;
        width: 55%;
    }
    .c-tournaments-filter-grid--dates
    {
        margin: 0 auto;
        width: 80%;
    }

    .c-tournaments-filter-minimized
    {
        display: none;
    }

    .c-tournaments-filter-extended
    {
        display: block;
    }
    .c-tournaments-filter-extended-nav
    {
        border-left: 1px solid #ECECEC;
        display: flex;
            align-items: center;
            justify-content: center;
        margin-bottom: $tournaments-filter-nav-margin;
        padding: 0 1rem;

        line-height: 1;
    }
    .c-tournaments-filter-extended-nav-item
    {
        padding: 0.6rem 1.4rem;
    }
    .c-tournaments-filter-extended-nav-item--label
    {
        font-family: lucien-bold, Arial, Helvetica, sans-serif;
    }
    .c-tournaments-filter-extended-nav-button
    {
        appearance: none;
        background: transparent;
        border: none;
        border-left: 1px solid #ECECEC;
        outline: none;

        font-family: lucien-book, Arial, Helvetica, sans-serif;

        position: relative;

        &::after
        {
            @include triangle(3rem, #ECECEC, up);

            content: "";
            opacity: 0;

            position: absolute;
                bottom: 0;
                left: 50%;
            transform: translateX(-50%) translateY($tournaments-filter-nav-marker-hidden-pos);
            transition: transform 0.3s ease-in-out,
                        opacity 0.3s ease-in-out;
        }
    }
    .c-tournaments-filter-extended-nav-button.is-active
    {
        color: $color-golden;

        &::after
        {
            opacity: 1;
            transform: translateX(-50%) translateY($tournaments-filter-nav-marker-visible-pos);
        }
    }
    .c-tournaments-filter-extended-menu
    {
        background: #ECECEC;
        max-height: 0;
        overflow: hidden;

        position: relative;
            z-index: 2;
        transition: max-height 0.3s ease-in-out,
                    padding 0.3s ease-in-out;
    }
    .c-tournaments-filter-extended-menu.is-expanded
    {
        overflow: visible;
        padding: 2rem;
        max-height: 999px;
    }
    .c-tournaments-filter-extended-choices
    {
        display: flex;
            flex-wrap: wrap;
    }
    .c-tournaments-filter-extended-choice
    {
        border: 1px solid #A0A0A0;
        display: flex;
            align-items: center;
            justify-content: space-around;
        margin: 1rem 1rem 0 0;
        padding: 0.4rem 1rem;
    }
    .c-tournaments-filter-extended-choice-label
    {
        margin-right: 0.5rem;

        color: #A0A0A0;
        font-family: lucien-book, Arial, Helvetica, sans-serif;
    }
    .c-tournaments-filter-extended-choice-value
    {
        margin-right: 0.5rem;

        font-family: lucien-bold, Arial, Helvetica, sans-serif;
    }
    .c-tournaments-filter-extended-choice-button
    {
        appearance: none;
        background: transparent;
        border: none;

        color: #A0A0A0;
        font-size: 2rem;
    }
}

@include desktop
{
    .c-tournaments-filter-grid
    {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        margin: 0 auto;
        width: 90%;
    }

    .c-tournaments-filter-checkbox
    {
        cursor: pointer;
    }
    .c-tournaments-filter-checkbox-ui:hover
    {
        background-color: #FFF;
        border-color: $color-golden;

        .c-tournaments-filter-checkbox-ui-label
        {
            color: $color-golden;
        }
    }
    .c-tournaments-filter-checkbox-ui-label
    {
        font-size: 1rem;
    }

    .c-tournaments-filter-date
    {
        position: relative;
    }
    .c-tournaments-filter-date.is-selected
    {
        .c-tournaments-filter-date-button-ui-label
        {
            flex-grow: 0;
            flex-shrink: 0;

            line-height: 1;
            white-space: nowrap;

            br
            {
                display: none;
            }
        }
    }
    .c-tournaments-filter-date-button
    {
        margin: 0;
    }
    .c-tournaments-filter-date-button-ui
    {
        cursor: pointer;
        margin: 0;
    }
    .c-tournaments-filter-date-button-ui:hover
    {
        background-color: $color-golden;

        .c-tournaments-filter-date-button-ui-icon
        {
            color: #FFF;
        }
        .c-tournaments-filter-date-button-ui-label-day
        {
            color: #FFF;
        }
    }
    .c-tournaments-filter-date-button-ui-icon
    {
        height: 34px;
        width: 34px;
    }
    .c-tournaments-filter-date-button-ui-label-day
    {
        display: inline-block;
        margin-top: 0.1ch;

        font-size: 1rem;
        vertical-align: middle;
    }
    .c-tournaments-filter-date-button-ui-label-date
    {
        margin-left: 0.3ch;

        font-size: 1rem;
        font-family: lucien-book, Arial, Helvetica, sans-serif;
        vertical-align: middle;
    }
    .c-tournaments-filter-date-picker
    {
        display: block;
        width: 100%;

        position: absolute;
            left: 0;
            top: 100%;
    }

    .c-tournaments-filter-extended-nav-item
    {
        padding: 0.6rem 5rem;
    }
    .c-tournaments-filter-extended-choice-button
    {
        transition: color 0.3s ease-in-out,
                    transform 0.3s ease-in-out;
    }
    .c-tournaments-filter-extended-choice-button:hover
    {
        color: $color-golden;
        transform: rotate(90deg);
    }
}
