/* =========================================================
   SoftVide - Header
   File: assets/css/header.css
   ========================================================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    height: var(--sv-header-height);

    display: flex;
    align-items: center;

    padding: 0 20px;

    background: var(--sv-bg);
    border-bottom: 1px solid var(--sv-border);
}


/* ---------- Menu Button ---------- */

.menu-button {
    width: 40px;
    height: 40px;

    margin-right: 14px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;

    border-radius: 50%;

    background: transparent;
    color: var(--sv-text);

    cursor: pointer;
}

.menu-button:hover {
    background: var(--sv-surface-hover);
}

.menu-button span {
    display: block;

    width: 18px;
    height: 2px;

    border-radius: 2px;

    background: var(--sv-text);
}


/* ---------- Brand ---------- */

.brand {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 8px;

    margin-right: 35px;

    color: var(--sv-text);

    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--sv-accent);
    color: #ffffff;

    font-size: 18px;
    font-weight: 800;
}

.brand-text {
    font-size: 20px;
    letter-spacing: -0.4px;
}


/* ---------- Search ---------- */

.search-form {
    flex: 1;

    display: flex;
    align-items: center;

    width: 100%;
    max-width: 680px;

    margin: 0 auto;
}

.search-input {
    flex: 1;

    height: 40px;

    padding: 0 18px;

    border: 1px solid var(--sv-border);
    border-right: 0;

    border-radius: 22px 0 0 22px;

    outline: none;

    background: var(--sv-surface);
    color: var(--sv-text);

    font-size: 15px;
}

.search-input::placeholder {
    color: var(--sv-text-muted);
}

.search-input:focus {
    border-color: #606060;
}

.search-button {
    width: 62px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--sv-border);

    border-radius: 0 22px 22px 0;

    background: var(--sv-surface-hover);
    color: var(--sv-text);

    cursor: pointer;

    font-size: 16px;
}

.search-button:hover {
    background: #333333;
}


/* ---------- Header Actions ---------- */

.header-actions {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 8px;

    margin-left: 25px;
}

.header-action {
    min-width: 40px;
    height: 40px;

    padding: 0 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border-radius: 20px;

    color: var(--sv-text);

    text-decoration: none;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.header-action:hover {
    background: var(--sv-surface-hover);
}

.action-icon {
    font-size: 19px;
    line-height: 1;
}

.action-text {
    font-size: 14px;
    font-weight: 600;
}

.create-action {
    padding: 0 14px;

    background: var(--sv-surface-hover);
}

.create-action:hover {
    background: #333333;
}


/* ---------- Profile ---------- */

.profile-button {
    height: 40px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 0 8px;

    border-radius: 22px;

    color: var(--sv-text);

    text-decoration: none;
}

.profile-button:hover {
    background: var(--sv-surface-hover);
}

.profile-avatar {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #3f51b5;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}

.profile-text {
    font-size: 14px;
}


/* ---------- Focus ---------- */

.menu-button:focus-visible,
.search-button:focus-visible,
.header-action:focus-visible,
.profile-button:focus-visible {
    outline: 2px solid var(--sv-accent);
    outline-offset: 2px;
}