/* Shared site nav — CT logo + user dropdown */

.ct-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    z-index: 100;
}

/* Logo */

.ct-logo {
    font-size: 1rem;
    font-weight: 800;
    color: #f0c040;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.ct-logo:hover {
    color: #ffd860;
}

/* User area (right side) */

.ct-user {
    display: flex;
    align-items: center;
}

.ct-user-link {
    color: #8890a0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.ct-user-link:hover {
    color: #ffffff;
}

.ct-user-dropdown {
    position: relative;
}

.ct-user-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #8890a0;
    font-size: 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    transition: color 0.2s;
}

.ct-user-toggle:hover {
    color: #ffffff;
}

.ct-user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #141828;
    border: 1px solid #1e2440;
    border-radius: 6px;
    min-width: 170px;
    padding: 4px 0;
    z-index: 200;
}

.ct-user-dropdown.open .ct-user-menu {
    display: block;
}

.ct-user-menu-item {
    display: block;
    width: 100%;
    padding: 8px 14px;
    color: #8890a0;
    text-decoration: none;
    font-size: 0.85rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}

.ct-user-menu-item:hover {
    background: #1a1e34;
    color: #ffffff;
}

/* Compact variant — for integration into existing headers (e.g., hesim game) */

.ct-nav--compact {
    padding: 0;
    z-index: auto;
}

.ct-nav--compact .ct-logo {
    font-size: 0.85rem;
}

.ct-nav--compact .ct-user-toggle,
.ct-nav--compact .ct-user-link {
    font-size: 0.75rem;
}

.ct-nav--compact .ct-user-menu {
    min-width: 150px;
}

/* Inline variant — logo and user sit inside another flex container */

.ct-nav--inline {
    padding: 0;
    gap: 10px;
    z-index: auto;
}
