
.header {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 64px;
    
    /* To make it always on top of the site */
    position: sticky;
    top: 0;
    z-index: 1000;

    align-items: center;

    /* To make it looks like neon UI */
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    box-shadow:
        0 1px 0 var(--border-subtle),
        0 4px 24px rgba(0, 255, 136, 0.05);
}



/* Header Left */

.header-left {
    display: flex;
    align-items: center;

    padding-left: 20px;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--text-primary);
    text-decoration: none;

    user-select: none;
}

.header-left .logo .logo-symbol {
    color: var(--neon-green);

    font-size: 20px;
    line-height: 1;

    text-shadow:
        0 0 6px rgba(0, 255, 136, 0.7),
        0 0 16px rgba(0, 255, 136, 0.3);

    transition:
        color 150ms ease,
        text-shadow 150ms ease,
        transform 150ms ease;
}

.header-left .logo .logo-text {
    color: var(--text-primary);

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.16em;

    transition:
        color 150ms ease,
        text-shadow 150ms ease;
}

.header-left .logo:hover .logo-symbol {
    color: var(--neon-green-bright);

    transform: rotate(45deg);

    text-shadow:
        0 0 8px rgba(0, 255, 136, 0.8),
        0 0 20px rgba(0, 255, 136, 0.4);
}

.header-left .logo:hover .logo-text {
    color: var(--neon-green-bright);

    text-shadow:
        0 0 8px rgba(0, 255, 136, 0.35);
}

.header-left::after {
    content: "";

    width: 2px;
    height: 50px;

    margin-left: 24px;

    background: var(--border-subtle);
}

/* ============= */



/* Header Center */

.header-center {
    flex: 1;

    display: flex;
    justify-content: center;

    padding: 0 32px;
}

.header-center .search {
    width: 100%;
    max-width: 680px;

    display: flex;
    align-items: center;

    position: relative;
}

.header-center .search .search-input {
    width: 100%;
    height: 42px;

    padding: 0 52px 0 18px;

    box-sizing: border-box;

    border: 1px solid var(--border-default);
    border-radius: 6px;

    outline: none;

    background: var(--bg-surface);
    color: var(--text-primary);

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background 150ms ease;
}

.header-center .search .search-input::placeholder {
    color: var(--text-muted);
}

.header-center .search .search-input:focus {
    border-color: var(--neon-cyan);

    background: var(--bg-surface-2);

    box-shadow:
        0 0 0 1px rgba(0, 229, 255, 0.12),
        0 0 18px rgba(0, 229, 255, 0.08);
}

.header-center .search .search-button {
    position: absolute;

    right: 8px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 4px;

    background: transparent;
    color: var(--text-muted);

    cursor: pointer;

    transition:
        color 150ms ease,
        background 150ms ease,
        text-shadow 150ms ease;
}

.header-center .search .search-button:hover {
    color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.06);

    text-shadow: var(--glow-cyan);
}

.header-center .search .search-shortcut {
    position: absolute;

    right: 48px;

    display: flex;
    gap: 4px;

    pointer-events: none;
}

.header-center .search .search-shortcut kbd {
    min-width: 22px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 5px;

    box-sizing: border-box;

    border: 1px solid var(--border-subtle);
    border-radius: 3px;

    background: var(--bg-deep);

    color: var(--text-muted);

    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
}

.header-center  .search:focus-within .search-shortcut kbd {
    border-color: var(--border-neon);
    color: var(--text-neon);
}
/* ============= */



/* Header Right */

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 16px;
}

.header-right .header-button {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid transparent;
    border-radius: 5px;

    background: transparent;
    color: var(--text-muted);

    cursor: pointer;

    transition:
        color 150ms ease,
        background 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease,
        text-shadow 150ms ease;
}

.header-right .header-button:hover {
    color: var(--neon-cyan);

    background: rgba(0, 229, 255, 0.05);

    border-color: rgba(0, 229, 255, 0.2);

    box-shadow:
        0 0 12px rgba(0, 229, 255, 0.08);

    text-shadow:
        0 0 8px rgba(0, 229, 255, 0.5);
}

.header-right .active {
    color: var(--neon-green);

    background: rgba(0, 255, 136, 0.06);

    border-color: rgba(0, 255, 136, 0.25);

    box-shadow: var(--glow-green);
}

.header-right .active ::after {
    content: "";

    position: absolute;
    bottom: -1px;
    left: 8px;
    right: 8px;

    height: 1px;

    background: var(--neon-green);

    box-shadow:
        0 0 6px var(--neon-green),
        0 0 12px rgba(0, 255, 136, 0.5);
}

/* ============= */


@media (max-width: 768px) {
    .header-center {
        display: none;
    }
    .header-right {
        margin-left: auto;
    }
}