@import '../../styles/variables';

.header {
    width: 100%;
    padding: $spacer / 2 0;
}

.headerContent {
    composes: wide from '../atoms/Content.module.scss';
    display: flex;
    align-items: center;
}

.headerLogo {
    display: flex;
    align-items: center;
    cursor: pointer;

    &:hover,
    &:focus,
    &:active {
        transform: none;
    }
}

.headerLogoImage {
    width: 4rem;
    height: 4rem;
    fill: #fff;
    margin: 0;
}

.headerTitle {
    font-size: $font-size-h3;
    color: $brand-grey-light;
    margin-left: $spacer / 2;
    display: none;

    @media (min-width: $break-point--medium) {
        display: inline-block;
    }
}

.headerMenu {
    flex: 1;
    justify-self: flex-end;
    text-align: right;
    white-space: nowrap;
    overflow-y: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-right: -($spacer / 1.5);
    padding-right: $spacer;
    border-left: 1px solid $brand-grey-lighter;
    margin-left: $spacer / 8;

    @media (min-width: $break-point--medium) {
        padding-right: 0;
        margin-right: 0;
        margin-left: 0;
        border-left: 0;
        overflow: initial;
    }

    &::-webkit-scrollbar,
    &::-moz-scrollbar {
        display: none;
    }

    &::-webkit-scrollbar {
        width: 3px;
        height: 3px;
        transition: opacity .2s ease-out;
    }
}

.link {
    display: inline-block;
    margin: 0 $spacer / 2;
    font-weight: $font-weight-bold;
    color: $brand-grey;

    &:last-child {
        margin-right: 0;
    }

    &:hover,
    &:focus,
    &:active {
        color: $brand-pink;
    }
}

.linkActive {
    composes: link;
    color: $brand-pink;
    pointer-events: none;
}

.accountStatus {
    margin-left: $spacer / 2;
    margin-bottom: -.5rem;
}
