/* Site header for the games platform.
 *
 * Sticky, responsive, and friendly. The logo mark is a small table with three
 * players, referencing the site goal: games for all, together, having fun.
 */

.agent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-light) 100%);
    border-bottom: 1px solid rgba(23, 51, 68, 0.1);
    padding: 0.75rem 1rem;
    position: relative;
    z-index: 90;
    box-shadow: var(--shadow);
}

.agent-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.agent-header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-dark);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.agent-header-logo:hover,
.agent-header-logo:focus {
    text-decoration: none;
    transform: scale(1.02);
}

.agent-header-logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: block;
}

.agent-header-logo-person {
    fill: var(--color-accent);
}

.agent-header-logo-smile {
    stroke: var(--color-dark);
}

.agent-header-logo-die {
    fill: var(--color-dark);
}

.agent-header-logo-pip {
    fill: var(--color-light);
}

.agent-header-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.agent-header-logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
}

.agent-header-logo-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.agent-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.agent-header .agent-sidebar-toggle {
    margin: 0;
}

.agent-header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.agent-header-link {
    color: var(--color-dark);
    font-weight: 600;
    text-decoration: none;
}

.agent-header-link:hover,
.agent-header-link:focus {
    color: var(--color-accent);
}

@media (min-width: 769px) {
    .agent-header {
        margin-left: 260px;
        width: calc(100% - 260px);
        padding: 1rem 2rem;
    }

    .agent-header-logo-icon {
        width: 52px;
        height: 52px;
    }

    .agent-header-logo-title {
        font-size: 1.5rem;
    }

    .agent-header-logo-tagline {
        font-size: 0.85rem;
    }

    .agent-header .agent-sidebar-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .agent-header-logo-tagline {
        display: none;
    }
}
