.header {
    background-color: #181825;
    padding: 15px 20px;
    display: grid;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #313244;
    grid-template-columns: 0 auto 0;
}

.logo {
    width: 58px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #cdd6f4;
}

.site-title-short {
    display: none;
}

.header-menu {
    width: fit-content;
    justify-self: end;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fab387, #f38ba8);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar .avatar-initial {
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.discord-login-btn {
    background-color: #5865F2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
    width: max-content;
}

.discord-login-btn:hover {
    background-color: #4752C4;
}

.discord-logo {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background-color: #181825;
    border: 1px solid #f9e2af;
    border-radius: 6px;
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.dropdown.active {
    display: block;
}

.dropdown a {
    display: block;
    padding: 10px 15px;
    color: #f9e2af;
    text-decoration: none;
    border-bottom: 1px solid #313244;
    transition: background-color 0.2s;
}

.dropdown a:hover {
    background-color: #313244;
}

.dropdown a:last-child {
    border-bottom: none;
}
