/* ============================================================
   HEADER.CSS — Header layout, components, and filter buttons
   ============================================================ */


/* Header container & structure */

.header-container {
    position: sticky;
    top: 0;
    z-index: 10;
    transition: transform 180ms ease;
}

header {
    /* height: 300px; */
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: black;
    border-bottom: var(--border-gray) 2px solid;
    /* transition: transform 180ms ease; */
}

/* .hide-top header {
    transform: translateY(calc(-1.2 * var(--topH)));
} */

.hide-top.header-container {
    transform: translateY(calc(-1.2 * var(--topH)));
}


/* Header rows */

.header-top,
.header-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.header-top {
    /* height: 160px; */
    margin-top: 10px;
    margin-bottom: 10px;
}

.header-bottom {
    /* height: 60px; */
    margin-bottom: 10px;
}

@media (min-width: 600px) {
    /* .header-top {
        height: 100px;
    } */
}


/* Header columns (left / center / right) */

.header-left {
    display: none;
    height: 100%;
    
}

.header-center {
    height: 100%;
}

.header-right {
    height: 100%;
}

@media (min-width: 600px) {
    .header-left {
        display: flex;
    }

    .header-left,
    .header-center,
    .header-right {
        width: 200px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .header-center {
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 10px;
    }
}





/* Logo */

.logo-container {
    height: 80px;
}

.site-logo {
    height: 100%;
}

.app-logo {
    margin-top: 0px;
    height: 100px;
    width: 125px;
}



/* Name / branding */

.header-name {
    font-size: 26px;
    text-decoration: none;
    display: none;
}

@media (min-width: 600px) {
    .header-name {
        display: block;
    }
}

.name-container {
    display: none;
}

@media (min-width: 600px) {
    .name-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}


/* Search */

.search-container {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 40px;
}

.search-form {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: end;
    height: 100%;
    width: 200px;
}

.search-input {
    border-radius: 3px;
    outline: none;
    height: 100%;
    width: 100%;
    padding-left: 5px;
    padding-right: 30px;
    color: white;
    background-color: var(--background-gray);
    border: var(--border-gray) solid 1px;
}

.search-input::placeholder {
    color: var(--text-gray);
}

.search-input.occupied {
    border: var(--red) 1px solid;
}

.clear-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    display: none;
    line-height: 1;
    border: none;
    cursor: pointer;
    color: var(--yellow);
    background-color: transparent;
}


/* Filter bar */

.filter-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
}

.filter-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-grow: 1;
    flex-shrink: 0;
    height: 50px;
    width: auto;
    border-radius: 3px;
    cursor: pointer;
    color: var(--yellow);
    background-color: var(--background-gray);
    border: var(--border-gray) 1px solid;
    transition: background-color 0.2s ease;
}

.filter-button .icon-container {
    margin-left: 1px;
}

.filter-button .label-container {
    margin-right: 1px;
}

@media (hover: hover) {
    .filter-button:hover {
        background-color: black;
    }
}

.filter-button.active {
    border-radius: 3px;
    background-color: black;
    color: var(--red);
    border: var(--red) 1px solid;
}

@media (hover: hover) {
    .filter-button.active:hover {
        background-color: var(--background-gray);
        color: var(--red);
    }
}


/* Filter button icon swap (default vs active state) */

.filter-button .icon-active {
    display: none;
}

.filter-button.active .icon-default {
    display: none;
}

.filter-button.active .icon-active {
    display: block;
}


/* Filter label */

.label-container {
    display: block;
    width: auto;
    overflow: hidden;
}
