.site-header {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: var(--header-height);

    background: var(--bg-primary);

    border-bottom: 1px solid var(--border-color);

    z-index: 1000;
}


.header-inner {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;

    padding: 0 20px;
}


/*
|--------------------------------------------------------------------------
| Left Side
|--------------------------------------------------------------------------
*/

.menu-button {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: var(--text-primary);

    font-size: 20px;

    cursor: pointer;
}


.menu-button:hover {
    background: var(--hover-bg);
}


/*
|--------------------------------------------------------------------------
| SoftVide Logo
|--------------------------------------------------------------------------
*/

.site-logo {
    display: flex;
    align-items: center;

    margin-left: 10px;

    flex: 0 0 auto;

    color: var(--text-primary);

    font-size: 22px;
    font-weight: 700;

    white-space: nowrap;

    text-decoration: none;
}


.site-logo-mark {
    width: 30px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 6px;

    background: var(--accent-color);

    color: #ffffff;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Center Search
|--------------------------------------------------------------------------
*/

.search-box {
    position: absolute;

    left: 50%;
    transform: translateX(-50%);

    width: min(
        600px,
        calc(100% - 600px)
    );

    min-width: 300px;

    height: 40px;

    display: flex;
    align-items: center;

    border: 1px solid var(--border-color);

    border-radius: 22px;

    background: var(--bg-secondary);

    overflow: hidden;
}


.search-input {
    flex: 1;

    width: 100%;
    height: 100%;

    padding: 0 16px;

    border: 0;
    outline: none;

    background: transparent;

    color: var(--text-primary);

    font-size: 15px;
}


.search-input::placeholder {
    color: var(--text-secondary);
}


.search-button {
    width: 58px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 58px;

    border: 0;
    border-left: 1px solid var(--border-color);

    background: var(--bg-tertiary);

    color: var(--text-primary);

    font-size: 18px;

    cursor: pointer;
}


.search-button:hover {
    background: var(--hover-bg);
}


/*
|--------------------------------------------------------------------------
| Voice Search
|--------------------------------------------------------------------------
*/

.voice-search-button {
    position: absolute;

    left: calc(50% + 315px);

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: var(--bg-tertiary);

    color: var(--text-primary);

    font-size: 17px;

    cursor: pointer;
}


.voice-search-button:hover {
    background: var(--hover-bg);
}


/*
|--------------------------------------------------------------------------
| Right Side
|--------------------------------------------------------------------------
*/

.header-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 8px;
}


.create-button {
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;

    border: 0;
    border-radius: 20px;

    background: var(--bg-tertiary);

    color: var(--text-primary);

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    text-decoration: none;

    cursor: pointer;
}


.create-button:hover {
    background: var(--hover-bg);
}


.header-action,
.theme-button {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: var(--text-primary);

    font-size: 18px;

    cursor: pointer;
}


.header-action:hover,
.theme-button:hover {
    background: var(--hover-bg);
}


/*
|--------------------------------------------------------------------------
| Login
|--------------------------------------------------------------------------
*/

.login-button {
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border: 1px solid var(--accent-color);

    border-radius: 20px;

    background: transparent;

    color: var(--accent-color);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;
}


.login-button:hover {
    background: var(--hover-bg);
}


/*
|--------------------------------------------------------------------------
| Account
|--------------------------------------------------------------------------
*/

.account-button {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    overflow: hidden;

    background: var(--bg-tertiary);

    color: var(--text-primary);

    text-decoration: none;
}


.account-button img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.account-avatar-letter {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {

    .search-box {
        width: min(
            500px,
            calc(100% - 520px)
        );
    }

    .voice-search-button {
        left: calc(50% + 265px);
    }

}


/*
|--------------------------------------------------------------------------
| Small Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .header-inner {
        padding: 0 12px;
    }

    .site-logo {
        font-size: 20px;
    }

    .search-box {
        width: 360px;
        min-width: 0;
    }

    .voice-search-button {
        display: none;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .header-inner {
        padding: 0 8px;
    }

    .site-logo {
        font-size: 0;
        margin-left: 4px;
    }

    .site-logo-mark {
        margin-right: 0;
    }

    .search-box {
        position: relative;

        left: auto;
        transform: none;

        margin-left: auto;
        margin-right: 8px;

        width: auto;
        min-width: 0;

        flex: 1;
    }

    .header-actions {
        gap: 2px;
    }

    .create-button {
        display: none;
    }

    .header-action,
    .theme-button {
        display: none;
    }

    .login-button {
        padding: 0 12px;
    }

}